/*
 * fott-jobs.com — the marketing site's only stylesheet.
 *
 * Same "Soft Serve" identity as the app (apps/web/src/index.css): cream base,
 * white cards on a soft straight-down lift, tomato for the main action, cheese
 * for highlights, basil for "done", Gabarito 900 display over Instrument Sans.
 * The token values are copied from the app rather than shared so the site stays
 * a zero-dependency static build; keep them in step when the app's palette moves.
 *
 * Served under `style-src 'self'` (see infra/caddy/Caddyfile), so nothing here
 * may rely on inline styles or runtime-injected <style> tags.
 */

@font-face {
  font-family: 'Gabarito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/gabarito-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/assets/fonts/instrument-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --font-sans: 'Instrument Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, sans-serif;
  --font-display: 'Gabarito Variable', 'Instrument Sans Variable', ui-sans-serif, system-ui,
    sans-serif;

  --background: #fff8e8;
  --foreground: #2a2118;
  --card: #ffffff;
  --muted: #fbf0d9;
  --muted-foreground: #6b5f50;
  --faint: #a89b85;
  --lift: #f1e6cf;
  --lift-deep: #e8dcc2;
  --primary: #d8361f;
  --primary-foreground: #ffffff;
  --primary-shade: #9e2411;
  --primary-soft: #ffe1d6;
  --brand: #ff6b4a;
  --secondary: #ffd84a;
  --secondary-foreground: #2a2118;
  --secondary-shade: #d9a000;
  --accent: #fff1c7;
  --cheese-text: #8a6200;
  --success: #0c7353;
  --success-foreground: #ffffff;
  --success-soft: #ddf2e7;
  --destructive: #b8321c;
  --destructive-soft: #fbe4dd;
  --ink: #2a2118;
  --ink-foreground: #fff8e8;
  --ink-accent: #ffd84a;
  --ring: #ff6b4a;
  --scrim: rgb(42 33 24 / 0.55);
  --funnel-1: #ff9a80;
  --funnel-2: #ff6b4a;
  --funnel-3: #c93a20;
  --funnel-4: #7a1b0c;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 24px;

  --shadow-hard: 0 4px 0 var(--lift-deep);
  --shadow-hard-sm: 0 2px 0 var(--lift-deep);
  --shadow-card: 0 6px 0 var(--lift);
  --shadow-float: 0 8px 0 var(--lift), 0 18px 40px -12px rgb(42 33 24 / 0.25);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17120d;
    --foreground: #fff3dc;
    --card: #221b14;
    --muted: #2d241b;
    --muted-foreground: #c9bba3;
    --faint: #8f8270;
    --lift: #3a3025;
    --lift-deep: #0c0906;
    --primary: #ff7a5c;
    --primary-foreground: #17120d;
    --primary-shade: #a8391f;
    --primary-soft: #4a2217;
    --brand: #ff7a5c;
    --secondary-shade: #a67a00;
    --secondary-foreground: #17120d;
    --accent: #3a2e1e;
    --cheese-text: #ffd84a;
    --success: #3fbf94;
    --success-foreground: #17120d;
    --success-soft: #16352b;
    --destructive: #ff8a7a;
    --destructive-soft: #4a1a14;
    --ink: #fff3dc;
    --ink-foreground: #17120d;
    --ink-accent: #17120d;
    --ring: #ff7a5c;
    --scrim: rgb(0 0 0 / 0.65);
    --funnel-1: #8f2213;
    --funnel-2: #c93420;
    --funnel-3: #ff7a5c;
    --funnel-4: #ffb09f;
    --shadow-card: 0 6px 0 var(--lift-deep);
    --shadow-float: 0 8px 0 var(--lift-deep), 0 18px 40px -12px rgb(0 0 0 / 0.6);
  }
}

