/* Site Diary's pages on kindlymadeapps.com (/site-diary/...). Loaded after /assets/site.css, on
   these pages only, so Spry's pages never see it.
   The site's own structure, fonts and pieces, dressed in Site Diary's "Hi-Vis Tactile" colours
   (C:\Claude\sitediary\src\styles\tokens.css): warm concrete board, paper cards, safety-orange
   action with a dark label like a sign, green for done, and hi-vis tape used sparingly.
   Static CSS only: the site's CSP allows no scripts, no inline styles and nothing from other hosts. */

:root {
  --bg: #ECE6DC;
  --bg-deep: #E4DDD1;
  --surface: #FFFCF6;
  --surface-hero: #FFFCF6;
  --surface-line: #E6DDCE;
  --hairline: #DCD2C2;
  --sunken: #E7DFD2;
  --control: #857766;
  --text: #1B1713;
  --text-2: #4A4137;
  --text-3: #655B50;
  --accent: #FF7A1A;
  --accent-hi: #FF9A4F;
  --accent-pressed: #F06A0C;
  --accent-edge: #A64404;
  --accent-ink: #8F3800;
  --accent-tint: #FFE2C9;
  --on-accent: #17110B;
  --raised: #FFFDF8;
  --raised-hi: #FFFFFF;
  --raised-edge: #C6B8A2;
  --piece-line: #DACDB9;
  --rim: rgba(255, 255, 255, 0.9);
  --success-ink: #155A27;
  --success-tint: #D8ECD4;
  --ok: #1E7A39;
  --focus: #1B1713;
  --hivis: #E6F02A;
  --hivis-edge: #9AA000;
  --on-hivis: #1A1A06;
  --silver: #BCC1C4;
  --cast: rgba(74, 50, 20, 0.32);
  --shadow-card: 0 1px 0 rgba(120, 88, 48, 0.08), 0 14px 28px -20px rgba(80, 56, 24, 0.45);
  --shadow-shot: 0 0 0 1.5px var(--hairline), 0 18px 40px -18px rgba(74, 50, 20, 0.42);
  --shadow-paper: 0 0 0 1px #D9CFBF, 0 18px 36px -20px rgba(74, 50, 20, 0.5);
  --speckle: url('/site-diary/img/speckle-light.svg');
  --mottle-1: rgba(120, 96, 64, 0.07);
  --mottle-2: rgba(255, 255, 255, 0.22);
  --r-card: 22px;
  --r-btn: 18px;
  /* The tape: hi-vis yellow with the reflective silver stripe. */
  --tape: linear-gradient(var(--hivis) 0 34%, var(--silver) 34% 66%, var(--hivis) 66%);
  --tape-v: linear-gradient(90deg, var(--hivis) 0 30%, var(--silver) 30% 70%, var(--hivis) 70%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181613;
    --bg-deep: #131110;
    --surface: #23201C;
    --surface-hero: #23201C;
    --surface-line: #332E28;
    --hairline: #3A342D;
    --sunken: #141210;
    --control: #968B7D;
    --text: #F7F1E7;
    --text-2: #D4C9BA;
    --text-3: #AEA394;
    --accent: #FF8A33;
    --accent-hi: #FFA562;
    --accent-pressed: #F07A22;
    --accent-edge: #8C3B04;
    --accent-ink: #FFB27A;
    --accent-tint: #43291A;
    --on-accent: #17110B;
    --raised: #302B26;
    --raised-hi: #3B3631;
    --raised-edge: #0A0908;
    --piece-line: #433C35;
    --rim: rgba(255, 255, 255, 0.07);
    --success-ink: #86DB99;
    --success-tint: #173320;
    --ok: #5EC779;
    --focus: #E3EE2E;
    --hivis: #E3EE2E;
    --hivis-edge: #7C8200;
    --silver: #8D9295;
    --cast: rgba(0, 0, 0, 0.6);
    --shadow-card: 0 0 0 1px var(--surface-line), 0 14px 28px -18px rgba(0, 0, 0, 0.8);
    --shadow-shot: 0 0 0 1.5px var(--surface-line), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --shadow-paper: 0 0 0 1px #3A342D, 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    --speckle: url('/site-diary/img/speckle-dark.svg');
    --mottle-1: rgba(0, 0, 0, 0.18);
    --mottle-2: rgba(255, 240, 220, 0.025);
  }
}

