/* Novalie site. Layout: a late-night call. Dark ink ground like the app's Midnight theme, lamplight amber as the one accent,
   the hero shows a live call on a phone, the cast sits in a row of three, then what a call does, privacy and safety. */
@font-face {
  font-family: "Great Vibes";
  src: url("fonts/great-vibes.woff") format("woff");
  font-display: swap;
}

:root {
  --ink: #0A0E15;        /* page ground (app Midnight bg) */
  --panel: #121924;      /* raised surfaces */
  --panel-2: #1A2331;
  --line: #2A3548;
  --text: #E8EEF6;
  --muted: #93A3B8;
  --lamp: #F2B880;       /* the accent: warm lamplight from the app's Champagne theme */
  --lamp-deep: #5C3A1E;
  --city: #4DA3FF;       /* city-light blue, used only in the background glow */
  --chrome: #EDEAEF;     /* primary buttons, same as the app */
  --on-chrome: #0E0B10;
  --live: #FF5A6E;
  --bezel: #05070B;

  --font-script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.2vw, 4.25rem);
  --radius: 18px;
  --wrap: 1120px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--lamp); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lamp);
}

.lede { color: var(--muted); font-size: var(--step-1); max-width: 36rem; }

/* Header */
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.wordmark {
  font-family: var(--font-script);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 550; }
.site-nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-chrome { background: var(--chrome); color: var(--on-chrome); }
.btn-chrome:hover { color: var(--on-chrome); background: var(--text); }
.btn-quiet { border-color: var(--line); color: var(--text); }
.btn-quiet:hover { border-color: var(--muted); color: var(--text); }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, color-mix(in srgb, var(--city) 14%, transparent), transparent 70%),
    radial-gradient(40rem 28rem at 8% 85%, color-mix(in srgb, var(--lamp) 12%, transparent), transparent 70%),
    var(--ink);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-block: 40px 88px;
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy h1 em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.25em;
  letter-spacing: 0;
  color: var(--lamp);
  line-height: 0.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.privacy-note {
  max-width: 34rem; margin: 0 0 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--lamp); border-radius: 12px;
  background: var(--panel); font-size: 0.92rem; color: var(--muted);
}
.privacy-note strong { color: var(--text); }
.privacy-note a { color: var(--lamp); white-space: nowrap; }
.adult { font-size: 0.85rem; color: var(--muted); }

/* The phone in the hero */
.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 330px);
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  border: 10px solid var(--bezel);
  background: var(--bezel);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--lamp) 35%, transparent), 0 0 0 1px var(--line);
}
.phone > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.call-top {
  position: absolute;
  inset: 0 0 auto;
  padding: 18px 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(color-mix(in srgb, var(--bezel) 70%, transparent), transparent);
}
.call-name { font-family: var(--font-script); font-size: 2rem; line-height: 1; color: var(--text); }
.call-sub { font-size: 0.72rem; color: color-mix(in srgb, var(--text) 75%, transparent); margin-top: 4px; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bezel) 55%, transparent);
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.selfview {
  position: absolute;
  right: 12px;
  top: 74px;
  width: 84px;
  height: 112px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--panel-2), var(--bezel));
  border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  font-size: 0.62rem;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.6);
}
.selfview img { position: absolute; inset: 0; width: 84px; height: 112px; max-width: none; object-fit: cover; object-position: 50% 20%; }
.selfview span { position: relative; padding: 1px 7px; border-radius: 99px; background: rgba(5,7,11,.55); }
.call-bottom {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 14px 18px;
  display: grid;
  gap: 14px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--bezel) 85%, transparent) 45%);
}
.caption {
  justify-self: start;
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
  line-height: 1.4;
}
.controls { display: flex; justify-content: center; gap: 16px; }
.controls span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--text) 16%, transparent);
  color: var(--text);
}
.controls span.end { background: var(--live); }
.controls svg { width: 20px; height: 20px; }

/* Sections */
.section .wrap { padding-block: 88px; display: grid; gap: 40px; }
.section-head { display: grid; gap: 14px; max-width: 44rem; }
.section + .section .wrap { padding-top: 0; }

/* Cast */
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.person { display: grid; gap: 16px; align-content: start; min-width: 0; }
.person figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.person figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.person .tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lamp);
  color: var(--on-chrome);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.person-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.person-name h3 { font-family: var(--font-script); font-weight: 400; font-size: 2.3rem; letter-spacing: 0; line-height: 1; }
.person-place { font-size: 0.85rem; color: var(--muted); }
.person p { color: var(--muted); }
.traits { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.traits li {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
}

/* What a call does */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--ink); padding: 30px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature p { color: var(--muted); }
.feature .stat {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--lamp);
}