/* ---------------------------------------------------------------- base ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-shade);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--card);
  color: var(--foreground);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-hard);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 28px;
  }
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    box-shadow 90ms var(--ease-snap),
    transform 90ms var(--ease-snap),
    background-color 90ms var(--ease-snap);
}

.btn:hover {
  transform: translateY(2px);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1.05rem;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 0 var(--primary-shade);
}

.btn-primary:hover {
  color: var(--primary-foreground);
  box-shadow: 0 2px 0 var(--primary-shade);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 4px 0 var(--secondary-shade);
}

.btn-secondary:hover {
  color: var(--secondary-foreground);
  box-shadow: 0 2px 0 var(--secondary-shade);
}

.btn-outline {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-hard);
}

.btn-outline:hover {
  color: var(--foreground);
  background: var(--muted);
  box-shadow: var(--shadow-hard-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  color: var(--foreground);
  background: var(--lift);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* -------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand:hover {
  color: var(--foreground);
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-accent);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--foreground);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--lift);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--lift);
}

.lang-switch a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 999px;
  line-height: 1;
}

.lang-switch a[aria-current='true'] {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 2px 0 var(--lift-deep);
}

.hide-sm {
  display: none;
}

@media (min-width: 600px) {
  .hide-sm {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }
}

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }
}

/* ---------------------------------------------------------------- hero ---- */

.hero {
  padding: 40px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 64px 0 96px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-hard);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-badge .beta-pill {
  font-size: 0.7rem;
  padding: 4px 10px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  flex-shrink: 0;
}

/* The hero collage: a stack of fake app cards with a character peeking out. */
.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual .mascot {
  position: absolute;
  width: 132px;
  right: -8px;
  top: -64px;
  z-index: 3;
  filter: drop-shadow(0 10px 14px rgb(42 33 24 / 0.18));
}

@media (min-width: 720px) {
  .hero-visual .mascot {
    width: 168px;
    right: -28px;
    top: -86px;
  }
}

.hero-stack {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.hero-stack .mock:nth-child(2) {
  margin-left: 0;
}

@media (min-width: 720px) {
  .hero-stack .mock:nth-child(1) {
    margin-right: 56px;
  }
  .hero-stack .mock:nth-child(2) {
    margin-left: 56px;
    margin-top: -6px;
  }
}

/* -------------------------------------------------------- section chrome ---- */

.section {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 104px 0;
  }
}

.section-alt {
  background: var(--muted);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  margin: 10px 0 16px;
}

.section-head p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

/* "What is FOTT Jobs" — a plain definitional block for people and answer engines. */
.definition {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .definition {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.definition h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 10px 0 18px;
}

.definition p + p {
  margin-top: 14px;
}

.definition .facts {
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 14px;
}

.facts div {
  display: grid;
  gap: 2px;
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

/* ------------------------------------------------------------ features ---- */

.features {
  display: grid;
  gap: 88px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
  .feature:nth-child(even) .feature-copy {
    order: 2;
  }
}

.feature-copy .kicker {
  margin-top: 16px;
}

.feature-copy h3 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  margin: 12px 0 14px;
}

.feature-copy p {
  color: var(--muted-foreground);
  font-size: 1.06rem;
}

.feature-copy ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-copy li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--success-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230c7353' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.feature-icon {
  width: 52px;
  height: 52px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}

/* ------------------------------------------------------------ mock UI ---- */

/*
 * "Fake UI": small, static, non-interactive replicas of app screens. They are
 * aria-hidden decoration; the copy beside each one carries the meaning.
 */
.mock {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 18px;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  user-select: none;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mock-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.mock-sub {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.mock-dots {
  display: inline-flex;
  gap: 5px;
}

.mock-dots i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--lift);
}

.mock-dots i:first-child {
  background: var(--brand);
}

.mock-dots i:nth-child(2) {
  background: var(--secondary);
}

.mock-list {
  display: grid;
  gap: 10px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--background);
  min-width: 0;
}

.mock .grow {
  flex: 1;
  min-width: 0;
}

