/* panisto.app. Brand colours from the logo and panisto/07-design-system.md. No external requests, no cookies.
   Fonts self-hosted, both SIL Open Font License 1.1 (scripts/website/FONTS-OFL.txt):
   Bricolage Grotesque (c) The Bricolage Grotesque Project Authors; Inter (c) The Inter Project Authors. */
@font-face { font-family: "Bricolage"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/assets/bricolage.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/assets/inter.woff2") format("woff2"); }

:root {
  --bg: #FBF8F1; --bg-alt: #F3EEE2; --surface: #FFFFFF; --surface-2: #F7F4EC; --line: #E8E1D1;
  --fg: #10201A; --muted: #4A5A53; --faint: #5E6D66;
  --brand: #04805C; --brand-ink: #046B4D; --brand-soft: #E3F4EC;
  --deep: #0A3D2E; --deep-2: #0E5640; --cream: #F4EBD6; --amber: #F2A516; --amber-soft: #FDF1D8;
  --danger: #B42318; --danger-soft: #FDECEA;
  --shadow-sm: 0 1px 2px rgba(16, 32, 26, .05), 0 2px 8px rgba(16, 32, 26, .04);
  --shadow: 0 2px 4px rgba(16, 32, 26, .04), 0 18px 48px -12px rgba(16, 32, 26, .18);
  --radius: 28px;
  --display: "Bricolage", ui-rounded, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A110E; --bg-alt: #0F1915; --surface: #13201B; --surface-2: #182822; --line: #233A31;
    --fg: #EEF3EF; --muted: #AEBFB6; --faint: #8DA197;
    --brand: #20A779; --brand-ink: #4ED3A2; --brand-soft: #123329;
    --deep: #062A1F; --deep-2: #0B3E2E; --amber-soft: #3A2A0A;
    --danger: #FF8A80; --danger-soft: #3A1513;
    --shadow-sm: none; --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--body); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.i { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); background: var(--surface-2); }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lang-switch > * { padding: 6px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); min-width: 40px; text-align: center; }
