/* The website kit's one stylesheet (~/Personal/Shared/website-kit). No web fonts, no external resources.
   Structure from Todolix's site (2026-10), made shared from Kraftsam's (2026-11-08). The colours come from the app's
   site.json and are written into the block below by site.py; the rest is the same for every app. */

:root {
  --action: #C6F135;
  --on-action: #102E5A;
  --mark: #587500;
  --heading: #114D97;
  --ink: #0B1A32;
  --secondary-text: #4B596E;
  --canvas: #F3F6FA;
  --card: #FFFFFF;
  --field: #E5EBF4;
  --line: #D9E1EC;
  --shadow: 0 1px 2px rgba(11, 26, 50, .05), 0 10px 30px rgba(11, 26, 50, .08);
  --icon-shadow: rgba(16, 46, 90, .22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --mark: #C6F135;
    --heading: #FFFFFF;
    --ink: #FFFFFF;
    --secondary-text: #ACC0DA;
    --canvas: #102E5A;
    --card: #193C6F;
    --field: #244C88;
    --line: #244C88;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

:root {
  --radius: 22px;
  --display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 6px; }

/* SF Pro Expanded for headings, as the app's Font.display: heavy and wide. */
h1, h2, h3, .brand, .store, .eyebrow, .chip b {
  font-family: var(--display);
  font-stretch: expanded;
}
h1, h2, h3 {
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

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

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--heading); text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.header-nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.header-nav a { color: var(--secondary-text); text-decoration: none; }
.header-nav a:hover { color: var(--ink); }
.lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 5px 12px; border-radius: 999px; background: var(--field);
  color: var(--ink) !important; font-size: .85rem; font-weight: 600;
}

/* Hero */
.hero { text-align: center; padding: 48px 0 24px; }
.hero-icon { width: 128px; height: 128px; margin: 0 auto 28px; filter: drop-shadow(0 12px 24px var(--icon-shadow)); }
.hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--secondary-text); max-width: 36ch; margin: 0 auto 28px; }

/* The main action: the only place the accent fills something. */
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 24px; border-radius: 999px;
  background: var(--action); color: var(--on-action);
  font-weight: 750; font-size: 1rem; text-decoration: none;
}
.store svg { width: 18px; height: 18px; flex: none; }
a.store:hover { filter: brightness(.96); }
.store-note { font-size: .92rem; color: var(--secondary-text); margin-top: 12px; }
.independent { font-size: .9rem; color: var(--secondary-text); max-width: 44ch; margin: 18px auto 0; }

/* Phone frame for screenshots, for when there are some. */
.hero-shot { margin: 48px auto 0; max-width: 300px; }
.phone {
  position: relative; border-radius: 38px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.phone img { width: 100%; }
.phone::after { content: ""; position: absolute; left: 34.3%; width: 31.4%; top: 1.6%; aspect-ratio: 126 / 37; border-radius: 999px; background: #000; }

/* In a feature row, a little narrower than its column (Kraftsam, 2026-11-15); the Watch in its own frame. */
.feature .phone { max-width: 270px; width: 100%; justify-self: center; }
.watch {
  max-width: 220px; width: 100%; justify-self: center; border-radius: 34%/28%; overflow: hidden;
  border: 12px solid #111; background: #000; box-shadow: var(--shadow);
}
.watch img { width: 100%; display: block; }

/* Feature rows */
.features { padding-top: 40px; padding-bottom: 24px; }
.feature {
  display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.feature.flip { grid-template-columns: 320px 1fr; }
.feature.flip .feature-text { order: 2; }
.feature-text { max-width: 30rem; }
.feature-text p { color: var(--secondary-text); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mark); margin-bottom: 10px;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 56px 0; border-top: 1px solid var(--line); }
.card { background: var(--card); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.card p { color: var(--secondary-text); margin: 0; }
.card .dot {
  width: 40px; height: 40px; border-radius: 12px; background: var(--field); color: var(--mark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .dot svg { width: 22px; height: 22px; }

/* Example values in a feature's card, in the app's words: weights without a unit, times in seconds. */
.chip {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 16px; border-radius: 14px; background: var(--field); margin: 0 0 10px; color: var(--ink);
}
.chip:last-child { margin-bottom: 0; }
.chip span { color: var(--secondary-text); }
.chip b { font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; }

/* Closing call to action */
.closing { text-align: center; padding: 72px 0 88px; border-top: 1px solid var(--line); }
.closing img { width: 84px; height: 84px; margin: 0 auto 22px; }
.closing p { color: var(--secondary-text); max-width: 36ch; margin: 0 auto 26px; }

/* Text pages (privacy, legal notice, support) */
.page { padding: 32px 0 80px; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.page h2 { font-size: 1.3rem; margin-top: 2.2em; }
.page h3 { font-size: 1.05rem; margin-top: 1.6em; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 1.2em; }
.page li { margin: .35em 0; }
.page .meta { color: var(--secondary-text); }
.page address { font-style: normal; margin: 0 0 1em; }
.page ol { padding-left: 1.4em; }
.toc { background: var(--field); border-radius: 16px; padding: 18px 22px; margin: 24px 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin: .2em 0; break-inside: avoid; }

.faq details { background: var(--card); border-radius: 16px; padding: 4px 20px; margin: 10px 0; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; padding: 14px 0; min-height: 44px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mark); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--secondary-text); }

.contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0 8px;
}
.contact p { margin: 0; flex: 1 1 260px; }
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  background: var(--action); color: var(--on-action); font-weight: 700; text-decoration: none;
}
.button:hover { filter: brightness(.96); }

/* 404 */
.notfound { text-align: center; padding: 80px 0 120px; }
.notfound img { width: 96px; height: 96px; margin: 0 auto 24px; }
.notfound p { color: var(--secondary-text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .92rem; color: var(--secondary-text); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--secondary-text); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Small screens */
@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature.flip .feature-text { order: 0; }
  .feature .card { max-width: 420px; width: 100%; }
  .cards { grid-template-columns: 1fr; gap: 14px; padding: 44px 0; }
  .toc ol { columns: 1; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 28px; }
  .hero-icon { width: 104px; height: 104px; }
  .lead { font-size: 1.08rem; }
  .header-nav { gap: 12px; }
  .header-nav .optional { display: none; }
  .hero-shot { max-width: 250px; }
  .phone { border-radius: 30px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