.mock .name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock .meta {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-tile {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: #2a2118;
}

.tone-coral {
  background: #ffb09f;
}
.tone-cheese {
  background: #ffd84a;
}
.tone-basil {
  background: #9fdcc0;
}
.tone-sky {
  background: #bcd9ff;
}
.tone-lilac {
  background: #d9c8ff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lift);
  color: var(--foreground);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip-success {
  background: var(--success-soft);
  color: var(--success);
}

.chip-warn {
  background: var(--accent);
  color: var(--cheese-text);
}

.chip-danger {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.chip-ink {
  background: var(--ink);
  color: var(--ink-accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.score {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.score small {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  opacity: 0.9;
}

.score-high {
  background: var(--success);
  color: var(--success-foreground);
}

.score-mid {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.score-low {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.salary {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
}

/* Profile extraction mock */
.upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px dashed var(--lift);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.file-icon {
  flex-shrink: 0;
  width: 34px;
  height: 42px;
  border-radius: 6px;
  background: var(--primary-soft);
  position: relative;
}

.file-icon::after {
  content: 'PDF';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--primary);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--lift);
  overflow: hidden;
  margin-top: 6px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--success);
}

.w-100 {
  width: 100%;
}
.w-92 {
  width: 92%;
}
.w-78 {
  width: 78%;
}
.w-64 {
  width: 64%;
}
.w-45 {
  width: 45%;
}
.w-30 {
  width: 30%;
}
.w-18 {
  width: 18%;
}

.field-grid {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.field .input {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--background);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fit score mock */
.gauge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--success-soft);
  margin-bottom: 14px;
}

.gauge-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--success);
}

.gauge-num small {
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.7;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 1px;
}

.mark-yes {
  background: var(--success);
  color: var(--success-foreground);
}

.mark-part {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.mark-no {
  background: var(--destructive-soft);
  color: var(--destructive);
}

/* Tailored CV mock */
.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.templates {
  display: flex;
  gap: 8px;
}

.template {
  flex: 1;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--background);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.template img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--card);
}

.template.is-active {
  background: var(--accent);
  outline: 2px solid var(--secondary-shade);
}

.paper {
  align-content: start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fffdf8;
  color: #2a2118;
  box-shadow: 0 0 0 1px #f1e6cf;
  font-size: 0.75rem;
  display: grid;
  gap: 10px;
}

.paper h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
}

.paper .role {
  color: #6b5f50;
  font-weight: 600;
}

.paper .sec {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8361f;
  border-bottom: 1px solid #f1e6cf;
  padding-bottom: 3px;
}

.paper ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.hl {
  background: #fff1c7;
  border-radius: 3px;
  padding: 0 2px;
}

.source-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Applications funnel mock */
.funnel {
  display: grid;
  gap: 10px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.funnel-bar {
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #2a2118;
}

.funnel-1 {
  background: var(--funnel-1);
}
.funnel-2 {
  background: var(--funnel-2);
}
.funnel-3 {
  background: var(--funnel-3);
  color: #fff;
}
.funnel-4 {
  background: var(--funnel-4);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .funnel-1,
  .funnel-2 {
    color: #fff;
  }
  .funnel-3,
  .funnel-4 {
    color: #17120d;
  }
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.kanban-col {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--background);
}

.kanban-col .kicker {
  font-size: 0.62rem;
}

.kanban-card {
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 2px 0 var(--lift);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Digest / alert mock */
.email {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--background);
}

.email-head {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--secondary);
  color: #2a2118;
}

.email-head strong {
  font-family: var(--font-display);
  font-weight: 800;
}

.email-head span {
  font-size: 0.74rem;
  opacity: 0.8;
}

.email-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--ink-foreground);
  font-weight: 600;
  font-size: 0.82rem;
}

.toast img {
  width: 26px;
  height: 26px;
}

