/* threefriends.app landing page.
   Tokens follow the app (docs/design/mockup/project/tf.css): iOS surfaces, one terracotta tint,
   warm paper for Memories. System fonts only; the site CSP allows nothing external. */

:root {
  --bg: #FFFFFF; --bg-2: #F5F5F7; --card: #FFFFFF;
  --label: #1D1D1F; --label-2: #6E6E73; --label-3: #A1A1A6; --hair: rgba(0,0,0,.1);
  --tint: #BF4420; --tint-fill: #BF4420; --on-tint: #FFFFFF;
  --paper: #F6F0E6; --paper-2: #EDE4D6; --paper-3: #E3D8C6; --ink: #2A2018; --ink-2: rgba(70,50,30,.66); --ink-3: rgba(70,50,30,.38);
  --bar: rgba(255,255,255,.72);
  --badge-bg: #000; --badge-fg: #fff; --badge-line: transparent;
  --shadow-device: 0 50px 90px -40px rgba(60,30,10,.38), 0 20px 40px -24px rgba(0,0,0,.28);

  /* app screen tokens (light) */
  --a-bg: #FFFFFF; --a-bg-2: #F2F2F7; --a-bg-3: #E5E5EA; --a-card: #FFFFFF;
  --a-label: #000; --a-label-2: rgba(60,60,67,.6); --a-label-3: rgba(60,60,67,.3); --a-label-4: rgba(60,60,67,.18);
  --a-sep: rgba(60,60,67,.29); --a-fill: rgba(120,120,128,.16); --a-fill-2: rgba(120,120,128,.08);
  --a-bar: rgba(249,249,249,.84); --a-bubble-in: #E9E9EB; --a-sheet: #FFFFFF;

  --ease: cubic-bezier(.22,.8,.24,1);      /* critically damped feel, no overshoot */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-2: #0E0E10; --card: #1C1C1E;
    --label: #F5F5F7; --label-2: #A1A1A6; --label-3: #6E6E73; --hair: rgba(255,255,255,.14);
    --tint: #FF8A6A; --tint-fill: #C94824;
    --paper: #1C1714; --paper-2: #28221D; --paper-3: #342D26; --ink: #F0E4D6; --ink-2: rgba(240,228,214,.66); --ink-3: rgba(240,228,214,.36);
    --bar: rgba(0,0,0,.68);
    --badge-bg: #000; --badge-fg: #fff; --badge-line: rgba(255,255,255,.4);
    --shadow-device: 0 50px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);

    --a-bg: #000; --a-bg-2: #000; --a-bg-3: #2C2C2E; --a-card: #1C1C1E;
    --a-label: #fff; --a-label-2: rgba(235,235,245,.6); --a-label-3: rgba(235,235,245,.3); --a-label-4: rgba(235,235,245,.16);
    --a-sep: rgba(84,84,88,.6); --a-fill: rgba(120,120,128,.32); --a-fill-2: rgba(120,120,128,.16);
    --a-bar: rgba(22,22,24,.84); --a-bubble-in: #26252A; --a-sheet: #1C1C1E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: 17px/1.5 var(--sans); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
button { font: inherit; color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(16px, min(5vw, 48px)); padding-right: max(16px, min(5vw, 48px)); }
.narrow { max-width: 820px; }

/* Type */
.display { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 10.4vw, 136px); line-height: .94; letter-spacing: -.035em; }
.display.sm { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -.03em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -.028em; text-wrap: balance; }
.h2.serif, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.018em; }
.sub { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--label-2); max-width: 36em; text-wrap: pretty; }

/* Translucent bar: content scrolls under it; the hairline appears only once something is under it */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); transition: box-shadow .3s var(--ease); }
.bar.scrolled { box-shadow: 0 .5px 0 var(--hair); }
.bar-in { max-width: 1160px; margin: 0 auto; height: 52px; padding: 0 max(16px, min(5vw, 48px)); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.012em; }
.brand-mark { width: 24px; height: 24px; color: var(--tint); }
.bar-get { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--label); color: var(--bg); font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .12s var(--ease), opacity .2s; }
.bar-get:active { transform: scale(.96); opacity: .85; }

