/* hiya: page CSS. The client's own face, its dark mode, the logo, and what sits inside the visuals
   (the phone frames, the hero's note card, the chips on the profile photographs). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* the client's tokens: hairline, the cream behind the app's screens (the lit ground, flat) */
:root, .ground-base, .ground-surface {
  --line: #f1ddd1;
  --ground-bg: #fff3ec; --ground-surface: #f6eee8; --ground-ink: #17120f; --ground-muted: #6f5e55; --ground-accent: #ff7a3d;
  --bezel: #17120f; --chip: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
  :root, .ground-base, .ground-surface {
    --line: #2a2725;
    --ground-bg: #24201d; --ground-surface: #1c1a18; --ground-ink: #f6eee8; --ground-muted: #a3958b; --ground-accent: #ff7a3d;
    --bezel: #3a3532; --chip: #1c1a18;
  }
}

/* headlines 700 with the app's tight tracking */
h1, h2, .t-h1, .t-h2 { font-weight: 700; }

/* the logo: the client's wordmark, letters in the ink (the cream variant in dark mode), the heart in the accent */
.hiya-logo { color: var(--ink); }
.hiya-logo svg { display: block; height: 44px; width: auto; }
@media (prefers-color-scheme: dark) { .hiya-logo { color: #fff3ec; } }
@media (max-width: 639px) { .hiya-logo svg { height: 38px; } }
.hiya-logo--foot svg { height: 56px; }

/* a phone: the app's own screenshot in an 8px bezel */
.device { background: var(--bezel); padding: 2.2%; border-radius: 14% / 6.5%; }
.device > img { display: block; width: 100%; height: auto; border-radius: 12% / 5.6%; }

/* the hero's phone and note card on the flat cream */
.hero__art { background: var(--ground-bg); }
.hero__art > .ly-piece--main.device { left: auto; right: var(--s-8); top: var(--s-8); width: min(340px, 58%); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
@media (max-width: 1023px) {
  .hero__art > .ly-piece--main.device { right: auto; left: 50%; transform: translateX(-50%); top: var(--s-6); width: min(300px, 62%); }
}
@media (max-width: 639px) {
  .hero__art > .ly-piece--main.device { top: var(--s-4); width: min(240px, 66%); }
}
.hiya-note { background: var(--chip); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); display: grid; gap: var(--s-3); }
.hiya-note__title { margin: 0; font: 500 var(--t-small)/1.3 var(--font-text); }
.hiya-note__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); }
.hiya-note__row > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.hiya-note__row b { display: block; font: 500 var(--t-small)/1.3 var(--font-text); }
.hiya-note__row small { display: block; font-size: var(--t-label); color: var(--muted); }
.hiya-note__pill { font-style: normal; font: 500 var(--t-label)/1 var(--font-text); padding: 8px 12px; border-radius: 999px; background: var(--p-accent); color: var(--p-accent-ink); white-space: nowrap; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }

/* the app's screens in the pinned steps and the safety frame: the phone cut by the frame's foot */
.hiya-shot.mo-pc__visual--lit, .hiya-frame { position: relative; display: block; padding: 0; overflow: hidden; container-type: size;
  background: var(--ground-bg); border-radius: var(--r-lg); aspect-ratio: 4 / 3; }
.hiya-shot > .device, .hiya-frame > .device { position: absolute; left: 50%; top: 9cqh; width: min(42cqw, 60cqh); transform: translateX(-50%); }
[data-moment="pinned-chapters"].is-live .hiya-shot.mo-pc__visual { border-radius: var(--r-lg); }
@media (max-width: 639px) { [data-moment="pinned-chapters"] .hiya-shot.mo-pc__visual.mo-pc__visual--lit { aspect-ratio: 1 / 1; } .hiya-shot > .device { width: 58cqw; top: 8cqh; } }
.hiya-frame { aspect-ratio: auto; height: 100%; min-height: 560px; }
.hiya-frame > .device { width: min(52cqw, 340px); top: var(--s-8); }
@media (max-width: 1023px) { .hiya-frame { height: 520px; min-height: 0; } .hiya-frame > .device { width: min(60cqw, 300px); top: var(--s-6); } }
@media (max-width: 639px) { .hiya-frame { height: 360px; } .hiya-frame > .device { width: min(62cqw, 220px); top: var(--s-5); } }