/* Kitchen ranks */
.ranks {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 720px) {
  .ranks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rank {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.rank img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.rank strong {
  font-family: var(--font-display);
  font-weight: 800;
}

.rank span {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.rank.is-current {
  background: var(--secondary);
  color: #2a2118;
}

.rank.is-current span {
  color: #5c4a2a;
}

.kitchen-mock .progress span {
  background: var(--secondary-shade);
}

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--background);
}

.task-row img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.task-row .grow {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

/* ---------------------------------------------------------- how it works -- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--secondary);
  color: #2a2118;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: 0 3px 0 var(--secondary-shade);
}

.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted-foreground);
}

/* ----------------------------------------------------------- principles -- */

.principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 820px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.principle {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.principle img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.principle h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.principle p {
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------- pricing -- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px 22px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--ink-foreground);
}

@media (min-width: 900px) {
  .pricing {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    padding: 56px;
    gap: 56px;
  }
}

.pricing h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin: 14px 0 14px;
}

.pricing p {
  opacity: 0.85;
  font-size: 1.06rem;
}

.pricing .beta-pill {
  background: var(--secondary);
  color: #2a2118;
  font-size: 0.72rem;
  padding: 4px 12px;
}

.price-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 8px 0 var(--secondary-shade);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 4px;
}

.price strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
}

.price span {
  color: var(--muted-foreground);
  font-weight: 600;
}

.price-card ul {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.price-card li {
  display: flex;
  gap: 8px;
}

.price-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 900;
}

.price-card .note {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 14px;
}

/* ------------------------------------------------------------------ FAQ -- */

.faq {
  max-width: 50rem;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  border-radius: var(--radius);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--lift);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 150ms var(--ease-snap);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 20px 20px;
  color: var(--muted-foreground);
}

.faq .answer p + p {
  margin-top: 10px;
}

/* ------------------------------------------------------------ final CTA -- */

.final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.final-cta img {
  width: 150px;
}

.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 36rem;
}

.final-cta p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  max-width: 34rem;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  padding: 56px 0 40px;
  background: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
}

.site-footer h2 {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a,
.link-button {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover,
.link-button:hover {
  color: var(--primary);
  text-decoration: underline;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-about p {
  color: var(--muted-foreground);
  max-width: 26rem;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--lift);
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------- legal pages -- */

.legal {
  padding: 48px 0 88px;
}

.legal .wrap {
  max-width: 820px;
}

.legal header {
  margin-bottom: 36px;
}

.legal h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 10px 0 14px;
}

.legal .updated {
  color: var(--muted-foreground);
}

.legal .summary {
  margin: 0 0 36px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--accent);
}

.legal .summary h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 40px 0 12px;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  background: var(--card);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lift);
}

.prose th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.prose tr:last-child td {
  border-bottom: 0;
}

/* ----------------------------------------------------------------- 404 --- */

.not-found {
  padding: 80px 0 120px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.not-found img {
  width: 180px;
}

.not-found h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

/* ------------------------------------------------------- cookie consent -- */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 560px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-float);
}

@media (min-width: 720px) {
  .consent {
    left: 24px;
    bottom: 24px;
    right: auto;
  }
}

.consent[hidden] {
  display: none;
}

.consent h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.consent p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.consent-actions .btn {
  flex: 1 1 auto;
}

.consent-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-float);
}

.consent-dialog::backdrop {
  background: var(--scrim);
}

.consent-dialog h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.consent-dialog > p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.consent-category {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--background);
  margin-bottom: 10px;
}

.consent-category strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 2px;
}

.consent-category p {
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

/* A switch built on a native checkbox, so it stays keyboard and AT friendly. */
.switch {
  appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 46px;
  height: 28px;
  margin: 2px 0 0;
  border-radius: 999px;
  background: var(--lift);
  cursor: pointer;
  transition: background-color 120ms var(--ease-snap);
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 2px 0 var(--lift-deep);
  transition: transform 120ms var(--ease-snap);
}

.switch:checked {
  background: var(--success);
}

.switch:checked::after {
  transform: translateX(18px);
}

.switch:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.mock .chips + .mock-list {
  margin-top: 12px;
}

.gauge-cheese {
  background: var(--accent);
}

.gauge-cheese img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.gauge .grow {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .mock-row .salary {
    display: none;
  }
  .hero-visual .mascot {
    width: 104px;
    top: -58px;
    right: -4px;
  }
}
