/* Mia — homepage. Sections, phone mockups (rebuilt from the real app screens) and motion. */

/* ───────────── Ambient blooms ───────────── */
.bloom {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate;
}
.b-gold   { width: 620px; height: 620px; right: -120px; top: -160px; background: #F3D59C; }
.b-rosso  { width: 460px; height: 460px; right: 22%; bottom: -160px; background: #EDB3AE; animation-delay: -6s; }
.b-terra  { width: 380px; height: 380px; left: -140px; top: 30%; background: #F2C6A4; opacity: .4; animation-delay: -12s; }
.b-olive  { width: 520px; height: 520px; left: -160px; bottom: -200px; background: #D9D7B4; opacity: .5; }
.b-rosso2 { width: 520px; height: 520px; right: -180px; top: -120px; background: #F0C0BB; opacity: .45; }
.b-gold2  { width: 560px; height: 560px; left: -200px; top: 10%; background: #F4DDAF; opacity: .45; }
.b-gold3  { width: 640px; height: 640px; right: -220px; bottom: -260px; background: #F3D59C; opacity: .5; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

/* ───────────── Hero ───────────── */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: 1; margin: 0 0 24px; letter-spacing: -.015em; }
.hero h1 em, .sec-head h2 em { font-style: normal; color: var(--rosso); }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 33em; }
.lede em { font-style: normal; color: var(--ink); }
.hero .lede { margin-bottom: 32px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 660px; }
.hero-visual .phone { --w: 330px; z-index: 2; }
.polaroid {
  position: absolute; z-index: 1; margin: 0; width: 184px; padding: 10px 10px 0;
  background: #FFFDF8; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(42, 30, 24, .1), 0 22px 40px -18px rgba(42, 30, 24, .45);
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 26 / 30; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { font-family: var(--serif); text-align: center; font-size: 17px; padding: 8px 0 12px; color: var(--ink-2); }
.p1 { left: -15%; top: 4%; transform: rotate(-8deg); animation: bob 9s ease-in-out infinite; }
.p2 { right: -15%; bottom: 6%; transform: rotate(7deg); animation: bob 10s ease-in-out -4s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--card);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  animation: bob 7s ease-in-out infinite;
}
.float-chip svg { width: 22px; height: 22px; fill: #2196F3; }
.fc1 { left: 0; bottom: 9%; animation-delay: -2s; }
.fc2 { right: 0; top: 14%; animation-delay: -5s; }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ───────────── Phone frame ───────────── */
.phone {
  --w: 310px;
  width: var(--w); max-width: 100%; position: relative;
  padding: calc(var(--w) * .03);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(150deg, #3A322E, #120E0C 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .08),
    0 50px 90px -40px rgba(70, 35, 20, .55),
    0 22px 40px -22px rgba(42, 30, 24, .45);
}
.scr {
  position: relative; aspect-ratio: 390 / 844; overflow: hidden;
  border-radius: calc(var(--w) * .138);
  background: #fff; container-type: inline-size;
}
/* Everything inside a screen is laid out in iPhone points: calc(N * var(--u)) = N pt. */
.ui {
  --u: calc(100cqw / 390);
  position: absolute; inset: 0; color: #000; background: #fff;
  font-family: "Inter", var(--sans); font-size: calc(15 * var(--u)); line-height: 1.35;
  letter-spacing: 0; -webkit-font-smoothing: antialiased; user-select: none;
}
.ui h4, .ui h5, .ui h6 { font-family: inherit; margin: 0; letter-spacing: -.01em; }
.ui p { margin: 0; }

.sb {
  position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: calc(54 * var(--u));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(26 * var(--u)) 0 calc(48 * var(--u));
  font-size: calc(16.5 * var(--u)); font-weight: 600;
}
.sb.on-photo { color: #fff; }
.island { position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(124 * var(--u)); height: calc(36 * var(--u)); border-radius: 999px; background: #000; transform: translateX(-50%); }
.sb-i { width: calc(72 * var(--u)); height: calc(15 * var(--u)); fill: currentColor; color: inherit; }
.home-ind { position: absolute; z-index: 9; bottom: calc(8 * var(--u)); left: 50%; width: calc(134 * var(--u)); height: calc(5 * var(--u)); border-radius: 99px; background: #000; transform: translateX(-50%); }

/* Discover */
.disc-top {
  position: absolute; top: calc(68 * var(--u)); left: calc(22 * var(--u)); right: calc(20 * var(--u));
  height: calc(54 * var(--u)); display: flex; align-items: center; gap: calc(16 * var(--u));
}
.disc-logo { width: calc(54 * var(--u)); height: calc(31 * var(--u)); margin-right: auto; fill: #000; }
.ultra-pill {
  display: flex; align-items: center; gap: calc(9 * var(--u)); height: calc(40 * var(--u));
  padding: 0 calc(15 * var(--u)) 0 calc(7 * var(--u)); border-radius: 99px; background: #fff;
  box-shadow: inset 0 0 0 1px #E6E6E6; font-weight: 600; font-size: calc(16.5 * var(--u));
}
.ultra-pill img { width: calc(25 * var(--u)); height: calc(25 * var(--u)); border-radius: 50%; }
.ico { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: currentColor; flex: none; }
.ico.love { fill: var(--rosso-2); }
.ico.sm { width: calc(17 * var(--u)); height: calc(17 * var(--u)); fill: #555; }
.likes-row {
  position: absolute; top: calc(138 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u));
  height: calc(36 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: calc(18 * var(--u));
  display: flex; align-items: center; gap: calc(10 * var(--u)); background: var(--blush); font-size: calc(15.5 * var(--u));
}
.likes-row b { font-weight: 600; }
.likes-row .ico.sm { fill: var(--rosso); }
.likes-row span { margin-left: auto; color: var(--rosso); font-weight: 600; font-size: calc(13.5 * var(--u)); letter-spacing: .03em; }
.deck { position: absolute; top: calc(170 * var(--u)); left: calc(17 * var(--u)); right: calc(17 * var(--u)); bottom: calc(99 * var(--u)); }
.pcard {
  position: absolute; inset: 0; overflow: hidden; border-radius: calc(18 * var(--u)); background: #F7F7F7;
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, .14);
  opacity: 0; transform: scale(.96) translateY(calc(10 * var(--u)));
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.pcard:first-of-type { opacity: 1; transform: none; }
.js .pcard:first-of-type { opacity: 0; transform: scale(.96) translateY(calc(10 * var(--u))); }
.pcard.cur { opacity: 1 !important; transform: none !important; z-index: 2; }
.pcard.out-like { opacity: 0 !important; transform: translateY(calc(-34 * var(--u))) rotate(-3deg) scale(.97) !important; }
.pcard.out-pass { opacity: 0 !important; transform: translateX(calc(-60 * var(--u))) rotate(-7deg) !important; }
.pcard img { width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .74)); }
.pcard-info { position: absolute; z-index: 1; left: calc(22 * var(--u)); right: calc(20 * var(--u)); bottom: calc(96 * var(--u)); color: #fff; }
.pcard-info h4 { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(31 * var(--u)); font-weight: 700; line-height: 1.1; }
.pcard-info p { margin-top: calc(6 * var(--u)); font-size: calc(18 * var(--u)); opacity: .95; }
.pcard-info .loc { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(16.5 * var(--u)); opacity: .85; }
.pcard-info .loc svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); fill: currentColor; }
.vbadge { width: calc(25 * var(--u)); height: calc(25 * var(--u)); flex: none; fill: #2196F3; border-radius: 50%; background: radial-gradient(circle, #fff 0 34%, transparent 36%); }

.actions {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(18 * var(--u));
  display: flex; justify-content: center; gap: calc(16 * var(--u)); transition: opacity .4s;
}
.act {
  width: calc(58 * var(--u)); height: calc(58 * var(--u)); border-radius: 50%; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .18s var(--ease), background-color .18s;
}
.act svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); fill: #fff; }
.a-rew, .a-pass { background: rgba(255, 255, 255, .22); }
.a-like { background: rgba(233, 30, 99, .55); }
.a-dm { background: rgba(33, 150, 243, .5); }
.act.press { transform: scale(.84); }
.a-like.press { background: rgba(233, 30, 99, .9); }
.a-pass.press { background: rgba(255, 255, 255, .45); }
.burst { position: absolute; z-index: 5; left: 50%; top: 42%; width: calc(120 * var(--u)); height: calc(120 * var(--u)); fill: #fff; opacity: 0; transform: translate(-50%, -50%) scale(.3); pointer-events: none; filter: drop-shadow(0 4px 18px rgba(233, 30, 99, .6)); }
.burst.go { animation: heartPop 1s var(--ease); }
@keyframes heartPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 55% { opacity: 1; transform: translate(-50%, -50%) scale(.95); } 100% { opacity: 0; transform: translate(-50%, -62%) scale(1.15); } }

.done {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 calc(14 * var(--u)); text-align: center; opacity: 0; transition: opacity .6s .15s; pointer-events: none;
}
.is-done .done { opacity: 1; }
.is-done .actions { opacity: 0; }
.done-heart { width: calc(64 * var(--u)); height: calc(64 * var(--u)); fill: #000; margin-bottom: calc(20 * var(--u)); }
.done h5 { font-size: calc(23 * var(--u)); font-weight: 700; margin-bottom: calc(14 * var(--u)); }
.done-box { border: 1px solid #D6D6D6; border-radius: calc(16 * var(--u)); padding: calc(15 * var(--u)) calc(16 * var(--u)); font-size: calc(14.5 * var(--u)); line-height: 1.5; }
.done-count { margin-top: calc(18 * var(--u)); padding: calc(9 * var(--u)) calc(18 * var(--u)); border-radius: 99px; background: #F2F2F2; font-size: calc(15 * var(--u)); font-weight: 500; }
.done-count b { font-weight: 600; font-variant-numeric: tabular-nums; }
.done-btn { margin-top: calc(18 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(11 * var(--u)) calc(26 * var(--u)); border: 1px solid #757575; border-radius: 99px; font-size: calc(16.5 * var(--u)); font-weight: 500; }
.done-btn svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); fill: #000; }

.tabs {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: calc(99 * var(--u));
  display: flex; justify-content: space-around; padding-top: calc(12 * var(--u)); background: #fff;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .05);
}
.tabs span { width: 30%; display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u)); font-size: calc(14.5 * var(--u)); color: #757575; }
.tabs svg { width: calc(27 * var(--u)); height: calc(27 * var(--u)); fill: currentColor; }
.tabs .on { color: #000; }

/* Match dialog */
.match {
  position: absolute; z-index: 7; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .35s; pointer-events: none;
}
.match.show { opacity: 1; }
.match-card {
  width: calc(318 * var(--u)); padding: calc(38 * var(--u)) calc(20 * var(--u)) calc(22 * var(--u));
  border-radius: calc(22 * var(--u)); background: #fff; text-align: center;
  transform: scale(.88); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.match.show .match-card { transform: none; }
.match-rings { display: flex; justify-content: center; margin-bottom: calc(30 * var(--u)); }
.match-rings span {
  width: calc(92 * var(--u)); height: calc(92 * var(--u)); border-radius: 50%; overflow: hidden; display: block;
  box-shadow: 0 0 0 calc(9 * var(--u)) #FF4D7E, 0 0 calc(26 * var(--u)) calc(12 * var(--u)) rgba(255, 64, 129, .5);
}
.match-rings span + span { margin-left: calc(-8 * var(--u)); }
.match-rings img { width: 100%; height: 100%; object-fit: cover; }
.match h5 { font-size: calc(24 * var(--u)); font-weight: 700; }
.match p { margin-top: calc(10 * var(--u)); font-size: calc(15.5 * var(--u)); }
.m-btn { display: block; margin-top: calc(18 * var(--u)); height: calc(52 * var(--u)); line-height: calc(52 * var(--u)); border-radius: 99px; background: #009688; color: #fff; font-weight: 600; font-size: calc(17 * var(--u)); }
.m-btn.ghost { margin-top: calc(12 * var(--u)); background: transparent; color: #000; box-shadow: inset 0 0 0 1px #757575; }
.m-btn.press { transform: scale(.96); transition: transform .15s; }

/* Profile */
.prof-photo { position: absolute; top: 0; left: 0; right: 0; height: calc(330 * var(--u)); }
.prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .66)); }
.prof-name { position: absolute; z-index: 1; left: calc(20 * var(--u)); bottom: calc(18 * var(--u)); color: #fff; }
.prof-name h4 { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(29 * var(--u)); font-weight: 700; }
.prof-name p { margin-top: calc(4 * var(--u)); font-size: calc(15.5 * var(--u)); opacity: .9; }
.prof-body { position: absolute; top: calc(330 * var(--u)); left: 0; right: 0; bottom: 0; overflow: hidden; padding: calc(4 * var(--u)) calc(18 * var(--u)) 0; }
.prof-body h6 { margin: calc(16 * var(--u)) 0 calc(9 * var(--u)); font-size: calc(19 * var(--u)); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: calc(7 * var(--u)); }
.chips span { padding: calc(6 * var(--u)) calc(12 * var(--u)); border: 1px solid #BDBDBD; border-radius: calc(8 * var(--u)); font-size: calc(13.5 * var(--u)); }
.prompt { padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: #E8E8E8; font-size: calc(14 * var(--u)); }
.prompt + .prompt { margin-top: calc(8 * var(--u)); }
.prompt b { font-weight: 600; }
.prompt p { margin-top: calc(5 * var(--u)); }
.info { display: grid; gap: calc(7 * var(--u)); padding: calc(11 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: #E8E8E8; font-size: calc(13.5 * var(--u)); }
.info p { display: flex; align-items: center; gap: calc(9 * var(--u)); }
.info svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); flex: none; fill: currentColor; }
.roots-row { margin-top: calc(10 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: #F7F7F7; font-size: calc(17 * var(--u)); }
.roots-row svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: #000; flex: none; }
.roots-row b { font-weight: 600; }
.flash { animation: flash .7s var(--ease); }
@keyframes flash { 0% { background-color: #F7EAEB; transform: scale(1.03); } 100% { transform: none; } }

/* FamBlock */
.fam { display: flex; flex-direction: column; padding: calc(56 * var(--u)) calc(16 * var(--u)) calc(30 * var(--u)); }
.fam-top { display: grid; grid-template-columns: calc(30 * var(--u)) 1fr calc(30 * var(--u)); align-items: center; height: calc(54 * var(--u)); }
.fam-top svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: #000; }
.fam-top h5 { text-align: center; font-size: calc(22 * var(--u)); font-weight: 700; }
.fam-intro { margin-top: calc(12 * var(--u)); padding: calc(18 * var(--u)); border-radius: calc(18 * var(--u)); background: #F7F7F7; }
.fam-h { display: flex; align-items: center; gap: calc(10 * var(--u)); margin-bottom: calc(8 * var(--u)) !important; font-weight: 700; font-size: calc(17.5 * var(--u)); }
.fam-h svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.fam-intro p:last-child { font-size: calc(14 * var(--u)); line-height: 1.5; color: #555; }
.fam-input { display: flex; gap: calc(12 * var(--u)); margin-top: calc(22 * var(--u)); }
.fam-input span { flex: 1; height: calc(50 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); padding: 0 calc(14 * var(--u)); border: 1px solid #BDBDBD; border-radius: calc(16 * var(--u)); background: #F7F7F7; color: #9E9E9E; font-size: calc(15 * var(--u)); }
.fam-input svg { width: calc(21 * var(--u)); height: calc(21 * var(--u)); fill: #000; }
.fam-input b { width: calc(66 * var(--u)); display: grid; place-items: center; border-radius: calc(25 * var(--u)); background: #7B7B7B; color: #fff; font-weight: 600; font-size: calc(16 * var(--u)); }
.fam-input b { transition: background-color .2s, transform .15s; }
.fam-input b.ready { background: #000; }
.fam-input b.press { transform: scale(.9); }
.fam-input i { font-style: normal; }
.fam-typed { color: #000; }
.fam-typed:not(:empty)::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.15em; background: #000; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.fam-list li.gone { display: none; }
.fam-list li.out { animation: famOut .45s var(--ease) forwards; }
@keyframes famOut { to { opacity: 0; transform: translateX(calc(30 * var(--u))); } }
.fam-list { list-style: none; margin: calc(18 * var(--u)) 0 0; padding: 0; display: grid; gap: calc(10 * var(--u)); max-height: calc(270 * var(--u)); overflow: hidden; }
.fam-list li { height: calc(58 * var(--u)); display: flex; align-items: center; gap: calc(14 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: calc(16 * var(--u)); background: #E8E8E8; font-size: calc(17 * var(--u)); }
.fam-list li svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: #000; flex: none; }
.fam-list li .del { margin-left: auto; fill: #E53935; }
.fam-list li.new { animation: famIn .5s var(--ease); }
@keyframes famIn { from { opacity: 0; transform: translateY(calc(-10 * var(--u))) scale(.97); } }
.fam-foot { display: flex; justify-content: space-between; align-items: center; margin-top: calc(14 * var(--u)); font-size: calc(13.5 * var(--u)); color: #555; }
.fam-foot b { padding: calc(8 * var(--u)) calc(18 * var(--u)); border: 1px solid #E53935; border-radius: 99px; color: #E53935; font-weight: 500; font-size: calc(16 * var(--u)); }
.fam-toast { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); bottom: calc(28 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(12 * var(--u)); background: #E8F3E8; color: #2E7D32; font-size: calc(14 * var(--u)); opacity: 0; transform: translateY(calc(8 * var(--u))); transition: opacity .3s, transform .3s; }
.fam-toast.show { opacity: 1; transform: none; }

/* Chat */
.chat { display: flex; flex-direction: column; }
.chat-top { display: flex; align-items: center; gap: calc(12 * var(--u)); height: calc(64 * var(--u)); margin-top: calc(54 * var(--u)); padding: 0 calc(16 * var(--u)); }
.chat-top svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: #000; flex: none; }
.chat-top img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; object-fit: cover; margin-left: calc(10 * var(--u)); }
.chat-top h5 { flex: 1; font-size: calc(21 * var(--u)); font-weight: 700; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: calc(2 * var(--u)); padding: calc(8 * var(--u)) calc(16 * var(--u)); overflow: hidden; }
.sys { margin-bottom: auto !important; padding-top: calc(16 * var(--u)); text-align: center; font-size: calc(13 * var(--u)); color: #757575; }
.msg { display: flex; flex-direction: column; max-width: 80%; }
.msg p { padding: calc(12 * var(--u)) calc(16 * var(--u)); border-radius: calc(22 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.4; }
.msg time { margin: calc(4 * var(--u)) calc(6 * var(--u)) calc(8 * var(--u)); font-size: calc(11.5 * var(--u)); color: #9E9E9E; }
.msg.them { align-self: flex-start; }
.msg.them p { background: #E8E8E8; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me p { background: #000; color: #fff; }
.typing { align-self: flex-start; display: flex; gap: calc(5 * var(--u)); margin-bottom: calc(10 * var(--u)); padding: calc(13 * var(--u)) calc(15 * var(--u)); border-radius: calc(20 * var(--u)); background: #E8E8E8; }
.typing i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #9E9E9E; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(calc(-3 * var(--u))); } }
.js .chat [data-step] { display: none; }
.js .chat [data-step].on { display: flex; animation: msgIn .45s var(--ease); }
.js .chat .typing.on.gone { display: none; }
@keyframes msgIn { from { opacity: 0; transform: translateY(calc(12 * var(--u))) scale(.98); } }
.chat-input { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)) calc(34 * var(--u)); border-top: 1px solid #F0F0F0; }
.chat-input span { flex: 1; height: calc(46 * var(--u)); display: flex; align-items: center; padding: 0 calc(18 * var(--u)); border-radius: 99px; background: #F2F2F2; color: #9E9E9E; font-size: calc(15.5 * var(--u)); }
.chat-input b { width: calc(46 * var(--u)); height: calc(46 * var(--u)); display: grid; place-items: center; border-radius: 50%; background: #E0E0E0; }
.chat-input svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: #9E9E9E; }

/* ───────────── Sections ───────────── */
.sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; overflow: hidden; }
.sec > .wrap { position: relative; z-index: 1; }
.sec-tint { background: var(--paper-2); }
.sec-slim { padding: clamp(24px, 4vw, 48px) 0 clamp(60px, 8vw, 100px); }
.sec-head h2 { font-size: clamp(40px, 5.4vw, 74px); margin: 12px 0 22px; }
.sec-head.center { max-width: 780px; margin: 0 auto 60px; text-align: center; }
.sec-head.center .lede { margin: 0 auto; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-rev { grid-template-columns: .9fr 1.1fr; }
.col-phone { display: flex; flex-direction: column; align-items: center; }
.phone-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); text-align: center; }
.phone-note em { font-style: normal; font-weight: 600; color: var(--ink-2); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.eyebrow { display: block; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* Three a day */
.steps { list-style: none; margin: 36px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--rosso); }
.steps h3 { font-size: 25px; margin-bottom: 8px; line-height: 1.15; }
.steps p { color: var(--ink-2); }
.steps em { font-style: normal; font-weight: 600; color: var(--ink); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-card { padding: 30px 24px; transition: transform .35s var(--ease); }
.trust-card:hover { transform: translateY(-4px); }
.t-ico { width: 48px; height: 48px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 14px; background: var(--paper-2); }
.t-ico svg { width: 25px; height: 25px; fill: var(--ink); }
.t-ico.blue svg { fill: #2196F3; }
.trust-card h3 { font-size: 23px; line-height: 1.15; margin-bottom: 10px; }
.trust-card p { font-size: 15px; color: var(--ink-2); }
.trust-card a { color: var(--rosso); }

/* Prompts: five real prompts as cards */
.prompt-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.prompt-list li {
  position: relative; padding: 18px 22px 18px 54px; border-radius: 18px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -22px rgba(42, 30, 24, .45);
  font-family: var(--serif); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.25; color: var(--ink);
}
.prompt-list li::before {
  content: "“"; position: absolute; left: 18px; top: 10px; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--rosso);
}
.prompt-list li:nth-child(even) { margin-left: clamp(0px, 3vw, 36px); }
.prompt-more { margin-top: 16px; font-size: 15px; color: var(--ink-3); }

/* Tre al giorno: header, then the three cards, then the steps in a row */
#how .three { margin: 0 auto; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.steps-row li { display: block; padding: 26px 24px; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.steps-row li:last-child { border-bottom: 0; }
.steps-row .step-n { display: block; margin-bottom: 14px; }

/* Waitlist bands between sections */
.cta-band { position: relative; padding: clamp(8px, 2vw, 24px) 0 clamp(64px, 8vw, 104px); }
.sec-tint + .cta-band { background: var(--paper-2); }
.cta-card {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px 48px; align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 30px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 0% 0%, #F7DCCB 0%, transparent 55%), radial-gradient(120% 140% at 100% 100%, #F4E3BE 0%, transparent 55%), var(--card);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.cta-copy h2 { margin: 10px 0 12px; font-size: clamp(30px, 3.6vw, 46px); }
.cta-copy h2 em { font-style: normal; color: var(--rosso); }
.cta-copy p:last-child { color: var(--ink-2); font-size: 17px; }
.cta-card .wl { max-width: none; }

/* Three a day: today's three cards */
.col-three { display: flex; justify-content: center; }
.three { position: relative; width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; }
.three-tag, .three-next {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); font-size: 14px; font-weight: 600;
}
.three-tag svg { width: 18px; height: 18px; fill: var(--rosso-2); }
.three-next { font-weight: 500; color: var(--ink-2); }
.three-next b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.three-cards { position: relative; width: 100%; height: clamp(380px, 34vw, 420px); margin: 26px 0 22px; }
.tcard {
  --w: clamp(160px, 15vw, 200px);
  position: absolute; top: 0; left: 50%; width: var(--w); aspect-ratio: 3 / 4.1; margin-left: calc(var(--w) / -2);
  border-radius: 20px; overflow: hidden; background: #ddd;
  box-shadow: 0 30px 50px -24px rgba(42, 30, 24, .55), 0 0 0 4px #FFFDF8;
  transition: transform .9s var(--ease), box-shadow .3s;
}
.tcard img { width: 100%; height: 100%; object-fit: cover; }
.tcard::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.tcard-info { position: absolute; z-index: 1; left: 14px; right: 12px; bottom: 14px; color: #fff; font-family: "Inter", var(--sans); }
.tcard-info h4 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.tcard-info .vbadge { width: 17px; height: 17px; }
.tcard-info p { margin-top: 3px; font-size: 13.5px; opacity: .92; }
.tcard-info .loc { display: flex; align-items: center; gap: 4px; opacity: .82; }
.tcard-info .loc svg { width: 13px; height: 13px; fill: currentColor; }
/* Stacked until revealed, then fanned out like a hand of cards. */
.tcard.t1 { z-index: 1; transform: translateX(-4%) rotate(-3deg); }
.tcard.t2 { z-index: 3; transform: translateY(6px); }
.tcard.t3 { z-index: 2; transform: translateX(4%) rotate(3deg); }
.three.in .tcard.t1 { transform: translateX(-90%) translateY(96px) rotate(-7deg); }
.three.in .tcard.t2 { transform: translateY(0); }
.three.in .tcard.t3 { transform: translateX(90%) translateY(96px) rotate(7deg); }
.three.in .tcard:hover { box-shadow: 0 40px 60px -24px rgba(42, 30, 24, .6), 0 0 0 4px #FFFDF8; }
.three.in .tcard.t1:hover { transform: translateX(-90%) translateY(84px) rotate(-5deg); }
.three.in .tcard.t3:hover { transform: translateX(90%) translateY(84px) rotate(5deg); }
.three.in .tcard.t2:hover { transform: translateY(-10px); }

/* CTAs inside sections */
.sec-cta { margin-top: 30px; }
.night-cta { margin-top: 48px; }

/* ───────────── Evening ───────────── */
.night { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 190px) 0 clamp(90px, 11vw, 140px); background: var(--night); color: #F6EDE1; }
.night-bg { position: absolute; inset: 0; }
.night-bg img { width: 100%; height: 118%; object-fit: cover; opacity: .42; will-change: transform; }
.night-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(29, 20, 17, .35), rgba(29, 20, 17, .82) 62%, var(--night)); }
.night-in { position: relative; z-index: 1; }
.kicker.gold { color: #E3B96E; }
.night h2 { max-width: 12.5em; margin: 14px 0 70px; font-size: clamp(44px, 6.4vw, 94px); color: #FBF3E6; }
.night h2 em { font-style: normal; color: #E8BE76; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 38px; border-top: 1px solid rgba(255, 255, 255, .14); }
.values h3 { margin-bottom: 12px; font-size: 27px; color: #FBF3E6; }
.values p { font-size: 16px; color: rgba(246, 237, 225, .74); }
.film { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr; gap: 18px; margin-top: 80px; align-items: start; }
.film figure { margin: 0; }
.film figure:nth-child(even) { translate: 0 44px; }
.film img { width: 100%; height: clamp(220px, 23vw, 320px); object-fit: cover; border-radius: 14px; filter: saturate(.92) contrast(1.02); }
.film figcaption { margin-top: 12px; font-family: var(--serif); font-size: 18px; color: rgba(246, 237, 225, .78); }

/* Say ciao */
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--ink-2); }
.ticks svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--olive); fill: var(--paper); }
.ticks b { color: var(--ink); font-weight: 600; }

/* Ultra */
.ultra {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px 56px; align-items: center;
  padding: clamp(28px, 4.4vw, 52px); border-radius: 30px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(163, 48, 58, .18), var(--shadow);
}
.ultra-head { display: flex; align-items: center; gap: 22px; }
.ultra-head img { flex: none; border-radius: 50%; box-shadow: 0 10px 24px -8px rgba(163, 48, 58, .45); }
/* "Mia" script + spaced ULTRA, as in the app (decision 007) */
.ultra-name { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--ink); }
.ultra-name svg { width: 84px; height: 48px; fill: currentColor; }
.ultra-name span { margin-top: 10px; font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: .34em; color: var(--rosso); }
.ultra-line { margin-top: 6px; font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; }
.ultra-line em { font-style: normal; color: var(--rosso); }
.ultra-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; font-size: 15.5px; }
.ultra-perks li { display: flex; align-items: center; gap: 10px; }
.ultra-perks svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--blush); fill: var(--rosso); }
.ultra-fine { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }

/* Join */
.join .sec-head.center { margin-bottom: 36px; }
.join .wl { margin: 0 auto; max-width: 600px; }
.join .wl-msg, .join .wl-note { text-align: center; }
.b-rosso3 { width: 520px; height: 520px; left: -200px; top: -160px; background: #F0C0BB; opacity: .4; }

/* Diaspora: arrivals board */
.diaspora { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.board {
  position: relative; padding: clamp(20px, 3vw, 30px); border-radius: 20px;
  background: linear-gradient(180deg, #241A16, #19120F); color: #F3E6CF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 40px 80px -36px rgba(42, 30, 24, .7);
}
.board::before { content: ""; position: absolute; inset: 8px; border-radius: 14px; border: 1px solid rgba(232, 190, 118, .14); pointer-events: none; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(232, 190, 118, .18); }
.board-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); color: #E8BE76; }
.board-title span { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 230, 207, .5); }
.board-clock { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 230, 207, .55); }
.board-clock b { margin-left: 6px; font: 600 18px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: #F3E6CF; }
.board-cols { display: flex; justify-content: space-between; margin: 16px 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 230, 207, .45); }
.board-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; }
.flap { display: inline-flex; gap: 2px; font: 600 clamp(12px, 1.35vw, 16px)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.flap b {
  position: relative; width: 1.05em; height: 1.6em; display: grid; place-items: center;
  border-radius: 3px; background: linear-gradient(180deg, #33261F 50%, #2C211B 50%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35); color: #F7EBD6; font-weight: 600;
}
.flap b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .45); }
.flap b.sp { background: transparent; box-shadow: none; }
.flap:empty::before { content: attr(data-text); letter-spacing: .2em; color: #F7EBD6; }
.flap b.sp::after { display: none; }
.flap b.spin { color: rgba(247, 235, 214, .55); }
.flap.st b { color: #E8BE76; }
.board-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(232, 190, 118, .18); font-size: 14px; color: rgba(243, 230, 207, .7); }
.board-foot em { font-style: normal; color: #E8BE76; }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post { min-height: 270px; padding: 28px 24px; display: flex; flex-direction: column; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.post:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-2), 0 26px 50px -22px rgba(42, 30, 24, .35); }
.post-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rosso); }
.post h3 { margin: 12px 0 auto; font-size: 23px; line-height: 1.2; }
.post-more { margin-top: 24px; display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
.post-more svg { width: 18px; height: 18px; fill: currentColor; transition: transform .25s; }
.post:hover .post-more svg { transform: translateX(3px); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  padding: 0 26px; border-radius: 18px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background-color .3s;
}
.faq details[open] { box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -24px rgba(42, 30, 24, .35); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0;
  cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 23px); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper-2); font-family: var(--sans); font-weight: 400; font-size: 22px; line-height: 1; color: var(--rosso);
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: #F6E2DF; }
.faq p { padding: 0 0 24px; max-width: 42em; color: var(--ink-2); }
.faq a { color: var(--rosso); }
.faq em { font-style: normal; color: var(--ink); font-weight: 500; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1080px) {
  .trust, .posts { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .polaroid { width: 170px; }
}
@media (max-width: 920px) {
  .hero-in, .split, .split-rev, .ultra, .cta-card { grid-template-columns: 1fr; }
  .split-rev .col-phone { order: 2; }
  .hero-visual { min-height: 0; padding: 30px 0 10px; }
  .hero-visual .phone { --w: 300px; }
  .p1 { left: 0; top: 12%; }
  .p2 { right: 0; bottom: 4%; }
  .values { grid-template-columns: 1fr; gap: 28px; }
  .film { grid-template-columns: 1fr 1fr; }
  .film .wide { grid-column: 1 / -1; order: -1; }
  .film .wide, .film figure:nth-child(even) { translate: none; }
  .film figure:nth-child(even) { translate: 0 28px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero-visual .phone { --w: 270px; }
  .polaroid { width: 120px; padding: 6px 6px 0; }
  .polaroid figcaption { font-size: 13px; padding: 5px 0 8px; }
  .p1 { left: -6px; top: 6%; }
  .p2 { right: -6px; bottom: 8%; }
  .fc1 { display: none; }
  .board-title span { display: none; }
  .fc2 { right: -4px; top: 6%; font-size: 12.5px; padding: 8px 12px 8px 9px; }
  .col-phone .phone { --w: 270px; }
  .three-cards { height: 292px; margin-bottom: 8px; }
  .tcard { --w: 136px; }
  .three.in .tcard.t1, .three.in .tcard.t1:hover { transform: translateX(-84%) translateY(86px) rotate(-6deg) scale(.94); }
  .three.in .tcard.t3, .three.in .tcard.t3:hover { transform: translateX(84%) translateY(86px) rotate(6deg) scale(.94); }
  .tcard-info { left: 10px; bottom: 10px; }
  .tcard-info h4 { font-size: 16px; }
  .tcard-info p { font-size: 12px; }
  .trust, .posts, .ultra-perks { grid-template-columns: 1fr; }
  .post { min-height: 0; }
  .flap { font-size: 11.5px; gap: 1.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .bloom, .float, .polaroid, .float-chip { animation: none !important; }
}