.lang-switch .on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.lang-switch a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav-links { display: none; } .lang-switch { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; background:
  radial-gradient(ellipse 60% 45% at 88% 35%, color-mix(in srgb, var(--brand) 18%, transparent), transparent),
  radial-gradient(ellipse 45% 55% at 0% 0%, color-mix(in srgb, var(--amber) 14%, transparent), transparent); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.hero h1 { font-size: clamp(48px, 7.4vw, 88px); font-weight: 800; letter-spacing: -0.04em; line-height: .98; }
.accent { background: linear-gradient(100deg, var(--brand) 10%, #0FA37A 55%, var(--amber) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 24px 0 32px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 16px; border-radius: 16px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 17px; line-height: 1.15; box-shadow: var(--shadow); }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: .75; letter-spacing: .01em; }
.store .play { width: 26px; height: 26px; fill: var(--amber); stroke: var(--amber); }
.ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 16px; color: var(--fg); font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); transition: transform .15s, box-shadow .15s; }
.ghost .i { width: 18px; height: 18px; }
.ghost:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .i { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.6; }

/* Phone mockup */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.b1 { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, var(--deep-2), var(--deep)); }
.b2 { width: 120px; height: 120px; background: var(--amber); right: 6%; bottom: 10%; opacity: .9; }
.phone { position: relative; width: 300px; padding: 11px; border-radius: 48px; background: #0B1411; box-shadow: 0 40px 80px -24px rgba(6, 30, 22, .55), inset 0 0 0 2px #26332E; transform: rotate(-3deg); animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.screen { border-radius: 38px; background: #FFFFFF; color: #0F172A; padding: 34px 16px 18px; min-height: 560px; font-size: 13.5px; overflow: hidden; position: relative; }
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 20px; background: #0B1411; }
.m-top { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 10px; }
.m-title { font: 700 20px/1.1 var(--display); letter-spacing: -0.02em; }
.m-left { white-space: nowrap; font-size: 12px; font-weight: 700; color: #04805C; background: #ECFDF5; padding: 4px 9px; border-radius: 999px; }
.m-bar { height: 6px; border-radius: 6px; background: #EEF2F6; margin: 0 4px 6px; overflow: hidden; }
.m-bar span { display: block; height: 100%; background: #04805C; border-radius: 6px; }
.m-aisle { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5C6A80; padding: 12px 4px 4px; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 3px 0; border-radius: 14px; background: #F6F8FA; }
.m-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C5CED8; display: grid; place-items: center; flex: none; }
.m-check svg { width: 14px; height: 14px; color: #fff; stroke-width: 3; }
.m-row.done .m-check { background: #04805C; border-color: #04805C; }
.m-row.done .m-name { color: #94A3B8; text-decoration: line-through; }
.m-row.warn { background: #FEF2F2; box-shadow: inset 0 0 0 1.5px #F7B4B4; }
.m-name { flex: 1; font-weight: 600; }
.m-name em { font-style: normal; font-weight: 500; color: #64748B; margin-left: 4px; }
.m-who { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.m-S { background: #7C5CFF; } .m-H { background: #F2A516; color: #3A2A0A; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; line-height: 1.3; animation: float 6s ease-in-out infinite; }
.float b { display: block; font-weight: 700; }
.float small { display: block; color: var(--muted); font-size: 12.5px; }
.f-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); font-size: 20px; flex: none; }
.f-ico.warn { background: var(--danger-soft); color: var(--danger); }
.f-ico .i { width: 20px; height: 20px; }
.f1 { left: -2%; bottom: 0; }
.f2 { right: -2%; top: 24%; animation-delay: -3s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .phone, .float { animation: none; } }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
.sec-head p { color: var(--muted); font-size: 19px; margin: 14px 0 0; }
.tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.tile .i { width: 24px; height: 24px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step .num { position: absolute; top: 18px; right: 22px; font: 800 44px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.step h3 { font-size: 22px; margin: 20px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.bento { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feat { grid-column: span 3; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat.big { grid-column: span 6; padding: 36px 34px; }
.feat.big:first-child { background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: var(--cream); border-color: transparent; }
.feat.big:first-child p { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.feat.big:first-child .tile { background: rgba(244, 235, 214, .12); color: var(--amber); }
.feat h3 { font-size: 23px; margin: 22px 0 8px; }
.feat.big h3 { font-size: clamp(26px, 3vw, 32px); }
.feat p { margin: 0; color: var(--muted); font-size: 16px; }
.feat.big p { font-size: 17px; max-width: 30em; }

.promise { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: clamp(32px, 6vw, 64px); border-radius: 36px; background: linear-gradient(150deg, var(--deep-2) 0%, var(--deep) 70%); color: var(--cream); position: relative; overflow: hidden; }
.promise::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 165, 22, .28), transparent 70%); }
.promise h2 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.035em; }
.promise-copy p { color: color-mix(in srgb, var(--cream) 80%, transparent); font-size: 18px; margin: 16px 0 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: #F8C15C; font-weight: 700; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .i { transform: translateX(3px); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.checks li { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(244, 235, 214, .07); border: 1px solid rgba(244, 235, 214, .12); font-weight: 600; }
.checks .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--amber); color: var(--deep); stroke-width: 3; }

.cta-sec { padding-top: 0; }
.cta { text-align: center; padding: 56px 24px; border-radius: 36px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cta img { margin: 0 auto 20px; border-radius: 18px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { color: var(--muted); font-size: 18px; margin: 12px auto 0; max-width: 32em; }

/* Scroll reveal: progressive enhancement, CSS only */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.98); } }
  }
}

/* Legal pages */
.doc-head { position: relative; padding: 64px 0 48px; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(30% 80% at 0% 100%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 70%), var(--bg); }
.crumbs { margin: 0 0 18px; font-size: 14px; color: var(--faint); display: flex; gap: 8px; }
.crumbs a { color: var(--faint); }
.doc-head h1 { overflow-wrap: anywhere; font-size: clamp(32px, 8.2vw, 72px); font-weight: 800; letter-spacing: -0.04em; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.chip .i { width: 17px; height: 17px; color: var(--brand); }
.doc-intro { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40em; margin: 22px 0 0; }
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 48px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc details { border-radius: 20px; }
.toc summary { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 6px 0 10px; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .i { width: 17px; height: 17px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 2px; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4; }
.toc li a:hover { color: var(--fg); border-left-color: var(--brand); }
.doc { max-width: 720px; }
.doc section { padding: 30px 0; border-top: 1px solid var(--line); }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3vw, 28px); letter-spacing: -0.02em; margin-bottom: 12px; }
.doc h2 .n { font: 700 14px/1 var(--body); color: var(--brand-ink); background: var(--brand-soft); padding: 6px 8px; border-radius: 8px; letter-spacing: .02em; }
.doc h2 .i { color: var(--danger); }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0; }
.doc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.doc section.warn { margin: 12px 0; padding: 26px 26px 24px; border: 1.5px solid color-mix(in srgb, var(--danger) 35%, transparent); border-radius: 24px; background: var(--danger-soft); }
.doc section.warn + section { border-top: 0; }
.doc section.warn h2 .n { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.doc section.warn li::before { background: var(--danger); }
.totop { margin: 24px 0 0; font-weight: 600; }
.nf .wrap > div + div { margin-top: 40px; }
@media (max-width: 900px) {
  .doc-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .toc { position: static; }
  .toc details { background: var(--surface); border: 1px solid var(--line); padding: 6px 18px 10px; }
  .toc details:not([open]) { padding-bottom: 6px; }
  .toc summary { cursor: pointer; }
}

/* Footer */
.foot { margin-top: 96px; padding: 56px 0 36px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.is-home .foot { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); margin: 14px 0 0; max-width: 22em; }
.foot nav { display: flex; flex-direction: column; gap: 2px; }
.foot h2 { font: 700 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.foot nav a { color: var(--fg); text-decoration: none; padding: 5px 0; font-weight: 500; }
.foot nav a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot nav a[aria-current] { color: var(--muted); }
.copy { color: var(--faint); font-size: 14px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .stage { min-height: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-column: span 6; }
  .feat.big { grid-column: span 12; }
  .promise { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .feat, .feat.big { grid-column: auto; padding: 26px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .hero { padding: 36px 0 40px; }
  .steps { grid-template-columns: 1fr; }
  .stage { min-height: 520px; transform: scale(.9); margin: -20px 0; }
  .b1 { width: 340px; height: 340px; }
  .f1 { left: -3%; bottom: -4%; }
  .f2 { right: -3%; top: 20%; }
  .store, .ghost { width: 100%; justify-content: center; }
  .doc section.warn { padding: 22px 20px; }
}
