/* FellowAI public site - direction A, "tropical y juguetón".
   Layout: one centred column with full-bleed bands. The mascot carries the
   personality; type and colour stay quiet around it. Single light look by
   design, with one deliberately dark band (the night section). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0F3D2E;          /* deep green: text, buttons, the mascot's lines */
  --ink-2: #1F5C45;
  --muted: #3E6355;        /* 6:1 on --ground */
  --ground: #EEF6F0;       /* pale mint page */
  --surface: #FFFFFF;
  --rule: #D3E5D9;
  --mango: #FFB627;        /* shapes; text only on deep green (DESIGN.md) */
  --mango-sf: #FFF1D2;
  --mint-sf: #E3F3E8;
  --coral: #FF8A70;        /* shapes only */
  --mint: #7FD1A0;
  --night: #0F3D2E;
  --night-2: #16503C;
  --on-night: #EAF5EE;
  --on-night-muted: #B5D6C4;
  --error: #9A2B16;

  --f-display: "Bricolage Grotesque", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Springs as easing curves (stiffness/damping 400/30 snappy, 170/22 soft). */
  --spring: linear(0, 0.027, 0.096, 0.191, 0.297, 0.407, 0.513, 0.611, 0.698, 0.774, 0.838, 0.89, 0.932, 0.964, 0.988, 1.005, 1.017, 1.024, 1.027, 1.028, 1.028, 1.026, 1.023, 1.02, 1.017, 1.014, 1.011, 1.009, 1.007, 1.005, 1.003, 1.002, 1.001);
  --spring-soft: linear(0, 0.032, 0.11, 0.211, 0.322, 0.433, 0.536, 0.629, 0.709, 0.777, 0.833, 0.879, 0.914, 0.942, 0.963, 0.978, 0.989, 0.997, 1.002, 1.005, 1.006, 1.007, 1.007, 1.007, 1.006, 1.005, 1.004, 1.004, 1.003, 1.002, 1.002, 1.001, 1.001);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 22px;

  /* The type scale. Every size on the page comes from here (plus the two
     fluid headline sizes), so the page reads as one voice. */
  --t-meta: .75rem;    /* inside the phone mock-ups only */
  --t-mock: .875rem;   /* inside the phone mock-ups only */
  --t-small: .92rem;   /* notes, hints, legal lines */
  --t-body: 1.0625rem; /* paragraphs, labels, links */
  --t-lead: 1.2rem;    /* the sentence under a heading */
  --t-title: 1.5rem;   /* card and theme titles, the brand */
}
@supports not (transition-timing-function: linear(0, 1)) { :root { --spring: cubic-bezier(0.34, 1.3, 0.64, 1); --spring-soft: cubic-bezier(0.34, 1.15, 0.64, 1); } }

