/* pilami.ai public website. Same colours and fonts as the app (app/src/index.css), so moving from
   the site to the app feels like one product. Fonts are served from this site (SIL Open Font
   Licence), so no visitor IP address goes to Google or any other third party. */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(fonts/dm-sans-latin-opsz-normal.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Sora Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/sora-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
  --bg: #e9eeec;
  --surface: #fffdf8;
  --ink: #13202b;
  --muted: #55626c;
  --line: #dad8cf;
  --control: #6b7f8c;
  --accent: #f2a541;
  --accent-ink: #13202b;
  --accent-text: #a04a12;
  --good: #2f7f7a;
  --good-soft: #e3f1ef;
  --good-text: #1e5a56;
  --bad-soft: #fbe8df;
  --bad-text: #8a3412;
  --hero: #13202b;
  --hero-text: #f6f4ee;
  --hero-muted: #bfd0d3;
  --font-display: 'Sora Variable', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'DM Sans Variable', 'Segoe UI', Arial, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e171f; --surface: #17242e; --ink: #eef1ee; --muted: #a7b4ba; --line: #2a3a45; --control: #62747f;
    --accent-text: #f4b66a; --good: #4fb0a8; --good-soft: #173a38; --good-text: #9fdcd6;
    --bad-soft: #3a2219; --bad-text: #f2b49a; --hero: #1f3442;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e171f; --surface: #17242e; --ink: #eef1ee; --muted: #a7b4ba; --line: #2a3a45; --control: #62747f;
  --accent-text: #f4b66a; --good: #4fb0a8; --good-soft: #173a38; --good-text: #9fdcd6;
  --bad-soft: #3a2219; --bad-text: #f2b49a; --hero: #1f3442;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.06; }
h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 40ch; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 21px; text-decoration: none; }
.logo .mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 30%, #2f6f6a 31% 62%, #13202b 63%); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--muted); }
.nav a:not(.btn):hover, .nav a[aria-current='page'] { color: var(--ink); }
@media (max-width: 560px) { .nav { gap: 14px; } .nav .hide-s { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f5b55f; }
.btn-ghost { border-color: var(--control); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-s { min-height: 42px; padding: 0 18px; font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-note { font-size: 15px; color: var(--muted); }
.link { font-weight: 700; color: var(--accent-text); text-underline-offset: 3px; }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 36px; }
.head.center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--hero); color: var(--hero-text); }
.dark .muted, .dark .lead { color: var(--hero-muted); }
.dark .eyebrow { color: var(--accent); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 84px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.hero-text { display: grid; gap: 22px; padding-top: 56px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero-text { padding-top: 0; } }

/* Phone with the sample task */
.phone { width: min(100%, 380px); margin: 0 auto; background: var(--hero); border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(19, 32, 43, 0.55); }
.screen { background: var(--bg); border-radius: 32px; padding: 22px 18px 20px; display: grid; gap: 14px; min-height: 520px; align-content: start; }
.screen-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.screen-top .logo { font-size: 15px; gap: 6px; }
.screen-top .logo .mark { width: 18px; height: 18px; }
.task-title { font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.hunch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: grid; gap: 12px; }
.hunch .q { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.opts { display: grid; gap: 9px; }
.opt { font: inherit; font-size: 16px; line-height: 1.35; text-align: left; background: var(--surface); color: var(--ink); border: 1.5px solid var(--control); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.opt:hover:not([disabled]) { border-color: var(--ink); }
.opt[disabled] { cursor: default; }
.opt.right { border-color: var(--good); background: var(--good-soft); color: var(--good-text); }
.opt.wrong { border-color: var(--bad-text); background: var(--bad-soft); color: var(--bad-text); }
.opt.dim { opacity: 0.6; }
.reaction { border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; font-size: 16px; }
.reaction b { font-family: var(--font-display); }
.reaction.good { background: var(--good-soft); color: var(--good-text); }
.reaction.bad { background: var(--bad-soft); color: var(--bad-text); }
.after { display: grid; gap: 10px; font-size: 15px; }
.after .btn { width: 100%; }

/* Cards and grids */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.band .card { background: var(--bg); }
.card p { color: var(--muted); }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }

.skills { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skills li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 52px; position: relative; }
.skills li::before { content: ''; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--good-soft); box-shadow: inset 0 0 0 2px var(--good); }
.skills li::after { content: ''; position: absolute; left: 24px; top: 24px; width: 8px; height: 5px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.skills b { display: block; }
.skills span { color: var(--muted); font-size: 16px; }
@media (max-width: 700px) { .skills { grid-template-columns: 1fr; } }
.honest { margin-top: 26px; background: var(--good-soft); color: var(--good-text); border-radius: var(--radius); padding: 20px 24px; max-width: 760px; }

/* Price cards */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 520px; } }
.price { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: grid; gap: 12px; align-content: start; position: relative; color: var(--ink); }
.price.best { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price .amount { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.1; }
.price .amount small { font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--muted); }
.price ul { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 16px; }
.dark .price { background: var(--surface); }
.price-foot { margin-top: 22px; display: grid; gap: 8px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.band .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 24px; color: var(--accent-text); }
.faq details[open] summary::after { content: '–'; }
.faq .a { padding: 0 20px 20px; display: grid; gap: 10px; color: var(--muted); }
.faq-group { display: grid; gap: 16px; margin-top: 40px; }
.faq-group:first-of-type { margin-top: 0; }

/* Quiz */
.quiz { max-width: 720px; margin: 0 auto; }
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); display: grid; gap: 18px; }
.quiz-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: var(--accent); transition: width 0.25s ease; }
.quiz-q { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; }
.quiz .opt { padding: 15px 16px; font-size: 17px; }
.quiz .opt small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.quiz .opt.on { border-color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent-text); }
.quiz .pick { float: right; margin-left: 8px; min-width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; line-height: 26px; text-align: center; }
.back { font: inherit; background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 700; cursor: pointer; justify-self: start; }
.path { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; counter-reset: p; }
.path li { counter-increment: p; display: flex; gap: 12px; align-items: baseline; }
.path li::before { content: counter(p); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--control); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.path li.free::before { background: var(--good-soft); border-color: var(--good); color: var(--good-text); }
.path .tag { font-size: 13px; font-weight: 700; color: var(--good-text); background: var(--good-soft); border-radius: 999px; padding: 1px 9px; margin-left: 6px; white-space: nowrap; }
.extra { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; color: var(--muted); }

/* Footer */
footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-underline-offset: 3px; }
.h3 { font-size: 20px; line-height: 1.25; }
.page-top { padding-top: clamp(40px, 7vw, 84px); }
.page-top .head { margin-bottom: 40px; }
