/* ==========================================================================
   site.css — xerodonia.com
   Part 1: structure, accessibility and no-JS behaviour.
   Part 2 (below): the Liquid Glass theme, which supplies colour, type and depth.
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --brand-blue: #2f6cf6;
  --brand-amber: #f8b93d;

  /* Defaults; every design overrides these. */
  --bg: #fff;
  --surface: #f4f5f7;
  --text: #111;
  --muted: #555;
  --line: #ddd;
  --link: #1d55d6;
  --focus: #2f6cf6;
  --radius: 12px;
  --gap: clamp(1rem, 2.5vw, 1.5rem);
  --section-space: clamp(3.5rem, 8vw, 6.5rem);
  --wrap: 72rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[class], ol, nav ul { list-style: none; padding: 0; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--text); color: var(--bg); border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout primitives ---------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-header { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.split { display: grid; gap: calc(var(--gap) * 2); align-items: start; }
@media (min-width: 48rem) { .split { grid-template-columns: 1.2fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Header and nav (wraps instead of needing a JS menu) ---------- */
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand-mark { width: 2rem; height: 2rem; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { text-decoration: none; color: inherit; }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .7rem 1.3rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button--static { cursor: default; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.link-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.25rem; }

/* ---------- Whole-card links without JS ---------- */
.product-card, .post-card { position: relative; }
.stretched-link { color: inherit; text-decoration: none; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Products ---------- */
.product-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.product-card { display: flex; flex-direction: column; gap: .9rem; }
.product-card > * { min-width: 0; } /* lets the terminal scroll instead of overflowing grid columns */
.product-icon { width: 4.5rem; height: 4.5rem; border-radius: 22.5%; }
.product-body { flex: 1; }
.product-name { font-size: 1.3rem; }
.product-tagline { margin-top: .35rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; }
.chips li { padding: .15rem .6rem; border: 1px solid var(--line); border-radius: 999px; }
.status { font-size: .8rem; font-weight: 600; }
.terminal { overflow-x: auto; font: .8rem/1.6 var(--font-mono); padding: .8rem 1rem; border-radius: 8px; background: #0f172a; color: #e2e8f0; }
.t-prompt { color: #f8b93d; }
.t-comment { color: #94a3b8; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.75em; }
/* One element: a disc with an SVG tick centred in it. The tick's bounding box
   is centred in its 16×16 viewBox, and em sizing keeps the disc centred on the
   first line of text at any font size (line-height 1.55 → (1.55 − 1.1) / 2). */
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .225em;
  width: 1.1em; height: 1.1em; border-radius: 50%;
  background-color: var(--accent, var(--brand-blue));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.3 6.9 10.8 11.6 5.4' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center; background-size: 100%; background-repeat: no-repeat;
}

/* ---------- Blog ---------- */
.post-meta { font-size: .85rem; color: var(--muted); }
.post-title { margin-block: .4rem; font-size: 1.4rem; }
.post-excerpt { color: var(--muted); max-width: 60ch; }

/* ---------- App page ---------- */
.breadcrumbs { padding-top: 1.25rem; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--text); }

.app-hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.app-hero-inner { display: grid; gap: calc(var(--gap) * 1.5); align-items: center; }
@media (min-width: 48rem) { .app-hero-inner { grid-template-columns: auto 1fr; } }
.app-icon { width: clamp(7rem, 18vw, 11rem); height: auto; border-radius: 22.5%; }
.app-tagline { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-top: .3rem; }
.app-summary { margin-top: 1rem; max-width: 62ch; color: var(--muted); }
.app-hero .chips { margin-top: 1.25rem; }
.fine-print { margin-top: .9rem; font-size: .85rem; color: var(--muted); }

/* Screenshot strip: horizontal scroll-snap, no JS */
.shot-strip {
  display: flex; gap: var(--gap); overflow-x: auto; padding-bottom: 1rem;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.shot-strip > li { flex: none; scroll-snap-align: start; }
.shot-frame {
  display: grid; place-items: center; text-align: center;
  height: clamp(18rem, 48vw, 28rem);
  font-size: .85rem; color: var(--muted);
  border: 1px dashed var(--line); background: var(--surface);
}
.shot--phone .shot-frame { aspect-ratio: 1320 / 2868; border-radius: 2rem; }
.shot--tablet .shot-frame { aspect-ratio: 2064 / 2752; border-radius: 1.4rem; }
.shot--mac .shot-frame { aspect-ratio: 16 / 10; border-radius: .8rem; }
.shot figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); text-align: center; }

.feature-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); }

.privacy-callout blockquote { margin-block: 1.2rem; font-size: 1.25rem; font-weight: 600; }
.privacy-callout p + p { margin-top: .8rem; }
.data-lists h3 { font-size: 1rem; margin: 0 0 .8rem; }
.data-lists .checklist + h3 { margin-top: 1.6rem; }
.checklist--muted li::before { background-color: var(--muted); }

/* Dividers come from each cell's right/bottom edge (clipped at the container's
   edges), so a partly filled last row stays clean instead of showing a grey gap. */
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); overflow: hidden; border: 1px solid var(--line); }
.spec-list > div { padding: 1rem 1.2rem; margin: 0 -1px -1px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: .8rem; color: var(--muted); }
.spec-list dd { margin: .2rem 0 0; font-weight: 600; }
.specs h2 { margin-bottom: 1.5rem; }
.screenshots h2 { margin-bottom: 1.5rem; }

.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }
.cta-band p { margin-top: .6rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3.5rem 2.5rem; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: .8rem; color: var(--muted); max-width: 30ch; }
.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; color: var(--muted); }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer nav a { color: inherit; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.legal { margin-top: 1rem; font-size: .78rem; color: var(--muted); }
.footer-grid + .legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ==========================================================================
   Part 2 · Liquid Glass theme — matches Apple's iOS 26 look.
   Frosted translucent panels over soft colour fields; pill buttons; depth.
   ========================================================================== */

:root {
  --bg: #eef2fb;
  --text: #0b1222;
  --muted: #4a5568;
  --line: rgb(15 23 42 / .12);
  --link: #1d55d6;
  --surface: rgb(255 255 255 / .55);
  --glass: rgb(255 255 255 / .58);
  --glass-strong: rgb(255 255 255 / .78);
  --glass-edge: rgb(255 255 255 / .9);
  --shadow: 0 1px 1px rgb(15 23 42 / .04), 0 12px 32px -8px rgb(30 58 138 / .18);
  --radius: 28px;
  --field-1: rgb(47 108 246 / .32);
  --field-2: rgb(139 92 246 / .22);
  --field-3: rgb(248 185 61 / .28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060a16;
    --text: #eef2ff;
    --muted: #a3acc2;
    --line: rgb(255 255 255 / .12);
    --link: #8fb2ff;
    --surface: rgb(255 255 255 / .06);
    --glass: rgb(22 30 52 / .55);
    --glass-strong: rgb(22 30 52 / .75);
    --glass-edge: rgb(255 255 255 / .14);
    --shadow: 0 1px 1px rgb(0 0 0 / .3), 0 16px 40px -10px rgb(0 0 0 / .6);
    --field-1: rgb(47 108 246 / .38);
    --field-2: rgb(139 92 246 / .26);
    --field-3: rgb(248 185 61 / .14);
  }
}

body {
  background:
    radial-gradient(60rem 40rem at 10% -10%, var(--field-1), transparent 60%),
    radial-gradient(50rem 40rem at 95% 10%, var(--field-2), transparent 60%),
    radial-gradient(45rem 35rem at 50% 105%, var(--field-3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Shared glass recipe */
.site-header, .product-card, .post-card, .consulting .split, .feature, .privacy-callout .split,
.spec-list, .cta-band .wrap, .app-hero-inner, .shot-frame {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

/* Header: floating glass pill */
.site-header {
  position: sticky; top: .75rem; z-index: 10;
  width: min(100% - 1.5rem, 64rem); margin: .75rem auto 0;
  border-radius: 999px;
}
.site-header .wrap { width: auto; padding-inline: 1rem 1.5rem; padding-block: .55rem; }
.site-nav a { font-weight: 500; padding: .35rem .2rem; }
.site-nav a:hover { color: var(--link); }

/* Buttons: pills */
.button { border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.button--primary { background: linear-gradient(180deg, #4b82ff, #2f6cf6); color: #fff; box-shadow: 0 6px 18px -6px rgb(47 108 246 / .7), inset 0 1px 0 rgb(255 255 255 / .35); }
.button--secondary { background: var(--glass-strong); color: var(--text); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.button:not(.button--static):hover { transform: translateY(-1px); }

/* Hero */
.hero { padding-block: clamp(4rem, 12vw, 8rem) clamp(2rem, 6vw, 4rem); text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.hero-title { margin-top: 1.25rem; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.035em; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, #2f6cf6 10%, #8b5cf6 55%, #f59e0b 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 1.25rem auto 0; max-width: 46rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }
.hero .actions { justify-content: center; }

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.025em; }
.section-header p { margin-top: .5rem; color: var(--muted); font-size: 1.1rem; }

/* Product cards */
.product-card { padding: 1.5rem; border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 20px 40px -18px color-mix(in srgb, var(--accent) 60%, transparent); }
.product-icon { box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.chips li { background: var(--glass-strong); border-color: var(--glass-edge); }
/* Accent-coloured text is blended with --text so it keeps WCAG contrast for any
   app colour: darker in light mode, lighter in dark mode. */
.status { color: color-mix(in oklab, var(--accent) 50%, var(--text)); }
@media (min-width: 64rem) {
  .product-card--featured { grid-column: span 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .product-card--featured .product-icon { width: 6.5rem; height: 6.5rem; }
  .product-card--featured .product-body { flex: 1 1 20rem; }
  .product-card--featured .product-name { font-size: 1.7rem; }
  .product-card--featured .chips, .product-card--featured .status { flex-basis: 100%; }
}

/* Consulting */
.consulting .split { padding: clamp(1.5rem, 4vw, 3rem); border-radius: calc(var(--radius) + 8px); }
.consulting .eyebrow { margin-bottom: 1rem; }
.consulting p { color: var(--muted); }
.checklist { font-weight: 500; }

/* Blog */
.post-card { padding: 1.75rem; border-radius: var(--radius); }
.blog .text-link { display: inline-block; margin-top: 1.25rem; }

/* App page */
.breadcrumbs { padding-top: 1.75rem; }
.app-hero-inner { padding: clamp(1.5rem, 4vw, 3rem); border-radius: calc(var(--radius) + 8px); }
.app-icon { box-shadow: 0 20px 50px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.app-name { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.035em; }
.app-hero .eyebrow { margin-bottom: .75rem; }
.app-tagline { font-weight: 600; color: color-mix(in oklab, var(--accent) 60%, var(--text)); }
.shot-frame { color: var(--muted); border-style: solid; }
.feature { padding: 1.5rem; border-radius: 22px; }
.privacy-callout .split { padding: clamp(1.5rem, 4vw, 3rem); border-radius: calc(var(--radius) + 8px); }
.privacy-callout blockquote { font-size: 1.4rem; letter-spacing: -.01em; }
.spec-list { border-radius: var(--radius); }
.cta-band .wrap { padding: clamp(2rem, 6vw, 4rem); border-radius: calc(var(--radius) + 8px); }

/* Footer */
.site-footer { margin-top: 2rem; background: var(--glass); border-top: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

/* The tool card takes a full row so the grid never leaves an orphan */
@media (min-width: 64rem) {
  .product-card--tool { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr minmax(18rem, 1.2fr); align-items: center; column-gap: 1.5rem; }
  .product-card--tool .chips, .product-card--tool .status { grid-column: 2; justify-self: start; }
  .product-card--tool .terminal { grid-column: 3; grid-row: 1 / span 3; }
  .product-card--tool .product-icon { grid-row: 1 / span 3; }
}
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* Page titles on listing pages (h1 that sits where a section h2 would) */
.page-title { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.03em; }
/* Real screenshots, once they replace the placeholders */
.shot-image { height: clamp(18rem, 48vw, 28rem); width: auto; border-radius: 1.2rem; }

/* ==========================================================================
   Document pages: privacy policies, support, about
   ========================================================================== */
.doc-wrap { max-width: 50rem; }
.doc { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.doc-header { margin-bottom: 2rem; }
.doc-header .eyebrow { margin-bottom: .75rem; }
.doc-meta, .doc-lead { margin-top: .75rem; color: var(--muted); }
.doc-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 42rem; }
.doc-summary {
  padding: clamp(1.25rem, 4vw, 2.25rem); border-radius: var(--radius); margin-bottom: 2.5rem;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
}
.doc-summary h2 { font-size: 1.4rem; margin-bottom: .75rem; }
.doc-summary > p { color: var(--muted); margin-bottom: 1.25rem; }
.doc-summary .data-lists h3 { margin-top: 1.25rem; }

.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul:not([class]) { padding-left: 1.25rem; display: grid; gap: .4rem; }
.prose + .prose { margin-top: 2.5rem; }
.prose a { text-underline-offset: .15em; }

.permission-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 1rem; }
.permission-list > div { display: grid; gap: .2rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .permission-list > div { grid-template-columns: 12rem 1fr; } }
.permission-list dt { font-weight: 600; }
.permission-list dd { margin: 0; color: var(--muted); }

.sharing-list { display: grid; gap: 1rem; margin-bottom: 1rem; }
.sharing-list li { padding: 1.1rem 1.25rem; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.sharing-list h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.sharing-list p { margin-bottom: .35rem; color: var(--muted); }
.sharing-list strong { color: var(--text); }

.faq { display: grid; gap: .75rem; }
.faq details { border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style-position: inside; }
.faq details[open] summary { padding-bottom: .4rem; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

.policy-list { display: grid; gap: .6rem; padding: 0; list-style: none; }
.policy-list li { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.policy-list strong { min-width: 10rem; }

.fine-print a { color: inherit; }
