/* Public front page: warm printed paper, chunky type, heavy ink outlines, riso illustrations (generated in web/src/riso.ts).
   Colours are scoped to the landing page; the app screens keep the quiet app palette. */
body[data-mode="landing"] {
  --paper: #F6EEE1; --paper-2: #FCF8EF; --ink: #1B1613; --ink-2: #62584E; --riso: #E4472B;
  --bg: var(--paper); --surface: var(--paper-2); --text: var(--ink); --text-2: var(--ink-2); --tint: color-mix(in srgb, var(--ink) 5%, var(--paper));
  --divider: color-mix(in srgb, var(--ink) 22%, transparent);
  background-color: var(--paper); color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .14 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body[data-mode="landing"] { --paper: #1A1612; --paper-2: #241E18; --ink: #F4ECDD; --ink-2: #B5AA99; }
}
#view[data-screen="landing"] { max-width: none; padding: 0; min-height: 0; }
html { scroll-padding-top: 84px; }
.land-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--screen); }
.riso { display: block; width: 100%; height: 100%; }

/* Header */
body[data-mode="landing"] .topbar { background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 0; }
body[data-mode="landing"] .topbar__in { height: 80px; max-width: 1240px; }
body[data-mode="landing"] .topbar__brand { font-size: 30px; font-weight: 900; letter-spacing: -.03em; }
body[data-mode="landing"] .topbar__nav--land button { font-size: 18px; font-weight: 700; color: var(--ink); }
body[data-mode="landing"] .topbar__nav--land button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
body[data-mode="landing"] .lang-btn { border: 0; color: var(--ink); font-size: 19px; font-weight: 700; padding: 6px 8px; }
.topbar__sep { width: 2px; height: 24px; background: var(--ink); border-radius: 1px; }
.cta--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; font-weight: 800; }
.cta--outline:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero-land { padding: 28px 0 72px; overflow-x: clip; }
.hero-land__grid { display: grid; gap: 52px; align-items: center; }
.eyebrow { margin: 0 0 22px; font-size: 16px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero-land h1 { font-size: clamp(54px, 9vw, 100px); line-height: .9; font-weight: 900; letter-spacing: -.055em; }
.hero-land h1 span { display: block; } .hero-land h1 .accent { color: var(--riso); }
[dir="rtl"] .hero-land h1 { letter-spacing: 0; line-height: 1.12; }
.lead { margin-top: 30px; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.4; font-weight: 500; color: var(--ink); max-width: 22em; }
.hero-land__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 34px; }
.cta { height: 60px; padding: 0 30px; border-radius: 10px; font-size: 21px; font-weight: 800; }
.textlink { font-size: 20px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (min-width: 960px) { .hero-land { padding: 36px 0 104px; } .hero-land__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; } }

/* The working demo: a tilted postcard with the next one peeking out behind it */
.demo { width: 100%; max-width: 470px; margin: 0 auto; position: relative; }
.demo .deck-wrap { max-width: none; padding: 0; margin: 22px 0 22px; height: clamp(430px, 58vh, 470px); }
.demo .layer:not(.layer--top) { transform: translate(-8%, 5%) rotate(-7deg) scale(.96); opacity: 1; }
.postcard { position: relative; height: 100%; display: flex; flex-direction: column; padding: 12px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 22px; transform: rotate(-2.5deg); }
.demo .layer:not(.layer--top) .postcard { transform: none; }
.postcard__art { flex: none; aspect-ratio: 400 / 250; border-radius: 12px; overflow: hidden; }
.postcard__meta { margin: 18px 8px 6px; font-size: 16px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.postcard h3 { margin: 0 8px; font-size: clamp(28px, 3.2vw, 36px); line-height: .98; font-weight: 800; letter-spacing: -.035em; }
.postcard__org { margin: 8px 8px 0; font-size: 18px; color: var(--ink); }
.postcard__sticker { position: absolute; top: -24px; inset-inline-end: -16px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); }
.demo .stamp { background: var(--paper-2); border-color: var(--ink); color: var(--ink); font-weight: 800; top: 40px; }
.demo .stamp--save { color: var(--riso); border-color: var(--riso); }
.demo .actions { display: flex; justify-content: center; gap: 16px; padding: 0; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 10px; font-size: 20px; font-weight: 800; background: transparent; transition: transform .2s var(--spring), background .15s; }
.pill:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); } .pill:active { transform: scale(.96); }
.demo__note { margin: 18px 4px 0; min-height: 46px; text-align: center; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.demo__note .underline { color: var(--ink); font-weight: 700; }
.demo__end { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 32px; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper-2); }
.demo__end h3 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }

