/* 00-base.css — tokens, reset, page frame, section headings, footer (Towel design: white mode, flat, 8pt grid).
   Why: first file joined by write_stylesheet.py; every later file builds on these variables.
   --accent comes from product.toml `color` via an inline :root style on each page.
   NEVER DELETE COMMENTS — explain every non-obvious line.
   Update comments with the code; do not strip them. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"); /* official Towel font */
:root { --ink: #1c1c1e; --muted: #6e6e73; --line: #e5e5ea; --bg: #ffffff; --soft: #f5f5f7;
        --accent-ink: color-mix(in srgb, var(--accent) 70%, #000);   /* darker accent: 4.5:1 on white even for yellow */
        --accent-tint: color-mix(in srgb, var(--accent) 12%, #fff); } /* pale wash for chips, hero, current nav */
* { box-sizing: border-box; }
html { color-scheme: light; }                          /* white mode only: dark UI = defect */
body { margin: 0; font-family: Inter, Roboto, sans-serif; color: var(--ink); background: var(--bg);
       line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mark { display: flex; align-items: center; justify-content: center; background: var(--accent);
        color: #fff; font-weight: 700; }               /* letter fallback when an app has no .icns */
.section { padding: 40px 0 0; }
.section h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 24px; }
footer { margin-top: 80px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; padding: 32px 24px; }

/* 10-nav.css — sticky top bar: hub brand left, every product (icon + name) right.
   Why: one-click jump between all Towel sites; current site gets a pale accent pill.
   Icon strip (like a Dock): only the current product shows its name, so 10+ apps fit one row;
   other names come from the title tooltip. Still wraps rather than scroll sideways if it ever overflows.
   NEVER DELETE COMMENTS — explain every non-obvious line.
   Update comments with the code; do not strip them. */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .86);
       backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
       border-bottom: 1px solid var(--line); }        /* translucent layer = depth without a heavy bar */
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; justify-content: flex-end; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px;
            font-size: 14px; color: var(--muted); }
.nav-link img, .nav-link .mark { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; flex: none; }
.nav-link span { display: none; }                     /* hidden name: tooltip carries it */
.nav-link[aria-current] span { display: inline; padding-right: 4px; }   /* current site names itself */
.nav-link:hover { background: var(--soft); color: var(--ink); }
.nav-link[aria-current] { background: var(--accent-tint); color: var(--ink); font-weight: 600; }

/* 20-hero.css — full-width band washed in the product colour; centered icon, title, downloads.
   Why: replaces the old narrow left-aligned hero that left most of the page empty.
   NEVER DELETE COMMENTS — explain every non-obvious line.
   Update comments with the code; do not strip them. */
.hero { background: linear-gradient(180deg, var(--accent-tint) 0%, #fff 100%);   /* tint fades into page */
        border-bottom: 1px solid var(--line); }
.hero-in { padding-top: 80px; padding-bottom: 64px; text-align: center; }
.hero-icon { display: flex; justify-content: center; margin-bottom: 24px; }
.hero-icon img { width: 144px; height: 144px; border-radius: 32px;   /* rounds icons shipped as full squares (God) */
                 filter: drop-shadow(0 16px 32px color-mix(in srgb, var(--accent) 35%, transparent)); }  /* coloured glow */
.hero-icon .mark { width: 144px; height: 144px; border-radius: 32px; font-size: 64px; }
h1 { font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; }
.tagline { font-size: 24px; color: var(--ink); font-weight: 500; margin: 0 0 16px; }
.lede { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto; }   /* ~70 chars per line */
.stat { display: inline-block; margin: 32px 0 0; padding: 8px 16px; border-radius: 999px;
        background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--accent-ink); }

/* 30-downloads.css — download cards inside the hero: app icon, label, version · size, Download pill.
   Why: replaces the single lone button; every uploaded zip gets a full card with its facts.
   NEVER DELETE COMMENTS — explain every non-obvious line.
   Update comments with the code; do not strip them. */
.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.dl { display: flex; align-items: center; gap: 16px; min-width: 360px; padding: 16px 16px 16px 20px;
      background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-align: left;
      box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);   /* subtle lift off the tint */
      transition: transform .15s ease, border-color .15s ease; }
.dl img, .dl .mark { width: 48px; height: 48px; border-radius: 12px; font-size: 22px; flex: none; }
.dl-text { display: flex; flex-direction: column; }
.dl-text strong { font-size: 16px; }
.dl-text small { font-size: 13px; color: var(--muted); }
.dl-btn { margin-left: auto; padding: 10px 20px; min-height: 44px; display: inline-flex; align-items: center;
          border-radius: 999px; background: var(--accent-ink); color: #fff; font-weight: 600; }  /* 44pt target */
a.dl:hover { transform: translateY(-2px); border-color: var(--accent); }
.dl-soon { opacity: .75; box-shadow: none; }          /* not clickable: no lift, no button */

/* 40-features.css — feature tiles with an accent check circle, plus the "First launch" notice box.
   NEVER DELETE COMMENTS — explain every non-obvious line.
   Update comments with the code; do not strip them. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { display: flex; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--line);
           border-radius: 16px; background: #fff; }
.feature p { margin: 0; font-weight: 500; }
.check { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
         justify-content: center; background: var(--accent-tint); color: var(--accent-ink); }
.check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2;
             stroke-linecap: round; stroke-linejoin: round; }   /* stroke-only tick takes the accent */
.notice { padding: 24px; border-radius: 16px; background: var(--soft); }
.notice h3 { margin: 0 0 8px; font-size: 17px; }
.notice p { margin: 0; color: var(--muted); font-size: 15px; }

/* 50-cards.css — product cards (hub grid + "More Towel software"): icon, name, tagline, status chip.
   NEVER DELETE COMMENTS — explain every non-obvious line.
   Update comments with the code; do not strip them. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 20px;
        background: #fff; color: var(--ink);   /* no colour strip: it bent around the rounded corners */
        transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .08); }
.card img, .card .mark { width: 64px; height: 64px; border-radius: 14px; font-size: 28px; flex: none; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.chip { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px;
        font-size: 12px; font-weight: 600; }
.chip-live { background: var(--accent-tint); color: var(--accent-ink); }
.chip-soon { background: var(--soft); color: var(--muted); }

/* 90-responsive.css — phone/narrow-window overrides; last file so it wins the cascade.
   NEVER DELETE COMMENTS — explain every non-obvious line.
   Update comments with the code; do not strip them. */
@media (max-width: 720px) {
  .nav-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links { margin-left: 0; justify-content: flex-start; }
  .hero-in { padding-top: 48px; padding-bottom: 40px; }
  h1 { font-size: 44px; }
  .tagline { font-size: 20px; }
  .dl { min-width: 0; width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .foot-in { flex-direction: column; }
}