/* profiles: the photograph fills the panel; one small piece of the app's UI sits on it, 24px in */
#profiles .panel { --p-h: 300px; position: relative; }
#profiles .panel > .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { #profiles .panel { --p-h: 180px; } }
.pchip { position: absolute; z-index: 2; left: var(--s-5); bottom: var(--s-5); max-width: calc(100% - 48px);
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--chip); color: var(--ink); font: 500 var(--t-small)/1.3 var(--font-text); }
.pchip--col { display: grid; gap: 2px; padding-right: var(--s-8); }
.pchip--col b { font-weight: 500; font-size: var(--t-body); }
.pchip--col small { font-size: var(--t-label); color: var(--muted); }
.pchip__play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--p-accent); color: var(--p-accent-ink); flex: none; }
.pchip__wave { display: flex; align-items: center; gap: 3px; height: 24px; }
.pchip__wave i { width: 3px; border-radius: 2px; background: color-mix(in oklab, var(--ink) 45%, transparent); height: 40%; }
.pchip__wave i:nth-child(3n) { height: 80%; } .pchip__wave i:nth-child(4n+1) { height: 60%; } .pchip__wave i:nth-child(5n) { height: 100%; }
.pchip__heart { position: absolute; right: var(--s-3); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--p-accent); color: var(--p-accent-ink); }
.pchip__loop { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ground-bg); color: var(--ink); flex: none; }

/* the statement: the tagline set large, the three facts of the daily game under it */
.idea__head { margin-bottom: var(--s-9); }
.idea__head .mo-lt__type { font-weight: 700; letter-spacing: -0.045em; max-width: 12ch; }
.idea__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: 0; }
.idea__facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.idea__facts dd { margin: 0; font: 700 var(--t-stat)/1.1 var(--font-display); letter-spacing: -0.03em; }
.idea__facts dt { color: var(--muted); }
@media (max-width: 639px) { .idea__facts { grid-template-columns: minmax(0, 1fr); } .idea__head { margin-bottom: var(--s-8); } }

/* text columns beside a visual */
.safety__text, .download__text { display: grid; gap: var(--s-6); align-content: start; }
.safety__text > *, .download__text > * { margin: 0; }
.plans__head { display: grid; gap: var(--s-5); align-content: start; }
.plans__head > * { margin: 0; }
.card--plan .rows { margin-top: var(--s-2); }

/* download: the head row, four photographs across, three facts */
.download__head { margin-bottom: var(--s-8); align-items: start; }
.download__head > * { margin: 0; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.people > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.download__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: var(--s-8) 0 0; }
.download__facts > div { display: grid; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.download__facts dt { font-weight: 500; }
.download__facts dd { margin: 0; color: var(--muted); }
@media (max-width: 639px) {
  .download__head { margin-bottom: var(--s-6); row-gap: var(--s-4); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people > img { aspect-ratio: 1 / 1; }
  .download__facts { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
}

/* the app's sheets, drawn in HTML from the app's own strings: the like sheet, the report sheet, Share my date */
.sheet { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); background: var(--chip); color: var(--ink); font: 400 var(--t-small)/1.35 var(--font-text); }
.sheet > * { margin: 0; }
.sheet__title { font: 700 var(--t-body)/1.2 var(--font-display); letter-spacing: -0.02em; }
.sheet__sub { color: var(--muted); }
.sheet__field { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); }
.sheet__field--empty { color: var(--muted); }
.sheet__btn { display: block; text-align: center; padding: var(--s-3) var(--s-4); border-radius: 999px; background: var(--p-accent); color: var(--p-accent-ink); font-weight: 600; }
.sheet__list { list-style: none; margin: 0; padding: 0; display: grid; }
.sheet__list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.sheet__toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.sheet__toggle i { width: 40px; height: 24px; border-radius: 999px; background: var(--p-accent); position: relative; flex: none; }
.sheet__toggle i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
/* in a safety panel the sheet rises from the panel's foot, 24px in at the sides */
#safety .panel { --p-h: 340px; position: relative; overflow: hidden; }
#safety .panel > .sheet--rise { position: absolute; left: var(--s-5); right: var(--s-5); top: var(--s-5); }
#safety .panel > .safety__phone { position: absolute; left: 50%; top: var(--s-5); width: min(62%, 220px); transform: translateX(-50%); }
@media (max-width: 639px) { #safety .panel { --p-h: 340px; } }
/* the like sheet over Sofia's photograph */
[data-moment="pinned-chapters"] .mo-pc__visual.hiya-shot--photo > img.hiya-shot__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 50% 12%; }
.hiya-shot--photo > .sheet { position: absolute; z-index: 2; right: var(--s-6); bottom: var(--s-6); width: min(320px, calc(100% - 48px)); }
@media (max-width: 639px) { .hiya-shot--photo > .sheet { right: var(--s-4); bottom: var(--s-4); width: calc(100% - 32px); gap: var(--s-2); padding: var(--s-4); } .hiya-shot--photo .sheet__sub { display: none; } }

/* the questions: a photograph under the head, so the column is not words alone */
.questions__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); margin-top: var(--s-4); }

