/* TeeTrace's pages on kindlymadeapps.com (/teetrace/...). Loaded after /assets/site.css, on these pages
   only, so the other apps' pages never see it.
   The site's own structure, fonts and pieces, in TeeTrace's colours: the app's palette (TeeColors in
   app/src/main/kotlin/app/kindlymade/teetrace/ui/theme/Color.kt), dark only like the app, with the
   tracer's ember as the one accent. Every text colour keeps at least 4.5:1 on the surfaces it sits on.
   Static CSS only: the site's CSP allows no scripts, no inline styles and nothing from other hosts. */

:root {
  color-scheme: dark;
  --bg: #0C1013;            /* Night */
  --bg-deep: #060809;       /* Ink */
  --surface: #131A1F;       /* Slate */
  --surface-hero: #131A1F;
  --surface-line: #252E35;  /* Line */
  --hairline: #1D262C;
  --sunken: #080B0D;
  --control: #8D99A1;       /* Mist */
  --text: #F3F5F4;          /* Chalk */
  --text-2: #C4CCD1;        /* Fog */
  --text-3: #8D99A1;        /* Mist */
  --accent: #FF5A36;        /* Ember */
  --accent-hi: #FF8A6A;     /* Ember glow */
  --accent-pressed: #D9381A;
  --accent-edge: #7E2410;
  --accent-ink: #FF8A6A;
  --accent-tint: #2A1611;
  --on-accent: #060809;
  --raised: #1B2329;        /* Graphite */
  --raised-hi: #252E35;
  --raised-edge: #020304;
  --piece-line: #2C363E;
  --success-ink: #3DDC97;   /* Fairway */
  --success-tint: #0F2A20;
  --focus: #FFB547;         /* Amber */
  --shadow-card: 0 0 0 1px var(--surface-line), 0 18px 36px -24px rgba(0, 0, 0, 0.9);
  --shadow-shot: 0 0 0 1.5px var(--surface-line), 0 24px 48px -22px rgba(0, 0, 0, 0.95);
  --grain-opacity: 0;
}

/* No linen grain: TeeTrace's board is the range at dusk, not paper. */
body::before { display: none; }

/* ---- Pieces in TeeTrace's inks --------------------------------------------------------------- */

.chip { background: var(--raised); }
.soon-badge { background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--piece-line); }
.soon-badge svg { color: var(--accent); }
.get .note { max-width: 30rem; }

/* Ticks: the site's grid version splits an item with bold words into separate cells, so these pages
   place the tick beside a normal text block instead (as Sunup's and Site Diary's do), in the app's
   fairway green. */
.ticks li { display: block; position: relative; padding-left: 44px; min-height: 30px; }
.ticks li::before {
  position: absolute;
  left: 0;
  top: 0.08em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DDC97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.faq summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4CCD1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
}
.faq details[open] { box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--piece-line); }

.private .lock svg { color: var(--accent); }

/* ---- The landing page ------------------------------------------------------------------------ */

/* The hero: the night range, with the tracer's glow behind the phones. */
.tt-hero { background: radial-gradient(56rem 30rem at 82% 0%, rgba(255, 90, 54, 0.14), transparent 65%), var(--bg); }
.tt-hero h1 { max-width: 15ch; }
.tt-trace { color: var(--accent); }
.tt-hero .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin-inline: auto; width: 100%; }
.tt-hero .shots li:nth-child(2) { margin-top: 36px; }
.shots img { aspect-ratio: 1 / 2; }

/* How it works: four steps, each a phone and its words. */
.tt-steps { display: grid; gap: 28px; list-style: none; padding: 0; margin: 0; }
.tt-steps > li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; align-content: start; margin: 0; }
.tt-steps img { width: 100%; height: auto; aspect-ratio: 1 / 2; border-radius: 14px; box-shadow: var(--shadow-shot); background: var(--bg-deep); }
.tt-steps h3 { display: flex; align-items: center; gap: 12px; margin: 2px 0 8px; font-size: 1.35rem; }
.tt-num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); font: 800 1.1rem/1 var(--font-display); }
.tt-steps p { margin: 0; color: var(--text-2); font-size: 1.125rem; }
.tt-note { margin: 26px 0 0; color: var(--text-3); font-size: 1.0625rem; max-width: var(--measure); }

/* "No made-up numbers". */
.tt-card { display: grid; gap: 12px; align-content: start; align-self: start; }
.tt-card h3 { margin: 0; }
.tt-card p { margin: 0; color: var(--text-2); }

/* Filming tips. */
.tt-tips { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.tt-tips > li { display: grid; gap: 8px; align-content: start; margin: 0; }
.tt-tips h3 { margin: 0; font-size: 1.3rem; }
.tt-tips p { margin: 0; color: var(--text-2); font-size: 1.125rem; }

/* Made by Kindly Made: the Play feature graphic beside the words. */
.tt-about { display: grid; gap: 28px; align-items: center; }
.tt-feature { width: 100%; height: auto; aspect-ratio: 1024 / 500; border-radius: 22px; box-shadow: var(--shadow-shot); background: var(--bg-deep); }
.tt-about .get { margin-top: 18px; }

@media (min-width: 640px) {
  .tt-hero .shots { gap: 22px; }
  .tt-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .tt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
  .tt-steps > li { grid-template-columns: 128px minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .tt-hero .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .tt-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tt-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}
@media (min-width: 1040px) {
  .tt-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .tt-steps > li { grid-template-columns: minmax(0, 1fr); }
  .tt-steps img { width: min(100%, 200px); border-radius: 20px; }
}
