/*
  style.css: the one stylesheet for toldintexts.com (home, support, legal
  and 404 pages). Colours are the app's Brand tokens (Views/Branding/Brand.swift).
*/

:root {
  --navy: #161B33;        /* Brand.background */
  --surface: #20274A;     /* Brand.surface */
  --line: #38426E;        /* Brand.separator */
  --amber: #F2B84B;       /* Brand.accent */
  --amber-hover: #F7CD7A;
  --amber-dark: #6B4A1E;  /* the middle of the band fades */
  --text: #F5F3EE;        /* Brand.textPrimary */
  --text-2: #B8BDD6;      /* Brand.textSecondary */
  --text-3: #8A90AE;
  /* System fonts only, so the site makes no requests to font services.
     ui-serif is New York on Apple devices, the app's own serif (Brand.Fonts.serif). */
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--amber); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 10; }

/* ---------- Header and footer ---------- */

.site-header {
  max-width: 1200px; margin: 0 auto; padding: 22px 32px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 22px; }

.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--text-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.pill {
  display: inline-block; background: var(--amber); color: var(--navy) !important;
  font-weight: 600; padding: 10px 18px; border-radius: 999px;
}
.pill:hover { background: var(--amber-hover); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer div {
  max-width: 1200px; margin: 0 auto; padding: 28px 32px;
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  font-size: 14px; color: var(--text-3);
}
.site-footer nav { display: flex; gap: 24px; }

/* ---------- Home: hero ---------- */

.hero { text-align: center; padding: 72px 24px 0; }
.eyebrow {
  margin: 0 0 18px; color: var(--amber); font-weight: 600; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 {
  margin: 0 auto; max-width: 860px;
  font-size: clamp(44px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -.02em;
}
.lede { margin: 24px auto 0; max-width: 600px; color: var(--text-2); font-size: 20px; }

.get {
  position: relative; z-index: 1; margin-top: 40px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.get small { color: var(--text-3); font-size: 14px; }

/* Stand-in for Apple's badge: replace with images/app-store-badge.svg (see index.html). */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 12px;
  padding: 9px 20px 9px 16px;
}
.store-badge:hover { color: #fff; }
.store-badge span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.store-badge small { font-size: 11px; color: #fff; }
.store-badge strong { font-size: 21px; font-weight: 600; }
.store-badge-img { height: 54px; width: auto; display: block; }

/* The image's top ~7% of its width is empty navy: pull it up under the button
   so the space below the button matches the space above it. */
.hero-image {
  display: block; width: 100%; max-width: 1500px; height: auto;
  margin: calc(44px - 7vw) auto 0;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

/* ---------- Home: sections ---------- */

.section-head { text-align: center; }
.section-head h2 { font-size: clamp(34px, 4vw, 44px); line-height: 1.1; }
.section-head p { margin: 14px auto 0; max-width: 560px; color: var(--text-2); }

.styles { max-width: 1200px; margin: 0 auto; padding: 72px 32px 40px; }
.phones { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }

.phone {
  width: 260px; height: 564px; flex: none;
  border-radius: 44px; border: 9px solid #0B0E1C; overflow: hidden; background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.mini { width: 180px; height: 390px; border-radius: 32px; border-width: 7px; }

.features { margin-top: 56px; }
.feature {
  max-width: 1100px; margin: 0 auto; padding: 96px 32px;
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center; justify-content: center;
}
.feature.flip { flex-wrap: wrap-reverse; }
.feature-text { flex: 1 1 380px; max-width: 480px; }
.feature-text h3 { font-size: 36px; line-height: 1.15; }
.feature-text p { margin: 14px 0 0; color: var(--text-2); }

/* Amber bands, fading in and out of the navy through a darker amber. */
.band {
  color: var(--navy);
  background: linear-gradient(var(--navy), var(--amber-dark) 45px, var(--amber) 100px,
                              var(--amber) calc(100% - 100px), var(--amber-dark) calc(100% - 45px), var(--navy));
  background: linear-gradient(in oklab, var(--navy), var(--amber-dark) 45px, var(--amber) 100px,
                              var(--amber) calc(100% - 100px), var(--amber-dark) calc(100% - 45px), var(--navy));
}
.band .feature { padding: 140px 32px; }
.band .feature-text p { color: #3A3320; }
.band .phone { box-shadow: 0 24px 48px rgba(22, 27, 51, .3); }

.plans { max-width: 1000px; margin: 0 auto; padding: 72px 32px; }
.plan-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.plan.pro { border: 2px solid var(--amber); }
.plan h3 { font-family: var(--sans); font-size: 22px; }
.plan.pro h3 { color: var(--amber); }
.plan ul { margin: 18px 0 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.plan .note { margin: 18px 0 0; font-size: 14px; color: var(--text-3); }

.responsible { max-width: 760px; margin: 0 auto; padding: 24px 32px 88px; text-align: center; }
.responsible p { margin: 0; color: var(--text-2); font-size: 16px; }
.responsible strong { color: var(--text); }

/* ---------- Support ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; }
.page h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.05; letter-spacing: -.01em; }
.page .lede { margin: 16px 0 0; font-size: 19px; }

.contact {
  margin-top: 32px; background: var(--surface); border: 2px solid var(--amber); border-radius: 22px;
  padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.contact div { flex: 1 1 320px; }
.contact h2 { font-family: var(--sans); font-size: 20px; }
.contact p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.contact .pill { padding: 13px 22px; }

.faq-title { margin: 56px 0 18px; font-size: 32px; line-height: 1.15; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.faq summary {
  cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* ---------- Legal ---------- */

.legal {
  max-width: 1100px; margin: 0 auto; padding: 48px 32px 96px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start;
}
.legal aside { flex: 1 1 220px; max-width: 260px; font-size: 15px; }
.legal aside p { margin: 0 0 12px; color: var(--text-3); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.legal aside nav { display: flex; flex-direction: column; gap: 4px; }
.legal aside a { color: var(--text-2); padding: 8px 14px; border-radius: 10px; }
.legal aside a[aria-current="page"] { color: var(--navy); background: var(--amber); font-weight: 600; }

.doc { flex: 999 1 560px; min-width: 0; max-width: 700px; line-height: 1.65; }
.doc h1 { font-size: clamp(40px, 5.5vw, 52px); line-height: 1.05; letter-spacing: -.01em; }
.doc .updated { margin: 12px 0 0; color: var(--text-3); font-size: 15px; }
.doc h2 { margin: 44px 0 10px; font-size: 26px; }
.doc p, .doc li { color: #C9CDE0; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc strong { color: var(--text); }
.doc a { overflow-wrap: anywhere; }
.summary { margin-top: 28px; background: var(--surface); border: 2px solid var(--amber); border-radius: 22px; padding: 24px 28px; }
.summary p { margin: 0; color: var(--text); font-size: 18px; }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .site-header { padding: 18px 20px; flex-wrap: nowrap; }
  .brand span { font-size: 20px; }
  /* Only the brand and the pill fit on a phone; the footer keeps Support, Privacy, Terms. */
  .site-nav a:not(.pill) { display: none; }
  .pill { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
  .hero { padding-top: 48px; }
  .feature, .band .feature { padding-left: 20px; padding-right: 20px; gap: 40px; }
  .feature-text { text-align: center; }
  .phone.mini { width: 140px; height: 304px; border-radius: 26px; border-width: 6px; }
  .phones { gap: 16px; }
}