/* App Store badge, drawn to the official proportions */
.store { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px; background: var(--badge-bg); color: var(--badge-fg); box-shadow: inset 0 0 0 1px var(--badge-line); text-decoration: none; transition: transform .12s var(--ease); -webkit-tap-highlight-color: transparent; }
.store:active { transform: scale(.97); }
.store-logo { width: 26px; height: 26px; margin-top: -3px; }
.store-txt { display: flex; flex-direction: column; font-family: var(--display); font-size: 23px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.store-txt small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; margin-bottom: 3px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 48px; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(72px, 10vw, 136px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.lede { font-size: clamp(19px, 1.75vw, 23px); line-height: 1.45; color: var(--label-2); max-width: 27em; text-wrap: pretty; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 6px; }
.fine { font-size: 14px; color: var(--label-2); }
.hero-device { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Device frame. Screens are drawn at 390x844 like the app and scaled. */
.device { --s: .78; --pad: 11px; position: relative; width: calc(390px * var(--s) + var(--pad) * 2); padding: var(--pad); border-radius: calc(55px * var(--s) + var(--pad)); background: #1A1A1C; box-shadow: inset 0 0 0 1.5px #3A3A3C, inset 0 0 0 4px #0B0B0C, var(--shadow-device); }
.screen { position: relative; width: calc(390px * var(--s)); height: calc(844px * var(--s)); border-radius: calc(47px * var(--s)); overflow: hidden; background: var(--a-bg); isolation: isolate; }
.screen > .app { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; }
.screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: transparent; }
.vidbtn { width: 36px; height: 36px; border-radius: 18px; border: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--label-2); box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vidbtn:hover { color: var(--label); }
.vidbtn .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.vidbtn .i-play { display: none; }
.vidbtn[aria-pressed="true"] .i-pause { display: none; }
.vidbtn[aria-pressed="true"] .i-play { display: block; }

/* Inside the app */
.app { font-family: var(--sans); color: var(--a-label); background: var(--a-bg); font-size: 17px; line-height: 22px; display: flex; flex-direction: column; overflow: hidden; }
.app.grouped { background: var(--a-bg-2); }
.app b { font-weight: 600; }
.app-status { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; font-size: 16px; font-weight: 600; position: relative; z-index: 6; }
.app-island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; }
.app-batt { width: 27px; height: 13px; border-radius: 4px; border: 1.5px solid currentColor; padding: 1.5px; background: currentColor content-box; opacity: .9; }
.app-nav { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.app-large { padding: 4px 16px 10px; font-family: var(--display); font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -.01em; }
.app-body { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.app-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 83px; padding: 7px 0 34px; display: flex; justify-content: space-around; background: var(--a-bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: .5px solid var(--a-sep); z-index: 4; }
.app-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 90px; color: var(--a-label-2); font-size: 10px; line-height: 12px; font-weight: 500; }
.app-tabs .on { color: var(--tint); }
.app-tabs .ic { width: 28px; height: 28px; }
.app-home { position: absolute; left: 128px; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: var(--a-label); opacity: .85; z-index: 12; }
.app-home.light { background: #fff; }

.ic { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.s { width: 20px; height: 20px; }
.ic.xs { width: 16px; height: 16px; stroke-width: 2; }
.ic.lg { width: 28px; height: 28px; }
.ic.chev { width: 14px; height: 14px; stroke-width: 2.4; }
.tint { color: var(--tint); }
.app .c2 { color: var(--a-label-2); } .app .c3 { color: var(--a-label-3); }
.t-head { font-size: 17px; line-height: 22px; font-weight: 600; }
.t-sub { font-size: 15px; line-height: 20px; }
.t-body { font-size: 17px; line-height: 22px; }
.t-foot { font-size: 13px; line-height: 18px; }
.t-cap { font-size: 12px; line-height: 16px; }
.t-cap2 { font-size: 11px; line-height: 13px; }
.w6 { font-weight: 600; }
.center { text-align: center; align-items: center; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.grow { flex: 1; min-width: 0; }
.g8 { gap: 8px; } .g10 { gap: 10px; }
.w44 { width: 28px; }

/* Initials stand in for faces */
.mono { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: #fff; font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.s24 { width: 24px; height: 24px; font-size: 11px; } .s28 { width: 28px; height: 28px; font-size: 12px; }
.s32 { width: 32px; height: 32px; font-size: 14px; } .s36 { width: 36px; height: 36px; font-size: 15px; }
.s48 { width: 48px; height: 48px; font-size: 20px; } .s56 { width: 56px; height: 56px; font-size: 23px; }
.m-terra { background: #C2603C; } .m-slate { background: #56677D; } .m-sage { background: #6B8566; } .m-ink { background: #48484A; }
.mono.ring { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }

.chip-status { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border-radius: 18px; background: var(--a-card); font-size: 15px; line-height: 20px; font-weight: 500; }
.card { background: var(--a-card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.open { background: transparent; border: 1.5px dashed var(--a-label-4); align-items: center; text-align: center; gap: 4px; padding: 14px 16px 18px; }
.plus-ring { width: 44px; height: 44px; border-radius: 22px; border: 1.5px dashed var(--a-label-3); display: flex; align-items: center; justify-content: center; color: var(--a-label-2); margin-bottom: 4px; }
.btn-sm { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 18px; font-size: 15px; font-weight: 600; margin-top: 8px; }
.btn-sm.primary { background: var(--tint-fill); color: #fff; }
.strip { position: relative; height: 120px; border-radius: 12px; overflow: hidden; background: var(--a-bg-3); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0)); }
.strip span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: 13px; line-height: 18px; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* Section: the rule */
.rules { background: var(--bg-2); padding: clamp(88px, 11vw, 144px) 0; }
.rules-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.rules-copy { display: flex; flex-direction: column; gap: 20px; }
.laws { list-style: none; padding: 0; margin-top: 20px; }
.laws li { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0; border-top: 1px solid var(--hair); }
.laws .num { font-family: var(--display); font-size: 20px; line-height: 26px; font-weight: 600; color: var(--tint); font-variant-numeric: tabular-nums; }
.laws h3 { font-family: var(--display); font-size: 21px; line-height: 26px; font-weight: 600; letter-spacing: -.014em; margin-bottom: 6px; }
.laws p { font-size: 17px; line-height: 1.5; color: var(--label-2); }

.demo { background: var(--card); border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -28px rgba(0,0,0,.18); }
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.demo-title { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.demo-count { font-size: 15px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.demo-slots { display: flex; flex-direction: column; gap: 10px; }
.dslot { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 14px 16px; border-radius: 20px; background: var(--bg-2); line-height: 1.3; }
.dslot b { font-size: 17px; font-weight: 600; }
.dslot .c2, .demo .c2 { color: var(--label-2); font-size: 15px; }
.dslot.swap { display: grid; padding: 0; background: transparent; }
.face { grid-area: 1 / 1; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; transition: opacity .45s var(--ease), transform .55s var(--ease), background-color .45s var(--ease); }
.face.friend { background: var(--bg-2); }
.face.locked { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hair); opacity: 0; transform: scale(.96); pointer-events: none; }
.face.locked .ic { width: 28px; height: 28px; margin: 0 10px; }
.demo[data-state="removed"] .face.friend { opacity: 0; transform: translateX(28px) scale(.98); }
.demo[data-state="removed"] .face.locked { opacity: 1; transform: none; }
.demo-ctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.pillbtn { height: 44px; padding: 0 20px; border-radius: 22px; border: 0; background: var(--label); color: var(--bg); font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .12s var(--ease), background-color .3s, color .3s; -webkit-tap-highlight-color: transparent; }
.pillbtn:active { transform: scale(.96); }
.demo[data-state="removed"] .pillbtn { background: var(--bg-2); color: var(--label); box-shadow: inset 0 0 0 1px var(--hair); }
.demo-note { font-size: 14px; color: var(--label-2); }
.when-removed { display: none; }
.demo[data-state="removed"] .when-full { display: none; }
.demo[data-state="removed"] .when-removed { display: inline; }

/* Section: memories, on paper */
.paper { background: var(--paper); color: var(--ink); padding: clamp(88px, 11vw, 144px) 0; }
.paper .sub { color: var(--ink-2); }
.mem-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.mem-head .h2 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; }
.memory { display: flex; flex-direction: column; gap: 24px; }
.memory-cover { border-radius: 28px; overflow: hidden; height: clamp(240px, 36vw, 440px); background: var(--paper-3); }
.memory-cover img { width: 100%; height: 100%; object-fit: cover; }
.memory-meta { display: flex; flex-direction: column; gap: 8px; }
.memory-meta h3 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.memory-meta p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; color: var(--ink-2); }
.memory-meta .sep { color: var(--ink-3); }
.memory-meta .who { gap: 10px; margin-top: 2px; }
.stack { display: inline-flex; }
.stack .mono { box-shadow: 0 0 0 2px var(--paper); }
.stack .mono + .mono { margin-left: -7px; }
.sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.side { background: var(--paper-2); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.side-by { display: flex; align-items: center; gap: 10px; }
.side-by b { font-weight: 600; }
.side-by .when { font-size: 13px; color: var(--ink-2); }
.note { font-size: 17px; line-height: 1.55; }
.side-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.side-photo img { width: 100%; height: 100%; object-fit: cover; }
.side.missing { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); align-items: flex-start; gap: 6px; }
.side.missing b { font-weight: 600; }
.side.missing p { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.side.missing .btn-sm { margin-top: 10px; }

/* Section: everyday */
.daily { padding: clamp(88px, 11vw, 144px) 0; }
.daily-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 112px); align-items: center; }
.daily-copy { display: flex; flex-direction: column; gap: 36px; max-width: 520px; }
.feats { display: flex; flex-direction: column; }
.feat { display: grid; grid-template-rows: auto 0fr; text-align: left; background: none; border: 0; border-left: 2px solid var(--hair); padding: 14px 0 14px 22px; cursor: pointer; transition: grid-template-rows .45s var(--ease), border-color .3s; -webkit-tap-highlight-color: transparent; }
.feat-name { font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--label-3); transition: color .25s; }
.feat-text { overflow: hidden; min-height: 0; font-size: 17px; line-height: 1.5; color: var(--label-2); opacity: 0; transition: opacity .3s var(--ease); }
.feat:hover .feat-name { color: var(--label-2); }
.feat.on { grid-template-rows: auto 1fr; border-left-color: var(--tint); cursor: default; }
.feat.on .feat-name { color: var(--label); }
.feat.on .feat-text { opacity: 1; padding-top: 8px; }
.feat:active .feat-name { opacity: .7; }

.daily-device .device .screen + .screen { position: absolute; left: var(--pad); top: var(--pad); }
.daily-device .screen { opacity: 0; transform: scale(.985); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.device[data-screen="moment"] .scr-moment, .device[data-screen="status"] .scr-status, .device[data-screen="chat"] .scr-chat { opacity: 1; transform: none; z-index: 1; }

.viewer { background: #000; color: #fff; }
.viewer-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer::before, .viewer::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.viewer::before { top: 0; height: 180px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); }
.viewer::after { bottom: 0; height: 260px; background: linear-gradient(to top, rgba(0,0,0,.64), rgba(0,0,0,0)); }
.viewer-top, .viewer-bottom { position: absolute; left: 0; right: 0; z-index: 2; padding: 0 16px; }
.viewer-top { top: 58px; display: flex; align-items: center; gap: 10px; }
.viewer-top .dim { color: rgba(255,255,255,.72); }
.viewer-bottom { bottom: 50px; display: flex; flex-direction: column; gap: 14px; }
.viewer-bottom .t-body { text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.glass-round { width: 48px; height: 48px; border-radius: 24px; border: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.glass-round.sm { width: 36px; height: 36px; }
.glass-pill { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 24px; background: rgba(255,255,255,.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 15px; font-weight: 600; }
.heart { cursor: pointer; transition: transform .12s var(--ease); -webkit-tap-highlight-color: transparent; }
.heart:active { transform: scale(.88); }
.heart .ic { transition: fill .2s, stroke .2s; }
.heart[aria-pressed="true"] .ic { fill: #FF6A4D; stroke: #FF6A4D; animation: pop .42s var(--ease); }
@keyframes pop { 0% { transform: scale(.7); } 55% { transform: scale(1.14); } 100% { transform: scale(1); } }

.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.42); z-index: 7; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--a-sheet); border-radius: 28px 28px 0 0; padding: 8px 16px 44px; display: flex; flex-direction: column; gap: 14px; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--a-label-3); margin: 0 auto 2px; }
.sheet-nav { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.field { height: 52px; border-radius: 12px; background: var(--a-fill-2); padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.emoji-pick { width: 34px; height: 34px; border-radius: 17px; background: var(--a-fill); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.caret { width: 2px; height: 22px; background: var(--tint); border-radius: 1px; margin-left: -8px; }
.emojis { display: flex; justify-content: space-between; font-size: 26px; padding: 2px 4px; }
.list { background: var(--a-fill-2); border-radius: 12px; overflow: hidden; }
.list .item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; position: relative; }
.list .item + .item::before { content: ""; position: absolute; left: 50px; right: 0; top: 0; height: .5px; background: var(--a-sep); }

.chat-nav { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: .5px solid var(--a-sep); }
.chat-nav .col { gap: 3px; }
.msgs { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; }
.day { align-self: center; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--a-label-2); margin: 6px 0 10px; }
.bubble { max-width: 268px; padding: 8px 14px; border-radius: 18px; font-size: 17px; line-height: 22px; }
.bubble.in { align-self: flex-start; background: var(--a-bubble-in); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--tint-fill); color: #fff; border-bottom-right-radius: 5px; }
.bubble.in + .bubble.in { border-top-left-radius: 5px; }
.bubble.out + .bubble.out { border-top-right-radius: 5px; }
.bubble.in + .bubble.out, .bubble.out + .bubble.in { margin-top: 8px; }
.bubble.photo { padding: 0; overflow: hidden; width: 200px; height: 220px; }
.bubble.photo img { width: 100%; height: 100%; object-fit: cover; }
.composer { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px 34px; display: flex; align-items: center; gap: 10px; background: var(--a-bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: .5px solid var(--a-sep); }
.composer .input { flex: 1; height: 36px; border-radius: 18px; border: .5px solid var(--a-sep); padding: 0 14px; display: flex; align-items: center; color: var(--a-label-3); background: var(--a-bg); }

/* Section: privacy */
.privacy { background: var(--bg-2); padding: clamp(88px, 11vw, 144px) 0; }
.privacy .wrap { display: flex; flex-direction: column; gap: 28px; }
.prose { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--label-2); max-width: 34em; text-wrap: pretty; }
.prose a { color: var(--tint); text-underline-offset: 3px; }
.nos { list-style: none; padding: 8px 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.16; letter-spacing: -.02em; }
.nos li { padding: 2px 0; }

/* Close */
.close { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: clamp(104px, 13vw, 168px); padding-bottom: clamp(104px, 12vw, 152px); }
.close-icon { width: 112px; height: 112px; border-radius: 25px; box-shadow: 0 0 0 .5px var(--hair), 0 18px 36px -16px rgba(60,30,10,.35); }
.close .store { margin-top: 4px; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); font-size: 13px; color: var(--label-2); }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--label); }

/* Scroll reveals: transform and opacity only */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .95s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Layout: tablet and phone */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { align-items: flex-start; }
  .rules-in, .daily-in, .mem-head { grid-template-columns: 1fr; }
  .daily-in { justify-items: start; }
  .daily-device { justify-self: center; }
  .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side.missing { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .device { --s: .72; }
  .demo { padding: 20px 16px; border-radius: 26px; }
  .sides { grid-template-columns: 1fr; }
  .memory-cover { border-radius: 22px; }
  .bar-get { height: 30px; font-size: 13px; padding: 0 12px; }
}
@media (max-width: 360px) {
  .device { --s: .66; }
  .store { padding: 0 18px 0 14px; }
}

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s linear; transition-delay: 0s; }
  .face, .daily-device .screen { transition: opacity .2s linear; transform: none !important; }
  .feat { transition: none; }
  .heart[aria-pressed="true"] .ic { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 .5px 0 var(--hair); }
  .glass-round, .glass-pill { background: rgba(40,40,40,.9); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --label-2: #3A3A3C; --label-3: #6E6E73; --hair: rgba(0,0,0,.4); --ink-2: rgba(50,35,20,.9); --ink-3: rgba(50,35,20,.6); }
  .bar { background: var(--bg); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --label-2: #D1D1D6; --label-3: #A1A1A6; --hair: rgba(255,255,255,.45); --ink-2: rgba(240,228,214,.92); --ink-3: rgba(240,228,214,.6); }
}