#questions .section-head { align-content: start; }
@media (max-width: 639px) { .questions__photo { aspect-ratio: 4 / 5; } }

/* safety: the three cards stay three across from 640 (the kit would put the third on a row of its own) */
@media (min-width: 640px) { #safety .grid > .card.span-4 { grid-column: auto / span 4; } }
/* the three panels start on one line, whatever the length of the words above them */
#safety .card--open { display: grid; grid-template-rows: auto 1fr auto; align-content: start; }
#safety .card--open > p { align-self: start; }
@media (min-width: 640px) and (max-width: 1023px) { #safety .sheet__list li:nth-child(n+3) { display: none; } #safety .sheet { padding: var(--s-4); } }

/* a phone: Likes you gets its own screen, so the phone is shown large */
@media (max-width: 639px) { #plus .hiya-frame { height: 100%; min-height: 560px; } #plus .hiya-frame > .device { width: min(84cqw, 300px); top: var(--s-6); } }

/* the statement footer keeps the brand action in dark mode too */
.footer--statement { --action: var(--p-action); --action-ink: var(--p-action-ink); }

/* delete-account page */
.steps-list { display: grid; gap: var(--s-4); padding-left: 1.2em; margin: 0; list-style: decimal; }
.steps-list li { padding-left: var(--s-2); }

/* a text link in a column keeps its own width */
.safety__text > .link, .section-head > .link { justify-self: start; }
.idea__lead { max-width: 46ch; margin: var(--s-6) 0 0; color: var(--ink); }

/* the pinned steps at rest on a phone: two whole screens */
@media (max-width: 639px) { main > #how[data-moment]:not(.is-live) { min-height: calc(2 * 100lvh); } }

/* 1024 to 1279: the profile panels lower, so each group fits its screen */
@media (min-width: 1024px) and (max-width: 1279px) { #profiles .panel { --p-h: 220px; } }

/* the tablet held upright (640 to 1023): each section within its one screen */
@media (min-width: 640px) and (max-width: 1023px) {
  [data-moment="pinned-chapters"]:not(.is-live) .hiya-shot.mo-pc__visual--lit { aspect-ratio: 16 / 9; }
  #safety .panel { --p-h: 380px; }
  #plus .grid > .plans__head { grid-column: 1 / span 6; }
  #plus .grid > .hiya-frame { grid-column: 7 / span 6; height: 100%; min-height: 520px; }
  #download .download__head > * { grid-column: 1 / -1; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people > img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
}

/* the rows' 16px inset written as longhands (same values as system.css's padding-block), so every tool reads it */
.rows > li { padding-top: var(--s-4); padding-bottom: var(--s-4); }
.rows > li:first-child { padding-top: 0; }

/* every panel here holds a photograph on the flat cream: no lit mesh, no vignette (the owner bans gradients) */
:root:has(meta[name="site-kind"]:is([content="tech"], [content="software"], [content="gaming"])) .panel:not([data-fx], .panel--device) { background-image: none; }
.panel::before { content: none; }