/* ---- The board: warm concrete with a fine speckle and a faint mottle ------------------------ */

body {
  background:
    radial-gradient(70% 45% at 18% 12%, var(--mottle-2), transparent 72%),
    radial-gradient(60% 40% at 88% 64%, var(--mottle-1), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  font-variant-numeric: lining-nums;
}
body::before {
  background: var(--speckle) repeat;
  background-size: 160px 160px;
  opacity: 1;
}

/* Hi-vis tape along the top of every Site Diary page. */
.site-head::before {
  content: '';
  display: block;
  height: 8px;
  background: var(--tape);
  box-shadow: 0 1px 0 var(--hivis-edge);
}
.site-head { border-bottom-color: var(--hairline); }

/* Labels: Atkinson 700 caps, as in the app. */
.eyebrow {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Pieces: the primary piece keeps a 1.5px edge ring, so orange holds 3:1 on the board. */
.btn {
  box-shadow: inset 0 0 0 1.5px var(--edge), inset 0 2px 0 var(--rim), 0 6px 0 var(--edge), 0 12px 18px -10px var(--cast);
  background: linear-gradient(var(--rim), var(--face) 55%);
  font-weight: 800;
}
.btn:active { box-shadow: inset 0 0 0 1.5px var(--edge), 0 2px 0 var(--edge); }

.chip-good { background: var(--success-tint); color: var(--success-ink); }
.chip-hivis { background: var(--hivis); color: var(--on-hivis); box-shadow: inset 0 0 0 1.5px var(--hivis-edge); }

/* Done ticks and FAQ chevrons in the Hi-Vis inks. */
.ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155A27' 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='%234A4137' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .ticks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386DB99' 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='%23D4C9BA' 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 { border-radius: var(--r-card); }
.faq details[open] { box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--piece-line); }

/* ---- Landing page ---------------------------------------------------------------------------- */

.app-id img { border-radius: 22%; }
.app-id .name { font-weight: 800; }
.sd-hero h1 { max-width: 15ch; }
.sd-hero .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin-inline: auto; width: 100%; }
.sd-hero .shots li:nth-child(n + 3) { display: none; }
.shots picture, .feat picture { display: block; }
.shots img { aspect-ratio: 300 / 649; }
.sd-hero .shots li:nth-child(2) { margin-top: 36px; }
.get .note { max-width: 30rem; }
/* Until launch: a flat well, not a piece (nothing to press: the Play page isn't public yet). */
.soon-badge { display: inline-flex; align-items: center; min-height: 56px; margin: 0; padding: 0 22px; border-radius: var(--r-btn); background: var(--sunken); box-shadow: inset 0 0 0 1.5px var(--hairline); color: var(--text); font: 700 1.25rem/1.15 var(--font-body); }

.section-head { max-width: var(--measure); margin-bottom: 28px; }
.section-head .lead { margin-bottom: 0; }

/* Feature rows: a phone and its story. */
.feats { display: grid; gap: clamp(36px, 6vw, 64px); list-style: none; padding: 0; margin: 0; }
.feats > li { margin: 0; }
.feat { display: grid; gap: 22px; align-items: center; }
.feat figure { margin: 0; justify-self: center; width: min(72%, 280px); }
.feat figure img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-shot); background: var(--bg-deep); aspect-ratio: 300 / 649; }
.feat h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.85rem); margin-bottom: 0.4em; }
.feat .eyebrow { margin-bottom: 8px; }
.feat .ticks { margin: 18px 0 0; gap: 12px; }
.feat .ticks li { font-size: 1.125rem; }
.feat p { color: var(--text-2); }
.feat strong { color: var(--text); }

/* Region words. */
.words { width: 100%; border-collapse: collapse; font-size: 1.125rem; background: var(--surface-hero); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card), inset 0 0 0 1px var(--surface-line); }
/* The note sits under the table, not in it: the table’s rounded, clipped corner would cut its first letter. */
.words-note { margin: 12px 0 0; color: var(--text-2); font-size: 1.0625rem; }
.words th, .words td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1.5px solid var(--hairline); }
.words tr:last-child th, .words tr:last-child td { border-bottom: 0; }
.words thead th { background: var(--sunken); font-size: 1rem; line-height: 1.3; color: var(--text-2); }
.words tbody th { font-weight: 700; color: var(--text-2); width: 28%; }
@media (max-width: 480px) {
  .words { font-size: 1.0625rem; }
  .words th, .words td { padding: 10px 8px; }
  .words th:first-child, .words td:first-child { padding-left: 14px; }
}
.words td { font-weight: 700; }