*, *::before, *::after { box-sizing: border-box; }
/* Components set their own display, which would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.m-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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 { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
/* Texture (site only, DESIGN.md "The Texture Rule"): a near-invisible
   gradient, a 1px inner light edge and a short shadow make buttons feel
   pressable; pressing drops them a pixel and turns the light off. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.6rem;
  font: 700 var(--t-body)/1 var(--f-body);
  color: #fff; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #1B5641 0%, var(--ink) 55%, #0B3326 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 0 1px #0A2E22, 0 6px 14px -8px rgba(15, 61, 46, .7);
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), filter 160ms ease;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 0 0 1px #0A2E22, 0 2px 4px -2px rgba(15, 61, 46, .6); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-quiet { color: var(--ink); background: linear-gradient(180deg, #fff 0%, #F4FAF6 100%); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--rule), 0 4px 10px -8px rgba(15, 61, 46, .5); }
.btn-quiet:active { box-shadow: inset 0 1px 2px rgba(15, 61, 46, .18), 0 0 0 1px var(--rule); }
.btn-small { min-height: 44px; padding: 0 1.1rem; font-size: var(--t-small); }
.tex-card { background: linear-gradient(180deg, #fff 0%, #FAFDFB 100%); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--rule), 0 1px 0 1px rgba(15, 61, 46, .04), 0 18px 30px -24px rgba(15, 61, 46, .35); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); }
  .btn-quiet:hover { filter: brightness(.98); }
}
.wa-icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- header ---------- */
.site-head { padding-block: 1.1rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 var(--t-title)/1 var(--f-display); letter-spacing: -0.03em; }
.brand img { width: 2.4rem; height: 2.4rem; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a.link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: var(--t-body); }
.site-nav a.quiet { color: var(--muted); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .site-nav a.link:hover { text-decoration: underline; } }
@media (max-width: 760px) { .site-nav a.link { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 1.5rem 4.5rem; }
.hero .wrap { position: relative; display: grid; gap: 2rem; }
/* Two lines at every width from a small phone up: the headline spans the full
   width instead of being squeezed into half of it. */
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 5.6rem); line-height: .96; letter-spacing: -0.04em; font-weight: 800; max-width: 15ch; }
@media (min-width: 940px) { .hero h1 { max-width: none; } }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero .lede { font-size: var(--t-lead); color: var(--muted); max-width: 32rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.hero-cta .alt { font-weight: 600; }
.hero-note { font-size: var(--t-body); color: var(--muted); }
.price-from { display: block; font-size: var(--t-body); color: var(--muted); max-width: 32rem; }
.price-from s { color: var(--muted); }
.price-from b { color: var(--ink); }

.stage { position: relative; min-height: 34rem; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-coral { width: min(34rem, 92vw); aspect-ratio: 1; background: var(--coral); right: -10%; top: 4%; }
.blob-mango { width: 7.5rem; aspect-ratio: 1; background: var(--mango); left: 4%; bottom: 6%; }
@media (max-width: 939px) { .blob-coral { right: -30%; } }

.phone {
  position: relative; width: 17.5rem; aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 2.6rem; padding: .7rem;
  box-shadow: 0 40px 80px -36px rgba(15, 61, 46, .6);
  transform: rotate(3deg);
}
.screen { height: 100%; background: #F6FBF7; border-radius: 2rem; overflow: hidden; display: flex; flex-direction: column; }
.chat-top { background: var(--ink); color: #fff; padding: .5rem 1rem .8rem; display: flex; align-items: center; gap: .6rem; }
.chat-top .av { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font: 800 var(--t-meta)/1 var(--f-display); }
.chat-top b { display: block; font-size: var(--t-mock); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-top > div { min-width: 0; }
.chat-top span { font-size: var(--t-meta); color: #BFE3CC; }
/* The phone's status row: room for the island above the business name. */
.status { flex: none; height: 3.1rem; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: flex-start; padding: 1.05rem 1.3rem 0; font: 700 var(--t-meta)/1 var(--f-body); font-variant-numeric: tabular-nums; }
.bars { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.bars i { width: 3px; background: #fff; border-radius: 1px; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 7px; } .bars i:nth-child(3) { height: 10px; }

/* The order island. One small element whose size is the whole animation
   (isolated with contain, so resizing it never re-lays out the page). */
.island {
  position: absolute; top: calc(.7rem + 8px); left: 50%; z-index: 2;
  width: 108px; height: 28px; margin-left: -54px; border-radius: 16px;
  background: #061F17; color: #EAF5EE; overflow: hidden; contain: layout paint;
}
.island > div { position: absolute; inset: 0; display: flex; align-items: center; }
.i-idle { justify-content: center; gap: .35rem; font-size: .7rem; font-weight: 600; color: #B5D6C4; opacity: 0; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.i-big { padding: 0 .85rem 0 .6rem; gap: .55rem; opacity: 0; transform: scale(.9); }
.i-small { justify-content: center; gap: .3rem; font-size: .78rem; }
.i-small b { font-variant-numeric: tabular-nums; }
.i-ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--mint); color: var(--ink); flex: none; }
.i-ico.sm { width: 16px; height: 16px; padding: 2px; }
.i-txt { display: grid; line-height: 1.2; min-width: 0; }
.i-txt b { font-size: .8rem; white-space: nowrap; }
.i-txt span { font-size: .68rem; color: #B5D6C4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-amt { margin-left: auto; font: 800 .95rem/1 var(--f-display); color: var(--mango); font-variant-numeric: tabular-nums; }
.island[data-state="idle"] { width: 96px; margin-left: -48px; }
.island[data-state="idle"] .i-idle { opacity: 1; }
.island[data-state="idle"] .i-small { opacity: 0; }
.island[data-state="big"] { width: 240px; height: 50px; margin-left: -120px; border-radius: 25px; }
.island[data-state="big"] .i-big { opacity: 1; transform: none; }
.island[data-state="big"] .i-small { opacity: 0; }
.motion .island { transition: width 420ms var(--spring), height 420ms var(--spring), margin-left 420ms var(--spring), border-radius 420ms var(--spring); }
.motion .island > div { transition: opacity 180ms ease, transform 300ms var(--ease-out); }
.motion .island[data-state="big"] .i-big { transition-delay: 90ms; }
.motion .island[data-state="small"] .i-small { transition-delay: 120ms; }

/* Anchored to the bottom like a real chat: older messages leave through the top. */
.thread { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; padding: .9rem .75rem; font-size: var(--t-mock); line-height: 1.4; }
.thread > * { flex: none; }
.day { align-self: center; font-size: var(--t-meta); color: var(--muted); background: #fff; border-radius: 6px; padding: .1rem .5rem; }
.msg { max-width: 86%; padding: .5rem .65rem .3rem; border-radius: 14px; }
.msg time { display: block; text-align: right; font-size: var(--t-meta); color: var(--muted); margin-top: .1rem; }
.msg.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #CDEFD8; border-bottom-right-radius: 4px; }
.typing { align-self: flex-end; display: none; gap: .25rem; background: #CDEFD8; border-radius: 14px; border-bottom-right-radius: 4px; padding: .6rem .75rem; }
.typing i { width: .38rem; height: .38rem; border-radius: 50%; background: var(--ink); opacity: .45; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: .85; } }

/* The waving mascot stands below the phone's corner at every width, so it never
   covers the last message and its total (it used to, at laptop widths). */
.stage { padding-bottom: 9.8rem; }
.hero-mascot { position: absolute; width: 8.5rem; right: max(0rem, calc(50% - 13rem)); bottom: 0; z-index: 2; }
@media (max-width: 939px) { .stage { padding-bottom: 8.8rem; } .hero-mascot { width: 7.5rem; right: max(0rem, calc(50% - 11rem)); } }
.sticker {
  position: absolute; z-index: 3; background: #fff; border-radius: 16px;
  padding: .75rem 1rem; box-shadow: 0 18px 36px -20px rgba(15, 61, 46, .5);
  display: grid; gap: .1rem;
}
.sticker b { font: 800 var(--t-lead)/1.1 var(--f-display); }
.sticker span { font-size: var(--t-mock); color: var(--muted); }
.sticker-time { left: max(0rem, calc(50% - 17.5rem)); top: 14%; background: var(--ink); color: var(--mango); font-weight: 700; font-size: var(--t-small); transform: rotate(5deg); }

/* ---------- sections ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-white { background: var(--surface); }
.section-head { display: grid; gap: .9rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: var(--t-lead); }

/* what it does */
.does-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .does-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; } }
.does-art { width: min(14rem, 60%); margin-top: 1.5rem; }
/* "Lo que hace": one line per job, opened to a real example. Without the
   script every item is open; main.js closes all but the first. */
.acc { border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc h3 { margin: 0; font: inherit; }
.acc-btn { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .2rem 1rem; padding: 1rem 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.acc-word { font: 800 clamp(1.9rem, 7vw, 2.6rem)/1 var(--f-display); letter-spacing: -0.03em; }
.acc-sum { color: var(--muted); line-height: 1.3; }
@media (max-width: 520px) { .acc-btn { grid-template-columns: 1fr auto; } .acc-sum { grid-column: 1; grid-row: 2; } .acc-plus { grid-row: 1 / span 2; } }
.acc-plus { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); align-self: center; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ink); }
.acc-plus::after { transform: rotate(90deg); }
.acc-item[data-open="true"] .acc-plus { background: var(--ink); transform: rotate(180deg); }
.acc-item[data-open="true"] .acc-plus::before, .acc-item[data-open="true"] .acc-plus::after { background: var(--on-night); }
.acc-item[data-open="true"] .acc-plus::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; }
.acc-item[data-open="true"] .acc-panel { grid-template-rows: 1fr; }
.acc-in { overflow: hidden; min-height: 0; display: grid; gap: .8rem; }
.acc-in > p { padding-bottom: 1.2rem; color: var(--muted); max-width: 34rem; }
.mini { background: #F6FBF7; border-radius: 16px; padding: .8rem; display: flex; flex-direction: column; gap: .4rem; max-width: 26rem; font-size: var(--t-mock); line-height: 1.4; }
.mini .msg { padding: .45rem .7rem; }
.msg.note { align-self: flex-start; background: var(--ink); color: var(--on-night); font-weight: 600; border-radius: 12px; }
.acc-item:not([data-open="true"]) .acc-in > * { opacity: 0; }
.motion .acc-panel { transition: grid-template-rows 340ms var(--ease-out); }
.motion .acc-in > * { transition: opacity 220ms ease 60ms; }
.motion .acc-plus { transition: background-color 250ms ease, transform 350ms var(--spring); }
.motion .acc-plus::before, .motion .acc-plus::after { transition: transform 300ms var(--ease-out), background-color 250ms ease; }

/* night */
.night { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.night .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .night .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.night .section-head p { color: var(--on-night-muted); }
.night-art { position: relative; width: min(24rem, 100%); justify-self: center; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--mango); opacity: .8; }
.night-chat { margin-top: 1.8rem; display: grid; gap: .55rem; max-width: 26rem; font-size: var(--t-body); }
.night-chat .msg.in { background: var(--night-2); color: var(--on-night); }
.night-chat .msg.out { background: var(--mint); color: var(--ink); }
.night-chat .msg time { color: inherit; opacity: .7; }
.night-chat .msg.out time { opacity: 1; } /* faded ink on mint fell to 3.5:1 */
.night-clock { font: 800 clamp(3.5rem, 9vw, 5rem)/1 var(--f-display); letter-spacing: -0.03em; color: var(--mango); }

/* install steps */
.steps-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .steps-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 4rem; } }
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.6rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.steps li::before {
  content: counter(step); width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--mango); color: var(--ink);
  font: 800 var(--t-lead)/1 var(--f-display);
}
.steps h3 { font-size: var(--t-lead); font-weight: 700; padding-top: .6rem; letter-spacing: -0.015em; }
.steps p { margin-top: .3rem; color: var(--muted); }
.steps-art { width: min(15rem, 70%); justify-self: center; }

/* plans */
/* One table you can read at a glance, on a phone too, instead of four tall cards. */
.plan-table { width: 100%; margin-top: 2.2rem; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums lining-nums; }
.plan-table th, .plan-table td { padding: 1rem clamp(.75rem, 3vw, 1.5rem); text-align: left; vertical-align: middle; }
.plan-table thead th { font-size: var(--t-small); font-weight: 600; color: var(--muted); padding-bottom: .4rem; }
.plan-table tbody tr + tr th, .plan-table tbody tr + tr td { border-top: 1px solid var(--rule); }
.plan-table tbody th { font: 800 var(--t-lead)/1.15 var(--f-display); letter-spacing: -0.02em; }
.plan-table tbody th span { display: block; margin-top: .25rem; font: 400 var(--t-small)/1.3 var(--f-body); letter-spacing: 0; color: var(--muted); }
.plan-table .now { font: 800 var(--t-title)/1 var(--f-display); letter-spacing: -0.03em; white-space: nowrap; }
.plan-table .was { color: var(--muted); font-size: var(--t-small); white-space: nowrap; }
.plan-table tr.best { background: var(--mango-sf); }
.plan-table tr.best th span { color: var(--ink); font-weight: 600; }

/* ---------- plan picker (replaces the table when the script runs) ---------- */
.has-picker .plan-table, .has-picker .after, .has-picker .plans-cta { display: none; }
@media (min-width: 900px) {
  .has-picker > .wrap { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); column-gap: 4rem; align-items: center; }
  .has-picker > .wrap > .section-head { grid-column: 1 / -1; }
  .has-picker .plan-notes { grid-column: 2; grid-row: 2; font-size: var(--t-lead); }
}
.plan-pick { margin-top: 2.2rem; max-width: 34rem; border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: .9rem; }
.plan-pick[hidden] { display: none; }
.seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ground); border-radius: 999px; padding: 4px; margin-top: .7rem; }
.seg button { position: relative; z-index: 1; border: 0; background: none; font: 700 var(--t-small)/1 var(--f-body); color: var(--muted); min-height: 44px; border-radius: 999px; cursor: pointer; padding: 0 .3rem; -webkit-tap-highlight-color: transparent; }
.seg button[aria-checked="true"] { color: #fff; }
/* The recommended plan, tagged on the button itself (sits on the picker's top edge). */
.seg-tag { position: absolute; left: 50%; top: -.95rem; transform: translateX(-50%); white-space: nowrap; background: var(--mango-sf); color: var(--ink); border: 1px solid var(--mango); border-radius: 999px; padding: .15rem .45rem; font: 700 .68rem/1.2 var(--f-body); pointer-events: none; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 999px; background: var(--ink); }
.pp-label { font-weight: 600; color: var(--muted); font-size: var(--t-small); }
.pp-price { display: flex; align-items: flex-start; font: 800 1rem/1 var(--f-display); letter-spacing: -0.03em; }
.pp-price .cur { font-size: 1.4rem; margin: .45rem .25rem 0 0; }
.roll { display: inline-flex; font-size: clamp(3.2rem, 13vw, 4.4rem); font-variant-numeric: tabular-nums; }
.slot { display: inline-block; height: 1em; overflow: hidden; width: .62em; }
.slot.sep { width: .26em; }
.slot.gone { width: 0; }
.col { display: flex; flex-direction: column; }
.col span { height: 1em; line-height: 1; text-align: center; }
.pp-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: var(--t-small); }
.pp-row s { margin-left: .3rem; }
.save { background: var(--mint-sf); color: var(--ink); font-weight: 700; padding: .15rem .6rem; border-radius: 8px; font-variant-numeric: tabular-nums; }
.pp-after { display: grid; gap: .2rem; background: var(--ground); border-radius: 12px; padding: .8rem 1rem; color: var(--muted); font-size: var(--t-small); }
.pp-after b { color: var(--ink); font: 800 var(--t-lead)/1.2 var(--f-display); letter-spacing: -0.01em; }
.motion .seg-pill { transition: transform 420ms var(--spring); }
.motion .seg button { transition: color 200ms ease; }
.motion .slot { transition: width 380ms var(--spring); }
.motion .col { transition: transform 620ms var(--spring-soft); }
@media (max-width: 420px) {
  .plan-table .now { font-size: var(--t-lead); }
  .plan-table th, .plan-table td { padding-inline: .6rem; }
}
.after { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1.3rem 1.5rem; border-radius: var(--radius); background: var(--ink); color: var(--on-night); }
.after b { font: 800 var(--t-title)/1 var(--f-display); color: var(--mango); white-space: nowrap; }
.after span { color: var(--on-night-muted); flex: 1 1 18rem; }
.plan-notes { margin-top: 1.6rem; display: grid; gap: .5rem 2rem; color: var(--muted); }

.plan-notes b { color: var(--ink); }
.plans-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.point-art { width: 8.5rem; }

/* live demo */
.demo-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; } }
.demo-note { font-size: var(--t-small) !important; }
.demo-chat { background: #F6FBF7; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--rule); display: flex; flex-direction: column; }
.demo-chat .chat-top { padding: 1rem; }
.demo-thread { height: auto; min-height: 8rem; max-height: 22rem; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: 1rem .9rem; font-size: var(--t-body); line-height: 1.45; }
.demo-thread .msg { max-width: 86%; white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-thread .msg.in { align-self: flex-end; background: #CDEFD8; border-radius: 14px; border-bottom-right-radius: 4px; }
.demo-thread .msg.out { align-self: flex-start; background: #fff; border-radius: 14px; border-bottom-left-radius: 4px; border-bottom-right-radius: 14px; }
.demo-thread .msg.err { background: #FFE4DD; color: var(--error); }
.demo-chips { display: flex; gap: .5rem; overflow-x: auto; padding: 0 .9rem .6rem; scrollbar-width: none; }
.demo-chips[hidden] { display: none !important; }
.chip { flex: none; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--rule); background: #fff; color: var(--ink); font: 600 var(--t-small)/1 var(--f-body); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.demo-form { display: flex; gap: .5rem; padding: .75rem; background: #fff; border-top: 2px solid var(--rule); }
.demo-form input { flex: 1; min-width: 0; width: 100%; background: var(--ground); }
/* Sample questions typed into the empty box (only with motion, only on screen). */
.tw-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.tw { position: absolute; inset: 0 1rem; display: none; align-items: center; pointer-events: none; color: var(--muted); white-space: nowrap; overflow: hidden; font-size: 16px; }
.tw-wrap.tw-on .tw { display: flex; }
.caret { display: inline-block; flex: none; width: 2px; height: 1.15em; margin-left: 1px; background: var(--ink); animation: caret 1s steps(1) infinite; }
.tw.typing-now .caret { animation: none; }
@keyframes caret { 50% { opacity: 0; } }

/* the owner's panel */
.panel-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.ticks { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .9rem; max-width: 32rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--muted); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--mint); }
.ticks li::after { content: ""; position: absolute; left: .42rem; top: .38em; width: .32rem; height: .58rem; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.portal-stage { display: grid; place-items: center; position: relative; }
.portal-stage::before { content: ""; position: absolute; width: min(26rem, 90vw); aspect-ratio: 1; border-radius: 50%; background: var(--mango); opacity: .9; }
.phone-portal { transform: rotate(-3deg); }
.p-screen { background: var(--ground); }
.p-top { display: flex; align-items: center; gap: .5rem; background: var(--ink); color: var(--on-night); padding: 1.4rem .9rem .75rem; font: 800 var(--t-mock)/1 var(--f-display); }
.p-body { flex: 1; min-height: 0; overflow: hidden; padding: .6rem .7rem; display: grid; align-content: start; gap: .45rem; font-size: var(--t-meta); line-height: 1.35; }
.p-title { font: 800 var(--t-mock)/1 var(--f-display); margin-top: .3rem; }
.p-row, .p-order { background: #fff; border-radius: 12px; padding: .55rem .6rem; }
.p-row { display: flex; justify-content: space-between; gap: .4rem; align-items: flex-start; }
.p-row b, .p-order b { display: block; }
.p-row span { color: var(--muted); }
/* The phone is narrow: name and number stay on one line each, and the badge drops under them rather than squeezing the text to a word per line. */
.p-row { flex-wrap: wrap; }
.p-row > div { flex: 1 1 9rem; min-width: 0; }
.p-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row span { display: block; overflow-wrap: normal; }
.p-badge { flex: none; font-style: normal; font-weight: 700; border-radius: 6px; padding: .1rem .35rem; white-space: nowrap; }
.p-wait { background: #FFE4DD; color: var(--error); }
.p-ok { background: #E3F3E8; }
.p-order-top { display: flex; justify-content: space-between; gap: .4rem; }
.p-addr { margin-top: .3rem; background: var(--mango-sf); border-radius: 8px; padding: .3rem .4rem; }
.p-order-foot { display: flex; justify-content: space-between; margin-top: .4rem; color: var(--muted); }
.p-link { color: var(--ink); font-weight: 700; text-decoration: underline; }
.p-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 3px; text-align: center; letter-spacing: -0.02em; background: #fff; border-top: 1px solid var(--rule); padding: .55rem .1rem .8rem; font-size: min(var(--t-meta), 2.4vw); color: var(--muted); } /* five tabs must fit the small phone on a phone */
.p-tabs .on { color: var(--ink); font-weight: 700; }
.p-tabs i { font-style: normal; margin-left: .1rem; background: var(--coral); border-radius: 999px; padding: 0 .3rem; }

/* While the demo is hidden, keep the bands alternating instead of two pale
   ones running together. */
#demo[hidden] + #panel { background: var(--surface); }
#demo[hidden] ~ #como-funciona { background: var(--ground); }

/* reserve */
.reserve { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .reserve { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; } }
.reserve-side { display: grid; gap: 1.6rem; align-content: start; }
.founder { display: grid; gap: .8rem; max-width: 34rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.founder-head { display: flex; align-items: center; gap: .85rem; }
.founder-av { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; background: var(--ink); }
.founder-head span { display: block; color: var(--muted); font-size: var(--t-small); }
.founder h3 { font-size: var(--t-title); font-weight: 800; }
.founder p { color: var(--muted); }
.wa-box { background: var(--mango-sf); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .8rem; justify-items: start; }
.wa-box h3 { font-size: var(--t-title); font-weight: 800; }
.wa-box p { color: var(--muted); }
.form-card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.2rem); }
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: var(--t-body); }
.hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--ground);
  border: 2px solid transparent; border-radius: 14px; padding: .85rem 1rem; width: 100%;
  transition: border-color 200ms ease, background-color 200ms ease;
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--ink); outline: none; }
.field[data-error] input { border-color: var(--error); background: #fff; }
.err { color: var(--error); font-size: var(--t-small); font-weight: 600; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-weight: 700; }
.privacy-note { color: var(--muted); font-size: var(--t-small); }
.done { display: grid; justify-items: center; text-align: center; gap: .8rem; padding-block: 1rem; }
.done .m-pose { width: 11rem; margin-inline: auto; }
.done h3 { font-size: var(--t-title); font-weight: 800; }
.done p { color: var(--muted); max-width: 26rem; }

/* faq */
.faq { margin-top: 2rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 700; font-size: var(--t-body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.45rem; width: .6rem; height: .6rem;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg); transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(.25rem) rotate(-135deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 40rem; }

/* footer */
.site-foot { background: var(--ink); color: var(--on-night-muted); padding-block: 3rem; }
.site-foot .wrap { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.site-foot .brand { color: var(--on-night); }
.site-foot p { margin-top: .8rem; max-width: 26rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 0 2.5rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night); text-decoration: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { text-decoration: underline; } }
.copy { grid-column: 1 / -1; font-size: var(--t-small); border-top: 1px solid var(--night-2); padding-top: 1.2rem; }

/* pinned reserve bar (phones) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 2px solid var(--rule);
}
.sticky-cta span { font-size: var(--t-small); color: var(--muted); line-height: 1.3; }
.sticky-cta .btn { flex: none; min-height: 48px; padding: 0 1.2rem; }
.sticky-cta.off { transform: translateY(110%); visibility: hidden; }
.motion .sticky-cta { transition: transform 280ms var(--ease-out), visibility 0s linear 0s; }
.motion .sticky-cta.off { transition: transform 220ms var(--ease-out), visibility 0s linear 220ms; }
@media (min-width: 761px) { .sticky-cta { display: none !important; } }
/* Room at the very end of the page so the bar never sits over the footer links. */
@media (max-width: 760px) { .site-foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }

/* legal pages and 404 */
.doc { padding-block: 2rem 5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; }
.doc .updated { margin-top: .8rem; color: var(--muted); }
.toc { margin-top: 1.6rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; }
.doc .toc p { margin: 0; font-weight: 700; color: var(--ink); }
.toc ol { margin: .5rem 0 0; padding-left: 1.3rem; display: grid; gap: .1rem; }
.toc a { display: inline-block; padding-block: .35rem; color: var(--ink); text-underline-offset: 3px; }
.doc h2 { scroll-margin-top: 1rem; }
.doc h2 { font-size: var(--t-title); font-weight: 800; margin-top: 2.4rem; letter-spacing: -0.02em; }
.doc p, .doc li { color: #24493B; }
.doc p { margin-top: .8rem; }
.doc ul { margin: .8rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.lost { padding-block: 3rem 6rem; text-align: center; }
.lost .wrap { display: grid; justify-items: center; gap: 1.2rem; }
.lost .night-art { background: var(--night); border-radius: 50%; padding: 2rem; width: min(20rem, 80vw); }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; }
.lost p { color: var(--muted); max-width: 30rem; }

/* ---------- mascot motion ---------- */
.m-svg { width: 100%; height: auto; overflow: visible; }
.m-pose { display: block; width: 100%; height: auto; }
.m-sleep { position: relative; }
.m-z-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.m-wave { transform-box: view-box; transform-origin: 168px 124px; }
.m-eyes { transform-box: view-box; transform-origin: 100px 106px; }

/* Motion only once the script has confirmed the visitor did not ask for less.
   Without the script, or with reduced motion, everything is simply visible. */
.motion .m-hero .m-wave { animation: wave 1.6s var(--ease-in-out) 1.2s 2 both; }
.motion .m-hero .m-eyes { animation: blink 5.5s ease 3s infinite; }
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  70% { transform: rotate(-8deg); }
}
@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal-moon { opacity: 0; transform: translateY(32px) scale(0.96); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.motion .reveal-moon.in { opacity: 1; transform: none; }
.motion .m-sleep .m-z text { animation: drift 3.6s ease-in-out infinite; }
.motion .m-sleep .m-z text:nth-child(2) { animation-delay: .6s; }
.motion .m-sleep .m-z text:nth-child(3) { animation-delay: 1.2s; }
@keyframes drift { 0%, 100% { opacity: .35; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }

.motion .msg.later { display: none; }
.motion .msg.show { animation: bubble 320ms var(--ease-out); }
@keyframes bubble { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }

.motion .done .m-pose { animation: pop 500ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typing i { animation: none; }
  .btn, .plan, .faq summary::after { transition: none; }
}

/* ---------- phones: the same page, tighter ----------
   Every section earns its height here; decoration shrinks or steps aside
   before any words do. */
@media (max-width: 760px) {
  /* Phones get room to breathe (Jean, 18 Oct 2026: the phone layout felt
     cramped): more air between sections and inside lists than before. */
  .band { padding-block: 4.25rem; }
  .hero { padding-bottom: 3.25rem; }
  .hero-copy { gap: 1.75rem; }
  .ticks { gap: 1.2rem; }
  .acc-btn { padding: 1.3rem 0; }
  .acc-in > p { padding-bottom: 1.5rem; }
  .faq summary { padding-block: 1.35rem; }
  form { gap: 1.35rem; }
  .plan-pick { gap: 1.1rem; }
  .phone { width: 14.5rem; }
  .stage { min-height: 0; }
  .blob-coral { width: min(24rem, 86vw); }
  .island[data-state="big"] { width: 202px; margin-left: -101px; }
  .i-amt { font-size: .85rem; }
  /* No room for the time sticker beside a phone-sized phone: it covered the
     chat. The status row already shows 10:14 and every bubble says p. m. */
  .sticker-time { display: none; }
  .i-big { padding: 0 .7rem 0 .45rem; gap: .4rem; }
  .demo-thread { max-height: 15rem; }
  .portal-stage::before { width: min(18rem, 80vw); }
  .does-art { display: none; }
  .steps-art { display: none; }
  .steps { margin-top: 2rem; gap: 1.8rem; }
  .night-art { width: min(15rem, 80%); }
  .night-clock { font-size: 3rem; }
  .point-art { width: 6.5rem; }
  .section-head { gap: 1rem; }
}

/* ======================================================================
   Scroll-story pass (27 October 2026), after Jean's Dribbble reference.
   Every piece reads with no script and with less motion; motion lives
   under .motion only. Colours: DESIGN.md's palette, nothing else.
   ====================================================================== */
:root { --coral-sf: #FFE4DD; }

/* Small labels above section headings (Jean asked to see them; the taste
   skill bans them, so they are easy to drop: delete .eyebrow). */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 700 .8rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mango); }
.night .eyebrow { color: var(--on-night-muted); }

/* Ticker under the hero */
.ticker { display: flex; overflow: hidden; background: var(--night); color: var(--on-night); padding-block: .9rem; }
.tick-track { flex: none; display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0; padding: 0 1rem; list-style: none; font: 700 var(--t-body)/1.3 var(--f-body); }
.tick-track li { display: inline-flex; align-items: center; gap: 2rem; white-space: nowrap; }
.tick-track li::after { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--mango); }
.tick-copy { display: none; }
.motion .tick-track { flex-wrap: nowrap; padding-right: 2rem; animation: tick 38s linear infinite; }
.motion .tick-copy { display: flex; }
.motion .ticker:hover .tick-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

/* Sin / Con */
.sc { margin-top: 2.2rem; position: relative; display: grid; gap: 1.4rem; }
.sc-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 24rem); background: var(--ground); border-radius: 999px; padding: 4px; }
.sc-switch button { position: relative; z-index: 1; min-height: 44px; border: 0; background: none; border-radius: 999px; font: 700 var(--t-small)/1 var(--f-body); color: var(--muted); cursor: pointer; }
.sc-switch button[aria-checked="true"] { color: #fff; }
.sc-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--night); }
.sc[data-mode="con"] .sc-pill { transform: translateX(100%); }
.sc-panes { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .sc-panes { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.sc-pane { display: grid; gap: .9rem; align-content: start; background: var(--ground); border-radius: var(--radius); padding: 1.3rem; }
.sc-pane h3 { font: 800 var(--t-title)/1.1 var(--f-display); }
.sc-pane .mini { max-width: none; background: var(--surface); }
.sc-pane .msg.in { background: var(--ground); }
.sc-quiet { color: var(--muted); font-size: var(--t-small); margin: .2rem 0 0; }
.sc-end { display: grid; gap: .2rem; border-radius: 16px; padding: .9rem 1rem; margin: 0; }
.sc-end b { font: 800 1.25rem/1.15 var(--f-display); }
.sc-end span { color: var(--muted); }
.sc-lost { background: var(--coral-sf); }
.sc-lost b { color: var(--error); }
.sc-won { background: var(--mint-sf); }
/* With the script, one ending at a time (both show without it). */
.sc.has-switch .sc-panes { grid-template-columns: 1fr; max-width: 34rem; }
.sc.has-switch[data-mode="sin"] [data-pane="con"], .sc.has-switch[data-mode="con"] [data-pane="sin"] { display: none; }
.motion .sc-pill { transition: transform 420ms var(--spring); }
.motion .sc.has-switch .sc-pane { animation: pane-in 420ms var(--ease-out); }
@keyframes pane-in { from { opacity: 0; transform: translateY(12px); } }
/* The rain: sixteen messages arriving. With FellowAI they settle in mint;
   without, they fall through in coral. Wide screens only, beside the chat. */
.rain { display: none; }
@media (min-width: 900px) {
  .sc.has-switch { grid-template-columns: minmax(0, 34rem) 1fr; column-gap: 3rem; }
  .sc.has-switch .sc-switch { grid-column: 1 / -1; }
  .sc.has-switch .rain { display: block; position: relative; grid-column: 2; grid-row: 2; height: 100%; min-height: 14rem; border-radius: var(--radius); background: var(--ground); overflow: hidden; }
  .sc.has-switch .sc-panes { grid-column: 1; grid-row: 2; }
}
.rain-cap { position: absolute; left: 1.4rem; top: 1.2rem; margin: 0; display: grid; gap: .25rem; }
.rain-cap b { font: 800 var(--t-title)/1.1 var(--f-display); }
.rain-cap span { color: var(--muted); }
.sc[data-mode="con"] .rc-sin, .sc[data-mode="sin"] .rc-con { display: none; }
.rain i { position: absolute; width: .8rem; height: .8rem; border-radius: 50%; background: var(--mint); left: calc(var(--x) * 1%); bottom: calc(var(--y) * 1%); }
.sc[data-mode="sin"] .rain i { background: var(--coral); }
/* The dots wait for the story to be seen (.play, added by main.js). */
.motion .sc:not(.play) .rain i { opacity: 0; }
.motion .sc.play .rain i { animation: drop 1.2s var(--ease-out) both; animation-delay: calc(var(--d) * 1ms); }
.motion .sc.play[data-mode="sin"] .rain i { animation-name: drop-through; }
@keyframes drop { from { transform: translateY(-16rem); opacity: 0; } }
@keyframes drop-through { from { transform: translateY(-16rem); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(6rem); opacity: 0; } }

/* One chat, three results */
.branch { margin-top: 2.4rem; display: grid; justify-items: center; }
.br-src { margin: 0; background: var(--night); color: var(--on-night); border-radius: 999px; padding: .75rem 1.2rem; font-size: var(--t-body); text-align: center; }
.br-src b { color: var(--mango); margin-right: .35rem; }
.br-lines { display: none; width: 100%; height: 5rem; overflow: visible; }
.br-lines path { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.br-cards { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; width: 100%; }
.br-cards li { background: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: .4rem; }
.br-cards h3 { font: 800 var(--t-title)/1.1 var(--f-display); }
.br-cards p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .br-lines { display: block; } .br-cards { margin-top: 0; grid-template-columns: repeat(3, 1fr); } }
.motion .br-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-out) 200ms; }
.motion .branch.play .br-lines path { stroke-dashoffset: 0; }
.motion .br-cards li { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.motion .branch.play .br-cards li { opacity: 1; transform: none; }
.motion .branch.play .br-cards li:nth-child(1) { transition-delay: 700ms; }
.motion .branch.play .br-cards li:nth-child(2) { transition-delay: 800ms; }
.motion .branch.play .br-cards li:nth-child(3) { transition-delay: 900ms; }

/* The night sentence, lit word by word as it scrolls (spans made by main.js) */
.words .w { transition: color 200ms ease; }
.words.split .w { color: rgba(234, 245, 238, .3); }
.words.split .w.lit { color: var(--on-night); }

/* Examples by trade: a row that scrolls sideways and snaps */
.trades { list-style: none; margin: 2rem 0 0; padding: 0 var(--gutter) 1rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.trade { flex: 0 0 min(80vw, 19rem); scroll-snap-align: start; background: var(--ground); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: 1rem; align-content: start; }
.trade h3 { font: 800 clamp(1.6rem, 5vw, 2rem)/1 var(--f-display); letter-spacing: -0.03em; }
.trade .mini { background: var(--surface); max-width: none; }
.trade .msg.in { background: var(--ground); }

/* "Lo que hace", held: on wide screens the left column stays put and its
   phone shows the item in the middle of the screen. */
.does-phone { display: none; }
@media (min-width: 900px) {
  .motion .does-held > .section-head { position: sticky; top: 6rem; }
  .motion .does-held .does-phone { display: grid; gap: .8rem; margin-top: 1.5rem; background: var(--night); border-radius: 28px; padding: .8rem; max-width: 20rem; }
  .motion .does-phone .mini { min-height: 9rem; justify-content: center; max-width: none; }
  .motion .does-steps { display: flex; gap: .35rem; padding: 0 .2rem .2rem; }
  .motion .does-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--night-2); transition: background-color 300ms ease; }
  .motion .does-steps i.on { background: var(--mango); }
  .motion .does-held .does-art { display: none; }
  .motion .does-held .acc-item { opacity: .4; transition: opacity 300ms ease; }
  .motion .does-held .acc-item.now { opacity: 1; }
}

 font: 800 clamp(2.4rem, 9vw, 3.4rem)/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* The floating pill menu (a shadow is allowed: it floats, DESIGN.md "Float") */
.pillnav { position: fixed; top: max(.7rem, env(safe-area-inset-top)); left: 50%; z-index: 30; transform: translateX(-50%); width: min(92vw, 22rem); }
.pn-bar { width: 100%; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 .6rem 0 .5rem; border: 0; border-radius: 999px; background: var(--night); color: var(--on-night); font: 700 var(--t-body)/1 var(--f-body); cursor: pointer; box-shadow: 0 18px 36px -20px rgba(15, 61, 46, .5); }
.pn-now { flex: 1; text-align: left; }
.pn-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--night-2); }
.pn-icon::before, .pn-icon::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px; background: var(--on-night); top: 11px; transition: transform 200ms var(--ease-out), top 200ms var(--ease-out); }
.pn-icon::after { top: 16px; }
.pn-bar[aria-expanded="true"] .pn-icon::before { top: 13px; transform: rotate(45deg); }
.pn-bar[aria-expanded="true"] .pn-icon::after { top: 13px; transform: rotate(-45deg); }
.pn-menu { margin-top: .5rem; background: var(--night); color: var(--on-night); border-radius: 22px; padding: .6rem; box-shadow: 0 18px 36px -20px rgba(15, 61, 46, .5); }
.pn-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.pn-menu a:not(.btn) { display: block; padding: .75rem .8rem; border-radius: 12px; color: var(--on-night); text-decoration: none; font-weight: 600; }
.pn-menu a:not(.btn):hover, .pn-menu a:not(.btn):focus-visible { background: var(--night-2); }
.pn-foot { display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: .5rem .3rem .2rem; }
.pn-foot .btn { background: var(--mango); color: var(--night); box-shadow: none; }
.motion .pillnav { animation: pn-in 360ms var(--spring) both; }
.motion .pn-menu:not([hidden]) { animation: pn-open 260ms var(--ease-out) both; transform-origin: top center; }
@keyframes pn-in { from { opacity: 0; transform: translate(-50%, -16px); } }
@keyframes pn-open { from { opacity: 0; transform: scale(.96) translateY(-6px); } }