/* Privacy band */
.band { background: var(--panel); border-block: 1px solid var(--line); }
.band .wrap { padding-block: 80px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.band .section-head { align-content: start; }
.ledger { display: grid; gap: 0; margin: 0; }
.ledger div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.ledger div:last-child { border-bottom: 1px solid var(--line); }
.ledger dt { font-weight: 650; }
.ledger dd { margin: 0; color: var(--muted); min-width: 0; }

/* In the app: real screens from the S26 */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.shot { margin: 0; display: grid; gap: 14px; justify-items: center; }
.shot .phone-s {
  width: min(100%, 270px); aspect-ratio: 540 / 1047; border-radius: 34px; border: 8px solid var(--bezel);
  overflow: hidden; background: var(--bezel);
  box-shadow: 0 30px 70px -28px color-mix(in srgb, var(--lamp) 30%, transparent), 0 0 0 1px var(--line);
}
.shot .phone-s img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { color: var(--muted); font-size: 0.95rem; text-align: center; max-width: 18rem; }
.shot figcaption strong { color: var(--text); display: block; font-weight: 650; margin-bottom: 2px; }

/* Safety */
.safety { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.safety > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--lamp-deep); min-width: 0; }
.safety p { color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-block: 40px 56px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-foot a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-foot a:hover { color: var(--text); }
.fine { color: var(--muted); font-size: 0.85rem; }

/* Long-form pages (privacy, support) */
.doc .wrap { padding-block: 48px 96px; }
.doc article { max-width: 46rem; display: grid; gap: 18px; }
.doc article h1 { font-size: var(--step-3); }
.doc article h2 { font-size: var(--step-2); margin-top: 28px; }
.doc article p, .doc article li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.doc article ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.doc .meta { color: var(--muted); font-size: 0.92rem; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.92rem; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-scroll th { background: var(--panel); font-weight: 650; }
.table-scroll tr:last-child td { border-bottom: 0; }
.todo { background: color-mix(in srgb, var(--lamp) 22%, transparent); color: var(--text); padding: 0 4px; border-radius: 4px; }
.faq { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--line); padding-block: 6px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; padding-block: 12px; }
.faq details p { padding-bottom: 14px; }
.contact { font-family: var(--font-num); font-size: 1.05rem; user-select: all; }

/* Device tuning. Phones: under 600px. Tablets (iPad, Android tablets): 600 to 1024px. Desktop: above. */

/* Tablet and small laptop: keep the two-column hero and three-up cast where they fit */
@media (max-width: 1024px) {
  .hero .wrap { gap: 32px; }
  .cast { gap: 18px; }
  .person-name h3 { font-size: 2rem; }
  .shots { gap: 20px; }
  .shot .phone-s { width: min(100%, 230px); border-radius: 30px; }
  .band .wrap { gap: 32px; }
}

/* Large phones and tablets in portrait: one column hero, but use the width */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 16px 64px; gap: 44px; }
  .hero-copy { max-width: 40rem; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section .wrap { padding-block: 64px; }
}

/* iPad portrait (about 768 to 860): three across still fits, three across keeps the cast a row */
@media (min-width: 601px) and (max-width: 860px) {
  .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .person p { font-size: 0.95rem; }
  .safety { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phone { width: min(100%, 300px); }
}

/* Phones */
@media (max-width: 600px) {
  .cast { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .safety { grid-template-columns: minmax(0, 1fr); }
  .section .wrap { padding-block: 52px; gap: 28px; }
  .band .wrap { padding-block: 52px; }
  .lede { font-size: 1.05rem; }
  .site-head .wrap { padding-block: 12px; }
  .wordmark { font-size: 2.1rem; }
  .site-nav { gap: 4px; }
  .site-nav a { padding: 12px 8px; }
  .site-nav a.hide-sm { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; text-align: center; }
  .hero-actions .soon { justify-content: center; padding-block: 0; }
  .phone { width: min(86%, 300px); border-width: 8px; border-radius: 40px; }
  .ledger div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .feature { padding: 24px 20px; }
  .doc .wrap { padding-block: 28px 72px; }
  .summary { padding: 18px; }
  /* App screens: a swipeable row instead of a long stack */
  .shots {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px));
    scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 72%; max-width: 270px; scroll-snap-align: start; }
  .shot .phone-s { width: 100%; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .site-foot a { display: inline-block; padding-block: 8px; }
}

/* Small phones (iPhone SE, 360px Androids) */
@media (max-width: 380px) {
  h1 { font-size: 2.1rem; }
  .btn { padding-inline: 16px; }
  .person-name h3 { font-size: 2rem; }
  .wordmark { font-size: 1.85rem; }
  .site-nav { flex-wrap: nowrap; gap: 0; }
  .site-nav a { padding: 12px 6px; font-size: 0.9rem; }
}

/* Phones turned sideways: the hero phone must not be taller than the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); padding-block: 12px 40px; gap: 28px; }
  .hero .wrap { align-items: start; }
  .hero-copy h1 { font-size: 2.4rem; }
  .phone { width: auto; height: max(260px, calc(100svh - 110px)); max-height: 420px; max-width: 100%; aspect-ratio: 10 / 16; border-width: 7px; border-radius: 30px; }
  .selfview, .call-sub { display: none; }
  .caption { font-size: 0.7rem; padding: 6px 9px; }
  .controls { gap: 10px; }
  .controls span { width: 34px; height: 34px; }
  .controls svg { width: 16px; height: 16px; }
  .call-top { padding: 12px 10px 30px; }
  .call-name { font-size: 1.5rem; }
  .live { white-space: nowrap; font-size: 0.62rem; padding: 3px 6px; }
  .section .wrap { padding-block: 44px; }
}

/* Touch screens: no hover states to get stuck, comfortable tap targets, no grey flash */
@media (hover: none) and (pointer: coarse) {
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  .btn { min-height: 48px; }
  .faq summary { padding-block: 16px; }
  .btn-chrome:hover { background: var(--chrome); }
  .site-nav a:hover, .site-foot a:hover { color: var(--muted); }
}

/* Wide desktop */
@media (min-width: 1400px) {
  :root { --wrap: 1240px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