/* The PDFs: light paper in both themes, as in the app. */
.papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 28px); list-style: none; padding: 0; margin: 0 0 28px; max-width: 900px; }
.papers li { margin: 0; }
.papers a { display: block; border-radius: 6px; }
.papers img { width: 100%; aspect-ratio: 480 / 679; border-radius: 4px; background: #FFFFFF; box-shadow: var(--shadow-paper); }
.papers .cap { display: block; margin-top: 12px; font-size: 1.0625rem; color: var(--text-2); line-height: 1.35; }
.reports-list { display: grid; gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
.reports-list li { margin: 0; }
.reports-list b { display: block; color: var(--text); }
.reports-list span { color: var(--text-2); font-size: 1.125rem; }

/* Who it is for. */
.trades { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 22px; }
.trades li { margin: 0; }
/* Flat: on these pages only things you can press have an edge. */
.trades .chip { min-height: 38px; padding: 4px 16px; background: var(--surface-hero); box-shadow: inset 0 0 0 1.5px var(--surface-line); }

/* Price. */
.plans { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
.plans > li { margin: 0; }
.plan { position: relative; height: 100%; display: grid; gap: 10px; align-content: start; }
.plan h3 { margin: 0; font-size: 1.6rem; }
.plan p { margin: 0; color: var(--text-2); }
.plan .ticks { margin: 6px 0 0; gap: 10px; }
.plan .ticks li { font-size: 1.125rem; }
.plan-free { padding-left: calc(clamp(20px, 4vw, 32px) + 10px); }
.plan-free::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 22px;
  bottom: 22px;
  width: 8px;
  border-radius: 3px;
  background: var(--tape-v);
  box-shadow: 1px 0 0 var(--hivis-edge);
}
.plan-premium { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--accent-edge); }
.plan-always { background: var(--success-tint); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--success-ink) 35%, transparent); }
.plan-always p, .plan-always li { color: var(--text); }
.plan .big, .big { font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.6rem)/1 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.price-note { margin-top: 18px; color: var(--text-2); font-size: 1.125rem; max-width: var(--measure); }

/* Short links into the help page. */
.qlinks { display: grid; gap: 4px 28px; list-style: none; padding: 0; margin: 0; font-size: 1.125rem; }
.qlinks li { margin: 0; }
.qlinks a { display: inline-flex; min-height: 44px; align-items: center; }

/* "Also by Kindly Made" in the footer. */
.site-foot .also { color: var(--text-2); }

@media (min-width: 640px) {
  .sd-hero .shots { gap: 22px; }
  .reports-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 820px) {
  .feat { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; }
  .feat figure { width: 100%; }
  .feats > li:nth-child(even) .feat { grid-template-columns: minmax(0, 1fr) 280px; }
  .feats > li:nth-child(even) .feat figure { order: 2; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .sd-hero .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .papers { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .reports-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: start; }
  .reports-wrap .papers { margin-bottom: 0; }
  .reports-list { grid-template-columns: 1fr; }
}

/* ---- Text pages ------------------------------------------------------------------------------- */

.page h2 { scroll-margin-top: 16px; }
.page table.plain { width: 100%; border-collapse: collapse; font-size: 1.125rem; margin: 0 0 1em; }
.page table.plain th, .page table.plain td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--hairline); }
.page table.plain th { font-weight: 700; color: var(--text-2); }
.page .note { background: var(--sunken); border-radius: 16px; padding: 14px 18px; font-size: 1.125rem; }
.page .note > :last-child { margin-bottom: 0; }
.also-pages { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.also-pages li { margin: 0; }
.also-pages a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--raised); color: var(--text); font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--piece-line), 0 4px 0 var(--raised-edge); }
.also-pages a:hover { background: var(--raised-hi); }
.also-pages a:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--piece-line), 0 1px 0 var(--raised-edge); }
.faq-group { margin-top: 2.2em; }

/* 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. */
.ticks li { display: block; position: relative; padding-left: 44px; min-height: 30px; }
.ticks li::before { position: absolute; left: 0; top: 0.08em; }
