/* Version B — "Lilac" homepage, Spark-inspired (Figma: Spark style — Option 2 · Lilac). */
:root {
  --ink: #111111;
  --grey: #6B6B6B;
  --light: #F2F2F2;
  --lilac: #B49BF7;
  --lilac-2: #D9CCFB;
  --pale: #CFCFCF;
  --inter: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.lilac { margin: 0; background: #FFFFFF; color: var(--ink); font: 400 17px/1.5 var(--inter); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.big { font-weight: 500; letter-spacing: -0.04em; line-height: .9; margin: 0; }
.muted { color: var(--grey); }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 100px; font: 500 16px/1.2 var(--inter); letter-spacing: -0.01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.pill:active { transform: scale(.97); }
.pill--dark { background: var(--ink); color: #fff; }
.pill--light { background: #fff; color: var(--ink); border-color: #DDDDDD; }
.pill--lilac { background: var(--lilac); color: var(--ink); }
.pill--sm { padding: 11px 18px; font-size: 15px; }
.round { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; text-decoration: none; transition: transform .25s ease; }
@media (hover: hover) { .round:hover, .cta:hover .round { transform: translateY(-2px) rotate(45deg); } }
.round--dark { background: var(--ink); }
.round--lilac { background: var(--lilac); }
.round svg { width: 22px; height: 22px; }
.cta { display: flex; gap: 6px; align-items: center; justify-content: center; }

/* Floating pill nav */
.pillnav { position: sticky; top: 16px; z-index: 50; display: flex; justify-content: center; padding-top: 24px; pointer-events: none; }
.pillnav__inner { pointer-events: auto; display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 18px; border-radius: 100px; background: rgba(242, 242, 242, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pillnav__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; text-decoration: none; }
.pillnav__brand svg { width: 22px; height: auto; }
.pillnav__links { display: flex; gap: 2px; }
.pillnav__links a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 100px; transition: background-color .2s ease; }
@media (hover: hover) { .pillnav__links a:hover { background: rgba(255, 255, 255, .8); } }
.pillnav__links a.is-active { background: #fff; }
.pillnav__menu { display: none; }

/* Hero */
.l-hero { text-align: center; padding: clamp(72px, 9vw, 110px) 20px clamp(48px, 6vw, 72px); display: grid; justify-items: center; gap: 30px; }
.l-hero h1 { font-size: clamp(56px, 10.4vw, 150px); }
.l-hero h1 span { display: block; }
.bubble { display: inline-block; vertical-align: middle; width: 1.66em; height: .93em; margin: 0 .12em; border-radius: 100px; background: var(--lilac-2); position: relative; overflow: hidden; top: -.06em; }
.bubble img { position: absolute; width: 92%; left: 4%; top: -20%; }
.l-hero p { margin: 0; font-size: clamp(17px, 1.6vw, 22px); color: #3A3A3A; }

/* Showcase */
.showcase { margin: 0 24px; position: relative; height: clamp(520px, 49vw, 700px); border-radius: 40px; background: var(--lilac); overflow: hidden; }
.phone { position: absolute; width: clamp(200px, 20vw, 290px); aspect-ratio: 250 / 544; padding: 6px; background: #29292B; box-shadow: 0 30px 60px rgba(51, 26, 102, .25);
  /* Corners scale with the phone: 40px at the full 290px width, smaller on smaller phones */
  border-radius: 13.8% / 6.34%; container-type: inline-size; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(13.8cqw - 4.3px); }
.phone--a { left: 26%; top: 13%; rotate: 4deg; }
.phone--b { left: 55%; top: 16%; rotate: -4deg; }
.tag { position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 24px rgba(51, 26, 102, .12); display: grid; gap: 2px; }
.tag strong { font-weight: 600; font-size: 15px; }
.tag span { font-size: 13px; color: var(--grey); }
.tag--1 { left: 10.5%; top: 27%; } .tag--2 { left: 13.5%; top: 60%; } .tag--3 { left: 77.5%; top: 33%; } .tag--4 { left: 76%; top: 66%; }
.tag--5 { left: 4.5%; top: 83%; } .tag--6 { left: 81%; top: 9%; }

/* Statement */
.statement { text-align: center; padding: clamp(96px, 10vw, 140px) 20px 40px; }
.statement .big { font-size: clamp(52px, 9vw, 130px); line-height: .92; }
.statement .big span { display: block; color: var(--pale); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 64px 56px 128px; max-width: 1440px; margin: 0 auto; }
.card { background: var(--light); border-radius: 28px; padding: 14px 14px 28px; display: grid; gap: 18px; align-content: start; }
.card__media { position: relative; height: 300px; border-radius: 20px; overflow: hidden; }
.card__media > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media .phone { width: 180px; left: 50%; top: 40px; transform: translateX(-50%); }
.card__media--next { background: var(--lilac-2); display: grid; place-items: center; }
.card__media--next svg { width: 90px; }
.card__body { padding: 0 12px; display: grid; gap: 8px; }
.card h3 { margin: 0; font-weight: 500; font-size: 26px; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--grey); font-size: 16px; }
.card .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
/* Apple's own "Download on the App Store" badge (official artwork, unchanged) */
.store { display: inline-flex; border-radius: 9px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.store img { height: 40px; width: auto; }
@media (hover: hover) { .store:hover { transform: translateY(-2px); } }
.store--lg img { height: 54px; }
.js .l-hero .store { opacity: 0; translate: 0 18px; }
.l-hero .store { transition: opacity .8s ease .42s, translate 1s cubic-bezier(.2, .8, .2, 1) .42s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.is-loaded .l-hero .store { opacity: 1; translate: none; }
/* Quiet note next to the button for apps that aren't out yet */
.soon { color: var(--grey); font-size: 15px; font-weight: 500; padding-left: 4px; }

/* FAQ */
.l-faq { display: grid; grid-template-columns: 460px 1fr; gap: 80px; padding: 0 80px 128px; max-width: 1440px; margin: 0 auto; }
.l-faq h2 { font-size: 72px; line-height: .95; }
.l-faq__list { display: grid; gap: 10px; }
.l-faq details { background: var(--light); border-radius: 20px; padding: 22px 24px; transition: background-color .2s ease; }
.l-faq details[open] { background: var(--lilac-2); }
.l-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary img { width: 22px; height: 22px; transition: transform .25s ease; }
.l-faq details[open] summary img { transform: rotate(45deg); }
.l-faq details p { margin: 12px 0 0; color: #3A3A3A; }

/* Say hello */
.hello-band { margin: 0 24px 24px; position: relative; overflow: hidden; border-radius: 36px; background: var(--ink); color: #fff; min-height: 520px; display: flex; align-items: center; padding: 80px; }
.hello-band__glow { position: absolute; width: 620px; height: 620px; right: -60px; top: -40px; border-radius: 50%; background: var(--lilac); filter: blur(120px); opacity: .9; }
.hello-band__remmi { position: absolute; width: 560px; right: 0; top: -10px; }
.hello-band__text { position: relative; display: grid; gap: 24px; justify-items: start; }
.hello-band h2 { font-size: clamp(56px, 7.6vw, 110px); }
.hello-band p { margin: 0; font-size: 20px; opacity: .7; }

.l-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 56px 36px; font-size: 14px; color: var(--grey); }
.l-foot__brand { display: inline-flex; align-items: center; gap: 8px; }
.l-foot__brand svg { width: 18px; }
.l-foot nav { display: flex; gap: 24px; }
.l-foot a { text-decoration: none; }
@media (hover: hover) { .l-foot a:hover { color: var(--ink); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Motion & hovers ---------- */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); --out: cubic-bezier(.2, .8, .2, 1); }
section[id] { scroll-margin-top: 100px; }

/* Buttons: hover fills with the preset's light pastel. A .cta (text + arrow) is one button. */
a.cta { text-decoration: none; cursor: pointer; }
.pill { transition: transform .3s var(--out), background-color .3s ease, border-color .3s ease, color .3s ease; }
.round { transition: transform .45s var(--spring), background-color .3s ease; }
.round svg use { transition: stroke .3s ease; }
@media (hover: hover) { .pill:hover, .cta:hover .pill { transform: translateY(-2px); background: var(--bubble, var(--lilac-2)); border-color: var(--bubble, var(--lilac-2)); color: var(--ink); } }
@media (hover: hover) { .round:hover, .cta:hover .round { background: var(--bubble, var(--lilac-2)); } }
@media (hover: hover) { .round:hover svg use, .cta:hover .round svg use { stroke: var(--ink); } }
/* On grey (menu, app cards) the pastel would melt into the background: use the preset's deeper shade */
@media (hover: hover) { .card .pill:hover { background: var(--strong, #6B4EE6); border-color: var(--strong, #6B4EE6); color: #fff; } }
/* Menu "Say hello": just a lighter black */
@media (hover: hover) { .pillnav .pill:hover { background: #3A3A3A; border-color: #3A3A3A; color: #fff; } }

/* Nav */
.pillnav__inner { transition: background-color .3s ease, box-shadow .3s ease, transform .9s var(--out), opacity .6s ease; }
.pillnav.is-scrolled .pillnav__inner { background: rgba(255, 255, 255, .78); box-shadow: 0 10px 34px rgba(17, 17, 17, .09), 0 0 0 1px rgba(17, 17, 17, .04); }
.pillnav__brand svg { transition: transform .5s var(--spring); }
@media (hover: hover) { .pillnav__brand:hover svg { transform: rotate(-12deg) scale(1.12); } }

/* Hero intro */
.js .pillnav__inner { transform: translateY(-140%); opacity: 0; }
.js .l-hero h1 > span, .js .l-hero p, .js .l-hero .cta { opacity: 0; transform: translateY(.35em); }
.js .l-hero p, .js .l-hero .cta { transform: translateY(18px); }
.js .bubble { opacity: 0; transform: scale(.3); }
.l-hero h1 > span, .l-hero p, .l-hero .cta { transition: opacity .8s ease, transform 1s var(--out); }
.l-hero h1 > span:nth-child(2) { transition-delay: .12s; }
.l-hero p { transition-delay: .3s; }
.l-hero .cta { transition-delay: .42s; }
.is-loaded .pillnav__inner { transform: none; opacity: 1; }
.is-loaded .l-hero h1 > span, .is-loaded .l-hero p, .is-loaded .l-hero .cta { opacity: 1; transform: none; }
.bubble { transition: opacity .4s ease .5s, transform .9s var(--spring) .5s, width .6s var(--spring), background-color .3s ease; }
.is-loaded .bubble { opacity: 1; transform: none; }

/* Remmi in the bubble: gentle bob, peeks up on hover */
.bubble img { animation: bob 4.5s ease-in-out infinite; transition: rotate .5s var(--spring), top .5s var(--spring); }
.bubble { background: var(--bubble, var(--lilac-2)); }
@media (hover: hover) { .bubble:hover { width: 1.95em; background: var(--accent, var(--lilac)); } }
@media (hover: hover) { .bubble:hover img { top: -28%; rotate: var(--tilt, -7deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4%; } }

/* Showcase: living gradient + floating phones and labels */
.showcase { isolation: isolate; }
.showcase > canvas.gradient { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.showcase > .phone, .showcase > .tag { z-index: 1; }
.showcase > .phone { transition: scale .5s var(--out); }
.phone--a { translate: calc(var(--mx, 0) * -26px) calc(var(--my, 0) * -16px); }
.phone--b { translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -10px); }
.tag { --depth: -48px; translate: calc(var(--mx, 0) * var(--depth)) calc(var(--my, 0) * var(--depth) * .62); }
.tag--2 { --depth: -66px; } .tag--3 { --depth: -40px; } .tag--4 { --depth: -72px; } .tag--5 { --depth: -30px; } .tag--6 { --depth: -58px; }
@media (hover: hover) { .showcase > .phone:hover { scale: 1.02; } }
.js .showcase > .phone, .js .showcase > .tag { opacity: 0; }
.showcase.is-in > .phone--a { animation: phoneIn 1.1s var(--out) .15s both, float 7s ease-in-out 1.3s infinite; }
.showcase.is-in > .phone--b { animation: phoneIn 1.1s var(--out) .3s both, float 8s ease-in-out 1.5s infinite reverse; }
.showcase.is-in > .tag { animation: tagIn .8s var(--spring) both, float 6s ease-in-out infinite; }
.showcase.is-in > .tag--1 { animation-delay: .6s, 1.4s; }
.showcase.is-in > .tag--2 { animation-delay: .72s, 2s; animation-duration: .8s, 7s; }
.showcase.is-in > .tag--3 { animation-delay: .84s, 1.7s; animation-duration: .8s, 6.5s; }
.showcase.is-in > .tag--4 { animation-delay: .96s, 2.3s; animation-duration: .8s, 7.5s; }
.showcase.is-in > .tag--5 { animation-delay: 1.08s, 1.9s; animation-duration: .8s, 6.8s; }
.showcase.is-in > .tag--6 { animation-delay: 1.2s, 2.6s; animation-duration: .8s, 7.2s; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes tagIn { from { opacity: 0; transform: translateY(16px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Statement: lines slide up, first line fills with ink on scroll */
.statement.reveal { opacity: 1; transform: none; }
.statement .big > span { display: block; transition: opacity .9s ease, transform 1.1s var(--out); }
.js .statement .big > span { opacity: 0; transform: translateY(.3em); }
.statement.is-in .big > span { opacity: 1; transform: none; }
.statement.is-in .big > span:nth-child(2) { transition-delay: .1s; }
.statement.is-in .big > span:nth-child(3) { transition-delay: .2s; }
.statement .big .fill {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--ink) 50%, var(--pale) 50%);
  background-size: 200% 100%; background-position: calc((1 - var(--fill, 1)) * 100%) 0;
}

/* Cards */
.card { --d: 0s; transition: opacity .7s ease var(--d), transform .7s ease var(--d), translate .5s var(--out), box-shadow .5s ease, background-color .3s ease; }
.card:nth-child(2) { --d: .1s; }
.card:nth-child(3) { --d: .2s; }
@media (hover: hover) { .card:hover { translate: 0 -6px; background: #EDEDED; } }
.card__media > img.bg { transition: scale 1s var(--out); }
@media (hover: hover) { .card:hover .card__media > img.bg { scale: 1.07; } }
.card__media .phone { transition: translate .6s var(--out); }
@media (hover: hover) { .card:hover .card__media .phone { translate: 0 -10px; } }
.card__media--next svg { animation: bob 4s ease-in-out infinite; transition: scale .5s var(--spring); }
@media (hover: hover) { .card:hover .card__media--next svg { scale: 1.12; animation: wiggle .7s ease-in-out, bob 4s ease-in-out infinite; } }
/* The whole card opens the app's page (the "Explore" link stretches over it); the App Store button stays its own link */
.card { position: relative; cursor: pointer; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: 28px; z-index: 1; }
.card .row .store { position: relative; z-index: 2; }
@media (hover: hover) { .card:hover .card__link { transform: translateY(-2px); background: var(--strong, #6B4EE6); border-color: var(--strong, #6B4EE6); color: #fff; } }
@media (hover: hover) { .card:has(.store:hover) .card__link.pill--dark { transform: none; background: var(--ink); border-color: transparent; } }
/* Black buttons never turn a colour: just a lighter black */
@media (hover: hover) { .card .pill--dark:hover, .card:hover .card__link.pill--dark { background: #3A3A3A; border-color: #3A3A3A; color: #fff; } }
@media (hover: hover) { .card:has(.store:hover) .card__link.pill--dark { background: var(--ink); border-color: var(--ink); } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -10deg; } 50% { rotate: 8deg; } 75% { rotate: -4deg; } }

/* FAQ */
@media (hover: hover) { .l-faq details:not([open]):hover { background: #EAEAEA; } }
.l-faq details.is-closing { background: var(--light); }
.l-faq details.is-closing summary img { transform: none; }
.l-faq summary img { transition: transform .4s var(--spring); }

/* Say hello */
.hello-band__glow { translate: var(--gx, 0) var(--gy, 0); }
.hello-band__remmi { animation: bob 5s ease-in-out infinite; transition: rotate .6s var(--spring); }
@media (hover: hover) { .hello-band:hover .hello-band__remmi { rotate: -4deg; } }

/* Footer */
.l-foot nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--out), color .2s ease; padding-bottom: 2px; }
@media (hover: hover) { .l-foot nav a:hover { background-size: 100% 1px; } }

@media (prefers-reduced-motion: reduce) {
  .js .pillnav__inner, .js .l-hero h1 > span, .js .l-hero p, .js .l-hero .cta, .js .bubble,
  .js .showcase > .phone, .js .showcase > .tag, .js .statement .big > span { opacity: 1; transform: none; }
  .bubble img, .card__media--next svg, .hello-band__remmi, .showcase.is-in > * { animation: none !important; }
}

/* ---------- App pages (Eldril, Entre Nous) and legal pages ---------- */
.app-hero { padding-top: clamp(56px, 7vw, 90px); gap: 24px; }
.app-hero__icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 14px 30px rgba(17, 17, 17, .14); }
.eyebrow { margin: 0; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 100px; background: var(--light); font-size: 14px !important; font-weight: 500; color: #3A3A3A !important; }
.app-hero h1 { font-size: clamp(52px, 9vw, 130px); }
.app-hero > p:not(.eyebrow) { max-width: 640px; }
.js .app-hero__icon { opacity: 0; transform: scale(.6) rotate(-8deg); }
.app-hero__icon { transition: opacity .5s ease, transform .9s var(--spring); }
.is-loaded .app-hero__icon { opacity: 1; transform: none; }

/* Showcase with one phone in the middle */
.showcase--app { height: clamp(560px, 50vw, 720px); }
.phone--c { left: 50%; top: 11%; rotate: -3deg; translate: calc(-50% + var(--mx, 0) * -22px) calc(var(--my, 0) * -14px); }
.showcase.is-in > .phone--c { animation: phoneIn 1.1s var(--out) .15s both, float 7s ease-in-out 1.3s infinite; }
.fcover { padding: 0; background: #ddd; width: clamp(92px, 8.6vw, 128px); aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px rgba(10, 40, 36, .28); }
.fcover img { width: 100%; height: 100%; object-fit: cover; }
.fcover--a { left: 29%; top: 16%; rotate: -8deg; --depth: -54px; }
.fcover--b { left: 63%; top: 52%; rotate: 7deg; --depth: -70px; }
.fcover--c { left: 30.5%; top: 60%; rotate: 5deg; --depth: -36px; }
.qcard { width: 250px; gap: 8px; padding: 16px 18px; border-radius: 18px; }
.qcard strong { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--deck, #B4472F); display: inline-flex; align-items: center; gap: 6px; }
.qcard strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.qcard span { font-size: 16px; line-height: 1.3; color: var(--ink); font-weight: 500; }

/* Features */
.features { max-width: 1440px; margin: 0 auto; padding: 48px 56px 120px; display: grid; gap: 48px; }
.features__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.features h2 { font-size: clamp(44px, 6vw, 88px); line-height: .95; }
.features__head p { max-width: 400px; color: var(--grey); margin: 0; font-size: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard { background: var(--light); border-radius: 28px; padding: 28px; display: grid; gap: 10px; align-content: start; min-height: 230px; }
.fcard__n { width: 40px; height: 40px; border-radius: 50%; background: var(--bubble, var(--lilac-2)); display: grid; place-items: center; font-weight: 600; font-size: 14px; margin-bottom: 28px; }
.fcard h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.fcard p { margin: 0; color: var(--grey); }
.fgrid .fcard:nth-child(3n+2) { --d: .08s; } .fgrid .fcard:nth-child(3n) { --d: .16s; }
.fcard.reveal { transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s); }

/* Entre Nous decks */
.decks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.deck { background: var(--light); border-radius: 24px; padding: 12px 12px 22px; display: grid; gap: 6px; align-content: start; }
.deck__swatch { height: 132px; border-radius: 16px; margin-bottom: 12px; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 62%, #000)); position: relative; overflow: hidden; }
.deck__swatch::after { content: ""; position: absolute; width: 62px; height: 86px; right: 18px; bottom: -22px; border-radius: 10px; background: rgba(255, 255, 255, .92); rotate: 8deg; box-shadow: 0 10px 20px rgba(0, 0, 0, .18); }
.deck__swatch::before { content: ""; position: absolute; width: 62px; height: 86px; right: 40px; bottom: -30px; border-radius: 10px; background: rgba(255, 255, 255, .55); rotate: -6deg; }
.deck h3 { margin: 0; padding: 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.deck p { margin: 0; padding: 0 8px; color: var(--grey); font-size: 15px; line-height: 1.4; }
.deck small { padding: 6px 8px 0; font-size: 13px; color: #3A3A3A; font-weight: 500; }

/* App pages follow their app's colours */
.app .l-faq details[open] { background: var(--bubble, var(--lilac-2)); }
.app .hello-band__glow { background: var(--accent, var(--lilac)); }
.app .pill--lilac, .app .round--lilac { background: var(--accent, var(--lilac)); }

/* Bottom links for an app */
.app-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 20px 96px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(64px, 8vw, 110px) 20px 120px; display: grid; gap: 24px; }
.legal h1 { font-size: clamp(48px, 7vw, 96px); }
.legal .note { background: var(--light); border-radius: 20px; padding: 22px 24px; color: #3A3A3A; margin: 0; }
.legal .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Legal text (Privacy Policy, Terms of Use) */
.legal__body { display: grid; gap: 0; color: #2A2A2A; font-size: 17px; line-height: 1.6; }
.legal__body h2 { margin: 36px 0 8px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.legal__body p { margin: 0 0 12px; }
.legal__body ul { margin: 0 0 12px; padding-left: 22px; }
.legal__body li { margin: 4px 0; }
.legal__body a { color: var(--ink); text-underline-offset: 3px; }
.legal__body mark { background: #FFE7A3; padding: 0 4px; border-radius: 4px; }
.legal__date { color: var(--grey); margin: -8px 0 0; }
.draft { background: #FFF4D6; border-radius: 16px; padding: 14px 18px; margin: 0; font-size: 15px; color: #5A4A1A; }

@media (max-width: 1000px) {
  .fgrid { grid-template-columns: 1fr 1fr; }
  .decks { grid-template-columns: 1fr 1fr; }
  .features { padding: 32px 20px 96px; }
  .fcover--a { left: 22%; } .fcover--c { left: 23%; } .fcover--b { left: 66%; }
}
@media (max-width: 640px) {
  .fgrid { grid-template-columns: 1fr; gap: 10px; }
  .fcard { min-height: 0; padding: 22px; border-radius: 22px; }
  .fcard__n { margin-bottom: 12px; }
  .decks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .deck { border-radius: 20px; padding: 8px 8px 16px; gap: 4px; }
  .deck__swatch { height: 84px; border-radius: 13px; margin-bottom: 8px; }
  .deck__swatch::before, .deck__swatch::after { width: 40px; height: 56px; border-radius: 7px; }
  .deck__swatch::after { right: 12px; bottom: -14px; } .deck__swatch::before { right: 28px; bottom: -20px; }
  .deck h3 { font-size: 17px; padding: 0 6px; }
  .deck p { font-size: 13px; padding: 0 6px; }
  .deck small { font-size: 12px; padding: 4px 6px 0; }
  .features h2 { font-size: 48px; }
  .showcase--app { height: 560px; }
  .phone--c { width: 200px; top: 15%; }
  .fcover { display: none; }
  .qcard { width: 200px; padding: 12px 14px; }
  .qcard span { font-size: 14px; }
  .app-hero__icon { width: 72px; height: 72px; border-radius: 18px; }
  .app .statement .big { font-size: 10.4vw; }
  .qcard.tag--3 { top: auto; bottom: 5%; right: 5%; }
}

}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Tablet / phone */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; padding: 48px 20px 96px; }
  .l-faq { grid-template-columns: 1fr; gap: 28px; padding: 0 20px 96px; }
  .l-faq h2 { font-size: 52px; }
  .tag--1, .tag--2, .tag--5 { left: 4%; } .tag--3, .tag--4, .tag--6 { left: auto; right: 4%; }
}
@media (max-width: 640px) {
  /* Phone menu: the pill grows into a small panel with the links */
  .pillnav { padding-top: 12px; top: 12px; height: 64px; align-items: flex-start; }
  .pillnav__inner { width: calc(100% - 24px); max-width: 440px; flex-wrap: wrap; gap: 8px; border-radius: 28px; padding: 6px 6px 6px 16px; }
  .pillnav__brand { margin-right: auto; }
  .pillnav__menu { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); cursor: pointer; }
  .pillnav__menu span { grid-area: 1 / 1; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .pillnav__menu span:first-child { transform: translateY(-3.5px); }
  .pillnav__menu span:last-child { transform: translateY(3.5px); }
  .pillnav.is-open .pillnav__menu span:first-child { transform: rotate(45deg); }
  .pillnav.is-open .pillnav__menu span:last-child { transform: rotate(-45deg); }
  .pillnav__links { display: none; order: 5; width: 100%; flex-direction: column; gap: 2px; padding: 4px 4px 6px 0; }
  .pillnav.is-open .pillnav__links { display: flex; animation: menuIn .35s cubic-bezier(.2, .8, .2, 1); }
  .pillnav.is-open .pillnav__inner { background: rgba(255, 255, 255, .92); box-shadow: 0 16px 40px rgba(17, 17, 17, .12), 0 0 0 1px rgba(17, 17, 17, .05); }
  .pillnav__links a { font-size: 22px; letter-spacing: -0.02em; padding: 12px 14px; border-radius: 18px; }
  .pillnav__links a.is-active { background: var(--light); }
  /* FAQ and bands: sized for a phone */
  .l-faq summary { font-size: 18px; }
  .l-faq details { padding: 18px 20px; border-radius: 18px; }
  .hello-band p { font-size: 17px; }
  /* Showcase labels: one at the top, one at the bottom, so they never overlap */
  .tag { padding: 10px 14px; }
  .tag strong { font-size: 14px; } .tag span { font-size: 12px; }
  .l-hero h1 { font-size: 12.4vw; }
  .l-hero h1 > span { white-space: nowrap; }
  .showcase { margin: 0 12px; height: 520px; border-radius: 28px; }
  .phone--a { left: 6%; top: 18%; width: 170px; }
  .phone--b { left: auto; right: 6%; top: 22%; width: 170px; }
  .tag--1 { top: 4%; left: 5%; } .tag--3 { top: auto; bottom: 5%; right: 5%; } .tag--2, .tag--4, .tag--5, .tag--6 { display: none; }
  .hello-band { margin: 0 12px 12px; padding: 40px 24px 320px; min-height: 0; border-radius: 28px; }
  .hello-band__remmi { width: 340px; right: 50%; transform: translateX(50%); top: auto; bottom: -20px; }
  .hello-band__glow { width: 420px; height: 420px; right: 50%; transform: translateX(50%); top: auto; bottom: -60px; }
  .l-foot { padding: 24px 20px 32px; }
}

/* ---------- "Write to us" and waitlist windows ---------- */
.modal[open] { display: grid; place-items: center; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 16px; border: 0; background: transparent; overflow: auto; }
.modal::backdrop { background: rgba(17, 17, 17, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html:has(.modal[open]) { overflow: hidden; }
.modal__card { position: relative; width: min(520px, 100%); background: #fff; color: var(--ink); border-radius: 32px; padding: 36px 32px 28px; box-shadow: 0 30px 80px rgba(17, 17, 17, .25); animation: modalIn .5s var(--spring); font-family: var(--inter); }
.modal__form, .modal__done { display: grid; gap: 16px; }
.modal h2 { font-size: 46px; line-height: .95; padding-right: 48px; }
.modal .lead { margin: 0 0 4px; color: var(--grey); font-size: 17px; line-height: 1.45; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 500; color: #3A3A3A; }
.field input, .field textarea { font: 400 17px/1.4 var(--inter); letter-spacing: -0.01em; padding: 15px 18px; border-radius: 16px; border: 1.5px solid transparent; background: var(--light); color: var(--ink); outline: none; transition: border-color .2s ease, background-color .2s ease; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #9A9A9A; }
.modal button.pill { justify-content: center; width: 100%; padding: 16px 24px; font-size: 17px; }
.modal button.pill:disabled { opacity: .6; cursor: progress; }
.modal__fine { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--grey); }
.modal__error { margin: 0; color: #B42318; font-size: 15px; font-weight: 500; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--light); display: grid; place-items: center; cursor: pointer; }
.modal__close span { grid-area: 1 / 1; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); rotate: 45deg; }
.modal__close span + span { rotate: -45deg; }
@media (hover: hover) { .modal__close:hover { background: #E6E6E6; } }
.modal__done { justify-items: center; text-align: center; padding-top: 4px; }
.modal__done img { width: 150px; margin-bottom: -8px; animation: bob 4.5s ease-in-out infinite; }
.modal__done h2 { padding-right: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .modal[open] { place-items: end center; padding: 8px; }
  .modal__card { border-radius: 28px; padding: 28px 20px 20px; animation: sheetIn .45s cubic-bezier(.2, .8, .2, 1); }
  .modal h2 { font-size: 36px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__card, .modal__done img { animation: none; } }
.modal__fine a { color: inherit; text-underline-offset: 2px; }