/* Dotted wordmark closing the footer; the dots under the pointer turn mango */
.foot-mark { width: 100%; height: auto; display: block; margin-top: 1rem; }
.foot-mark text { font: 800 210px/1 var(--f-display); letter-spacing: -8px; }
.foot-mark .lit { opacity: 0; }
.motion .foot-mark .lit { opacity: 1; -webkit-mask-image: radial-gradient(circle 7rem at var(--mx, -50%) var(--my, -50%), #000 40%, transparent 100%); mask-image: radial-gradient(circle 7rem at var(--mx, -50%) var(--my, -50%), #000 40%, transparent 100%); }

/* "Para quién": arrows step one card at a time; swiping still works. The
   first and last cards always fit fully, so every trade can be reached. */
.trades-nav { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; }
.tr-arrow { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--night); color: var(--on-night); font: 700 1.3rem/1 var(--f-body); cursor: pointer; display: grid; place-items: center; transition: opacity 200ms ease, transform 160ms var(--ease-out); }
.tr-arrow:active { transform: scale(.94); }
.tr-arrow:disabled { opacity: .3; cursor: default; }
.trades-nav:not([hidden]) + .trades { margin-top: 1rem; scrollbar-width: none; }
.trades-nav:not([hidden]) + .trades::-webkit-scrollbar { display: none; }
/* The row starts on the same left edge as the heading above it. */
.trades { --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); padding-inline: var(--edge); scroll-padding-inline: var(--edge); }