/* Sections */
.land-sec { padding: 72px 0; } .land-sec--tint { background: var(--tint); }
.land-sec--rule { border-top: 2px solid var(--ink); }
.land-sec h2, .land-cta h2 { font-size: clamp(38px, 6vw, 76px); line-height: .95; font-weight: 900; letter-spacing: -.045em; max-width: 14ch; }
[dir="rtl"] .land-sec h2, [dir="rtl"] .land-cta h2 { letter-spacing: 0; line-height: 1.25; }
@media (min-width: 760px) { .land-sec { padding: 104px 0; } }
.land-split { display: grid; gap: 32px; }
@media (min-width: 900px) { .land-split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } .land-split > h2 { position: sticky; top: 110px; } }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-size: 20px; font-weight: 700; padding-bottom: 4px; border-bottom: 3px solid var(--riso); }
[dir="rtl"] .more .ion { transform: scaleX(-1); }

/* Happening soon: notched tickets */
.tickets { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tickets { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1040px) { .tickets { grid-template-columns: repeat(3, 1fr); } }
.ticket { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 12px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper-2); transition: transform .2s var(--spring); }
.ticket:hover { transform: translateY(-4px) rotate(-.5deg); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ticket::before { inset-inline-start: -15px; clip-path: inset(0 0 0 50%); } .ticket::after { inset-inline-end: -15px; clip-path: inset(0 50% 0 0); }
[dir="rtl"] .ticket::before { clip-path: inset(0 50% 0 0); } [dir="rtl"] .ticket::after { clip-path: inset(0 0 0 50%); }
.ticket__art { border-radius: 10px; overflow: hidden; min-height: 132px; }
.ticket__body { display: flex; flex-direction: column; justify-content: center; padding-inline-end: 12px; min-width: 0; }
.ticket__meta { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .ticket__meta { letter-spacing: 0; }
.ticket h3 { margin: 8px 0 6px; font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.ticket__org { color: var(--ink-2); font-size: 16px; line-height: 1.3; }

/* Categories */
.cats { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.cat { display: flex; flex-direction: column; min-height: 210px; padding: 24px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 16px; transition: transform .2s var(--spring); }
.cat:hover { transform: translateY(-4px) rotate(-.6deg); }
.cat__top { display: flex; align-items: center; justify-content: space-between; } .cat__n { font-size: 15px; font-weight: 800; }
.cat--empty { background: transparent; border-style: dashed; } .cat--empty h3, .cat--empty .ion { opacity: .55; }
.cat h3 { margin-top: auto; font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.03em; } .cat p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(4, 1fr); } }

/* How it works */
.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; gap: 40px; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step__n { font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--riso); }
.step h3 { margin: 14px 0 10px; font-size: 38px; line-height: 1; font-weight: 900; letter-spacing: -.04em; } .step p { color: var(--ink); font-size: 19px; line-height: 1.5; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 44px; } }

/* Trust */
.whys { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.why { padding: 26px 0; border-top: 2px solid var(--ink); }
.why h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; } .why p { margin-top: 8px; color: var(--ink-2); font-size: 18px; line-height: 1.5; max-width: 38em; }

/* Institutes */
.orgs { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.orgs li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.orgs .avatar { margin-bottom: 10px; border: 2px solid var(--ink); } .orgs b { font-size: 18px; line-height: 1.2; font-weight: 800; } .orgs small { color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { border-bottom: 2px solid var(--ink); }
.faq details { border-top: 2px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 34px; font-weight: 400; line-height: .9; color: var(--riso); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 28px; color: var(--ink-2); font-size: 19px; line-height: 1.55; max-width: 42em; }

/* Closing band + footer */
.land-cta { background: var(--ink); color: var(--paper); padding: 104px 0; text-align: center; }
.land-cta .land-in { display: flex; flex-direction: column; align-items: center; gap: 18px; } .land-cta h2 { max-width: none; }
.land-cta p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 21px; margin-bottom: 14px; }
.land-foot { padding: 30px 0 44px; color: var(--ink-2); font-size: 15px; }
.land-foot .land-in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; } .land-foot a { text-decoration: underline; }

/* Phones: a header that fits */
@media (max-width: 600px) {
  body[data-mode="landing"] .topbar__in { height: 68px; gap: 8px; }
  body[data-mode="landing"] .topbar__brand { font-size: 24px; margin-inline-end: 0; gap: 8px; }
  .topbar__sep { display: none; }
  body[data-mode="landing"] .lang-btn { font-size: 17px; padding: 6px 4px; }
  .cta--small { height: 40px; padding: 0 14px; font-size: 16px; }
  .hero-land { padding-top: 12px; }
}
