/* ==========================================================================
   ROSHEFY marketing site - one shared stylesheet (home, features, partners, legal).
   System fonts only, no external requests. Sign-in pages use the same file.
   ========================================================================== */
:root {
  --indigo: #1E1B4B; --indigo-2: #2a2570; --violet: #6D28D9; --violet-soft: #ede7fb;
  --coral: #FF6B4A; --amber: #FFB020; --teal: #0f9d8e; --cream: #FFF8F1; --ink: #0F172A;
  --muted: #475569; --line: #e7e2f5; --white: #fff;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --grad-cta: linear-gradient(135deg, #FF6B4A 0%, #FFB020 100%);
  --r-sm: 12px; --r-md: 20px; --r-lg: 32px;
  --shadow: 0 24px 60px -28px rgba(30,27,75,.45);
  --max: 1180px; --head-h: 78px;
  --ease: cubic-bezier(.22,.9,.3,1);
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 1.0625rem; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--violet); }
ul { padding-left: 1.2em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.section--light :focus-visible, .section--white :focus-visible, .legal :focus-visible { outline-color: var(--violet); }

/* progress bar */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 120; background: transparent; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-cta); }

/* buttons */
.btn { --bx: 0px; --by: 0px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.55em; min-height: 48px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s; transform: translate(var(--bx), var(--by)); line-height: 1.1; }
.btn--primary { background: var(--grad-cta); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(255,107,74,.7); }
.btn--primary:hover { box-shadow: 0 18px 38px -10px rgba(255,107,74,.85); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--outline { color: var(--indigo); border-color: var(--indigo); background: transparent; }
.btn--outline:hover { background: var(--indigo); color: #fff; }
.btn--light { background: #fff; color: var(--indigo); }
.btn--sm { padding: .6em 1.2em; min-height: 42px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--head-h); display: flex; align-items: center; background: rgba(30,27,75,.55); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.1); transition: height .3s var(--ease), background .3s; color: #fff; }
.site-header.is-scrolled { height: 62px; background: rgba(30,27,75,.88); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad-cta); color: var(--ink); display: grid; place-items: center; font-weight: 900; transition: transform .3s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.main-nav { display: none; margin-left: auto; gap: .25rem; }
.main-nav a { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .5rem .85rem; border-radius: 999px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav-actions .signin { color: #fff; font-weight: 700; text-decoration: none; padding: .5rem .9rem; border-radius: 999px; display: none; }
.nav-actions .signin:hover { background: rgba(255,255,255,.14); }
.nav-toggle { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; }
.drawer { position: fixed; inset: 0; z-index: 99; background: var(--indigo); color: #fff; padding: calc(var(--head-h) + 20px) 1.5rem 2rem; display: flex; flex-direction: column; gap: .25rem; transform: translateY(-102%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.drawer a:not(.btn) { color: #fff; text-decoration: none; font-size: 1.6rem; font-weight: 800; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer .btn { margin-top: .8rem; }
@media (min-width: 1000px) {
  .main-nav { display: flex; } .nav-toggle { display: none; } .drawer { display: none; }
  .nav-actions { margin-left: 0; } .nav-actions .signin { display: inline-block; }
}
@media (max-width: 420px) { .nav-actions .btn--sm { padding: .5em .9em; } .brand { font-size: 1.15rem; } }

/* sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; overflow-x: clip; }
.section--white { background: #fff; } .section--light { background: var(--cream); }
.section--dark { background: var(--indigo); color: #f4f1ff; }
.section--dark p { color: #cfc9ee; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); padding: .4em .95em; border-radius: 999px; margin-bottom: 1.1rem; }
.section--dark .eyebrow, .hero .eyebrow { background: rgba(255,255,255,.12); color: #ffd9a0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.section--dark .lead { color: #cfc9ee; }
.section-head { max-width: 46rem; margin-bottom: 3rem; } .section-head.center { margin-inline: auto; text-align: center; } .section-head.center .lead { margin-inline: auto; }
.grad-text { background: linear-gradient(100deg, #ffb020, #ff6b4a 55%, #c4a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero */
.hero { position: relative; background: #14123a; color: #fff; overflow: hidden; margin-top: calc(var(--head-h) * -1); padding: calc(var(--head-h) + 3.5rem) 0 5rem; isolation: isolate; }
.mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.mesh i { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { background: #6D28D9; left: -15vmax; top: -20vmax; }
.mesh i:nth-child(2) { background: #FF6B4A; right: -22vmax; top: 5vmax; opacity: .38; animation-duration: 28s; animation-delay: -6s; }
.mesh i:nth-child(3) { background: #14B8A6; left: 20vw; bottom: -34vmax; opacity: .28; animation-duration: 32s; animation-delay: -12s; }
.mesh::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
.hero__grid { display: grid; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: .45em; } .hero .lead { color: #d8d2f5; font-size: clamp(1.1rem, 2.4vw, 1.3rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.4rem; }
.hero__note { color: #b9b2e0; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.hero__note svg { color: var(--amber); flex: none; }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 520px; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

/* phone frame */
.phone { position: relative; width: min(100%, 290px); aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #3a3670, #12102f); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.12); }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 74px; height: 20px; transform: translateX(-50%); background: #0b0a22; border-radius: 12px; z-index: 2; }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--sm { width: min(100%, 300px); } .phone--auto::before { display: none; }
.phone--auto { aspect-ratio: auto; } .phone--auto .phone__screen img { height: auto; }
.float { position: absolute; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; padding: .8rem 1rem; box-shadow: 0 22px 44px -18px rgba(0,0,0,.55); font-size: .88rem; line-height: 1.35; display: flex; gap: .7rem; align-items: center; z-index: 3; animation: bob 6s ease-in-out infinite; }
.float strong { display: block; font-size: .92rem; }
.float__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--violet-soft); color: var(--violet); }
.float--a { left: -2%; top: 14%; } .float--b { right: -3%; top: 50%; animation-delay: -2s; } .float--c { left: 2%; bottom: 6%; animation-delay: -4s; }
.float--b .float__icon { background: #fff1d6; color: #b45309; } .float--c .float__icon { background: #d6f5f0; color: #0b6f64; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@media (max-width: 520px) { .float { font-size: .78rem; padding: .6rem .75rem; } .float--a { left: -6px; } .float--b { right: -6px; } .float__icon { width: 30px; height: 30px; } .hero__visual { min-height: 480px; } }
[data-parallax] { will-change: transform; }

/* marquee */
.marquee { background: var(--indigo-2); color: #fff; overflow: hidden; padding: 1.1rem 0; border-block: 1px solid rgba(255,255,255,.1); }
.marquee__track { display: flex; width: max-content; gap: .8rem; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55em 1.1em; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.chip svg { color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* split feature bands */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } .split--rev .split__media { order: -1; } }
.split__media { display: grid; place-items: center; position: relative; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; }
.ticks svg { flex: none; color: var(--teal); margin-top: .2rem; }
.glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(109,40,217,.28), transparent 65%); z-index: 0; }
.split__media .phone { z-index: 1; }
.note { font-size: .9rem; color: var(--muted); border-left: 4px solid var(--amber); padding: .5rem 1rem; background: #fff; border-radius: 0 10px 10px 0; }

/* stamp card demo */
.stamps { background: #fff; border-radius: var(--r-md); padding: 1.6rem; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 380px; width: 100%; }
.stamps__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.stamps__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #c9c0e8; background: #faf8ff; display: grid; place-items: center; cursor: pointer; padding: 0; font: inherit; color: transparent; transition: transform .35s var(--ease), background .3s, border-color .3s; }
.stamp:hover { transform: scale(1.08); }
.stamp.is-on { background: var(--grad-cta); border: 2px solid transparent; color: var(--ink); transform: rotate(-8deg); }
.stamps__bar { height: 8px; background: #eee9fb; border-radius: 9px; margin: 1.1rem 0 .7rem; overflow: hidden; }
.stamps__bar span { display: block; height: 100%; width: 0; background: var(--grad-cta); border-radius: 9px; transition: width .5s var(--ease); }
.stamps small { color: var(--muted); display: block; }

/* sticky story */
.story { display: grid; gap: 2rem; }
.story__visual { display: none; }
.story__step { padding: 1.6rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); }
.story__step .num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad-cta); color: var(--ink); font-weight: 900; margin-bottom: .9rem; }
.story__step h3 { color: #fff; font-size: 1.5rem; } .story__step p { margin: 0; }
.mini { display: block; margin-top: 1.2rem; } .mini .uicard { max-width: 100%; }
@media (min-width: 960px) {
  .story { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .story__visual { display: block; position: sticky; top: 14vh; height: 72vh; max-height: 560px; }
  .story__steps { display: grid; gap: 0; }
  .story__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; background: transparent; border: 0; border-left: 3px solid rgba(255,255,255,.14); border-radius: 0; padding-left: 2rem; opacity: .4; transition: opacity .4s, border-color .4s; }
  .story__step.is-active { opacity: 1; border-left-color: var(--amber); }
  .mini { display: none; }
  .story__panel { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
  .story__panel.is-active { opacity: 1; transform: none; }
}
.no-js .story__step, .no-js .story__panel { opacity: 1; }
.uicard { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 1.5rem; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); width: min(100%, 360px); }
.uicard h4 { font-size: 1.05rem; margin-bottom: .4rem; } .uicard p { color: var(--muted); font-size: .95rem; }
.uicard .tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #fff1d6; color: #8a4a03; border-radius: 999px; padding: .25em .8em; margin-bottom: .8rem; }
.uicard .draft { background: #f7f4ff; border-radius: 14px; padding: 1rem; font-size: .95rem; color: #2b2750; margin: .6rem 0 1rem; }
.uicard .row { display: flex; gap: .6rem; flex-wrap: wrap; } .uicard .pill { padding: .5em 1em; border-radius: 999px; font-weight: 700; font-size: .88rem; background: var(--violet-soft); color: var(--violet); }
.uicard .pill--ok { background: var(--grad-cta); color: var(--ink); }
.qr-svg { width: 150px; margin: .6rem auto 1rem; border: 8px solid #fff; border-radius: 10px; box-shadow: 0 0 0 2px var(--line); }

/* tabs */
.tabs { display: grid; gap: 2rem; }
.tablist { display: flex; gap: .6rem; overflow-x: auto; padding: .3rem .1rem 1rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tab { flex: none; scroll-snap-align: start; font: inherit; font-weight: 700; padding: .7em 1.2em; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--indigo); cursor: pointer; display: inline-flex; gap: .5rem; align-items: center; min-height: 46px; transition: all .25s var(--ease); }
.tab:hover { border-color: var(--violet); }
.tab[aria-selected="true"] { background: var(--indigo); color: #fff; border-color: var(--indigo); box-shadow: 0 12px 24px -14px var(--indigo); }
.tabpanel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 2rem; box-shadow: var(--shadow); animation: panelIn .5s var(--ease); }
.tabpanel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.tabpanel__art { border-radius: var(--r-md); background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; display: grid; place-items: center; min-height: 220px; padding: 2rem; }
.tabpanel__art svg { width: 96px; height: 96px; color: #ffd9a0; }
@media (min-width: 860px) { .tabpanel { grid-template-columns: 1.2fr .8fr; align-items: center; } }

/* bento */
.bento { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.7rem; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .4rem; } .card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card--dark { background: var(--indigo); color: #fff; border: 0; } .card--dark p { color: #cfc9ee; } .card--dark .card__icon { background: rgba(255,255,255,.14); color: #ffd9a0; }
.card--wide { grid-column: 1 / -1; }

/* pricing */
.toggle { display: inline-flex; background: #ede7fb; border-radius: 999px; padding: 5px; margin-top: 1.4rem; }
.toggle button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: .65em 1.4em; border-radius: 999px; cursor: pointer; color: var(--indigo); min-height: 44px; }
.toggle button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.plans { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; position: relative; }
.plan--featured { background: var(--indigo); color: #fff; border: 0; box-shadow: var(--shadow); }
.plan--featured p, .plan--featured li { color: #e3defa; }
.plan__badge { position: absolute; top: 1.2rem; right: 1.2rem; background: #fff1d6; color: #8a4a03; font-size: .72rem; font-weight: 800; padding: .3em .8em; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.plan__price { font-size: 2.8rem; font-weight: 900; letter-spacing: -.03em; margin: .6rem 0 0; line-height: 1; }
.plan__price small { font-size: 1rem; font-weight: 600; opacity: .75; }
.plan__sub { font-size: .9rem; opacity: .8; margin: .4rem 0 1.2rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; flex: 1; }
.plan li { display: flex; gap: .6rem; font-size: .98rem; } .plan li svg { flex: none; color: var(--teal); margin-top: .25rem; }
.plan--featured li svg { color: #ffd9a0; }
.placeholder-note { background: #fff7e0; border: 1px dashed #d99a0b; color: #6b4100; border-radius: 14px; padding: .9rem 1.2rem; font-size: .95rem; margin-top: 2rem; }

/* faq */
.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: .8rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq__q { width: 100%; text-align: left; font: inherit; font-weight: 700; font-size: 1.08rem; padding: 1.2rem 1.4rem; background: none; border: 0; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--ink); min-height: 56px; }
.faq__q svg { flex: none; transition: transform .3s var(--ease); color: var(--violet); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__a > div { overflow: hidden; } .faq__a p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.no-js .faq__a { grid-template-rows: 1fr; }

/* final cta */
.cta { background: linear-gradient(135deg, #1E1B4B 0%, #6D28D9 55%, #FF6B4A 120%); color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255,176,32,.35), transparent 60%); right: -20vmax; top: -30vmax; z-index: -1; animation: drift 20s ease-in-out infinite alternate; }
.cta p { color: #e6e0ff; max-width: 36em; margin-inline: auto; font-size: 1.15rem; }
.cta .hero__cta { justify-content: center; }

/* page hero (inner pages) */
.page-hero { position: relative; background: #14123a; color: #fff; margin-top: calc(var(--head-h) * -1); padding: calc(var(--head-h) + 4rem) 0 4.5rem; overflow: hidden; isolation: isolate; }
.page-hero .lead { color: #d8d2f5; } .page-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 18em; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.form-field { margin-bottom: 1.1rem; position: relative; }
.form-field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.form-field input[type=text], .form-field input[type=password], .form-field input[type=email], .form-field input[type=tel], .form-field select, .form-field textarea { width: 100%; font: inherit; padding: .8em 1em; border: 2px solid #d5cfee; border-radius: 14px; background: #fff; color: var(--ink); min-height: 48px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(109,40,217,.35); border-color: var(--violet); }
.form-field--checkbox { display: flex; gap: .7rem; align-items: flex-start; flex-wrap: wrap; }
.form-field--checkbox input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--violet); flex: none; }
.form-field--checkbox label { flex: 1; font-weight: 500; margin: 0; min-width: 0; }
.form-error { display: none; color: #b42318; font-size: .88rem; font-weight: 600; margin-top: .3rem; width: 100%; }
.has-error .form-error { display: block; } .has-error input, .has-error select, .has-error textarea { border-color: #b42318; }
.form-status { margin-top: 1rem; font-weight: 600; border-radius: 12px; } .form-status:empty { display: none; }
.form-status.is-success { background: #e3f8f4; color: #065f55; padding: .9rem 1.1rem; } .form-status.is-error { background: #fdecea; color: #912018; padding: .9rem 1.1rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-grid { display: grid; gap: 2.5rem; } @media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.contact-card { background: var(--indigo); color: #fff; border-radius: var(--r-lg); padding: 2rem; }
.contact-card a { color: #ffd9a0; font-weight: 700; } .contact-card address { font-style: normal; }
.contact-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #b9b2e0; font-weight: 800; margin-top: 1.3rem; } .contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .2rem 0 0; }

/* legal */
.legal { padding: 3.5rem 0 6rem; } .legal .container { max-width: 52rem; }
.legal h2 { font-size: 1.55rem; margin-top: 2.6rem; } .legal h3 { margin-top: 1.5rem; }
.legal li { margin-bottom: .4rem; } .legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; } .legal th { background: var(--violet-soft); }
.draft-banner { background: #fff7e0; border: 2px solid #d99a0b; border-radius: 14px; padding: 1rem 1.3rem; color: #5c3800; font-weight: 600; margin-bottom: 1.5rem; }
.meta { color: var(--muted); font-size: .95rem; }
.ph { background: #fff1d6; padding: 0 .3em; border-radius: 4px; font-weight: 700; }
.toc { background: var(--cream); border-radius: 16px; padding: 1rem 1.4rem; } .toc ul { margin: .4rem 0 0; }

/* footer */
.site-footer { background: #100e2e; color: #cfc9ee; padding: 4.5rem 0 2rem; font-size: .98rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer-grid > :first-child { grid-column: auto; } }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a, .site-footer .linklike { color: #cfc9ee; text-decoration: none; background: none; border: 0; font: inherit; padding: 0; cursor: pointer; text-align: left; } .site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .88rem; }

/* cookie notice */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; z-index: 150; background: #fff; color: var(--ink); border-radius: 18px; padding: 1.1rem 1.3rem; box-shadow: 0 24px 60px -16px rgba(0,0,0,.5); border: 1px solid var(--line); display: none; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .93rem; }
.cookie.is-open { display: flex; } .cookie p { margin: 0; flex: 1 1 240px; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="left"] { transform: translateX(-40px); } .js [data-reveal="right"] { transform: translateX(40px); } .js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee__track [aria-hidden="true"] { display: none; }
  .story__step { opacity: 1 !important; }
}

/* sign-in and sign-up pages (server rendered, same look as the site) */
.auth-page { background: #f6f3ff; min-height: 100vh; display: flex; flex-direction: column; }
.auth-header { background: var(--indigo); padding: 1rem 0; }
.auth-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.auth-header nav { display: flex; gap: 1.2rem; } .auth-header nav a { color: #d8d2f5; text-decoration: none; font-weight: 600; font-size: .95rem; } .auth-header nav a:hover { color: #fff; }
.auth-main { flex: 1; display: grid; place-items: start center; padding: clamp(1.5rem, 5vw, 3.5rem) 1rem; }
.auth-card { width: min(100%, 30rem); }
.auth-card h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); letter-spacing: -.02em; }
.auth-lead { color: var(--muted); } .auth-sub { font-size: 1.2rem; margin-top: 1.5rem; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem; margin: 1.4rem 0 0; font-weight: 600; }
.auth-note, .auth-help { color: var(--muted); font-size: .88rem; margin-top: .8rem; display: block; }
.auth-box { background: var(--violet-soft); border-radius: var(--r-sm); padding: 1rem; margin-bottom: 1rem; } .auth-box code, .auth-card code { word-break: break-all; }
.auth-secret { font-size: 1.1rem; letter-spacing: .08em; }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 4.5rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--violet); font: inherit; font-weight: 700; cursor: pointer; padding: .4rem .6rem; border-radius: 8px; }
.auth-footer { background: #100e2e; color: #cfc9ee; padding: 1.2rem 0; font-size: .9rem; } .auth-footer .container { display: flex; gap: 1.2rem; flex-wrap: wrap; } .auth-footer a { color: #cfc9ee; } .auth-footer span { margin-right: auto; }
.auth-main { grid-template-columns: minmax(0, 1fr); } .auth-card { min-width: 0; margin-inline: auto; }
.auth-card input, .auth-card select { max-width: 100%; }
@media (max-width: 480px) { .auth-header nav { display: none; } }
