/* Sympli marketing site. Tokens and fonts come from assets/brand.css.
   Flat color only: no gradients, glows, glass, shadows or hairlines. */

/* Themed tokens are written once as light-dark(light, dark), which picks by the
   used color-scheme. By default that follows the system setting; the header
   toggle (theme.js sets data-theme on <html>) pins color-scheme to one side.
   The role tokens (--bg, --text, --primary, --on-primary) are restated here
   because assets/brand.css, which is synced from brand/ and not edited here,
   sets them only for the system scheme. */
:root {
  color-scheme: light dark;
  --bg: light-dark(var(--paper), var(--dark-paper));
  --text: light-dark(var(--ink), var(--paper));
  --primary: light-dark(var(--teal), var(--teal-light));
  --on-primary: light-dark(#FFFFFF, var(--ink));
  --text-soft: light-dark(#4B4452, #CFC9D3);     /* body copy on paper, about 9:1 */
  --tile-neutral: light-dark(#F0EDE8, #221F26);
  --primary-hover: light-dark(#084F4F, #86E3DE);
  --bezel: light-dark(var(--ink), #35313B);      /* phone frame around screenshots */
  --on-primary-soft: #FFFFFF;
  --radius-big: 40px;
  --wrap: 1120px;
  --gutter: 20px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Inline icons that exist in a light and a dark version (the toggle): hide the
   one that does not match the effective theme. Logos and screenshots use
   <picture> instead (see theme.js), so only the matching file is downloaded. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
}
@media not (prefers-color-scheme: dark) {
  :root:not([data-theme="dark"]) .only-dark { display: none; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="light"] .only-dark { display: none; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-size: 1.125rem; line-height: 1.55; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.band :focus-visible, .tile--primary :focus-visible { outline-color: var(--on-primary); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 10;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--on-primary); font-weight: 700;
}
.skip:focus { top: 12px; }

/* Buttons build on .btn from brand.css */
.btn { min-height: 48px; text-align: center; transition: background-color .15s; }
.btn:hover { background: var(--primary-hover); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--yellow); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #3A3342; }

/* Static "coming soon" label, shaped like a button but not a link */
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-pill); background: var(--yellow); color: var(--ink); font: 700 1rem var(--font);
}

/* Header */
.site-header { padding: 16px 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 32px; width: auto; }
.nav { display: none; gap: 8px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); color: var(--text); font-weight: 700; text-decoration: none;
}
.nav a:hover { background: var(--tile-neutral); }

/* Light/dark toggle: icon button, shown by theme.js */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--tile-neutral); color: var(--text); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--primary); color: var(--on-primary); }
.theme-toggle svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Hero */
.hero { padding: 24px 0 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
h1 { font-size: clamp(2.25rem, 8.5vw, 4.25rem); line-height: 1.08; letter-spacing: -0.01em; }
.lead { margin-top: 20px; font-size: 1.25rem; color: var(--text-soft); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }

.hero-art {
  position: relative; width: 100%; max-width: 440px; margin: 0 auto;
  aspect-ratio: 1; border-radius: var(--radius-big); background: var(--teal); overflow: hidden;
}
/* Phone sits low in the tile and is cropped by it; the discs overlap its edges */
.hero-shot { position: absolute; left: 50%; top: 13%; width: 54%; height: auto; transform: translateX(-50%); }

.disc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  color: var(--ink); font-weight: 700; font-size: 1.5rem; line-height: 1;
}
.disc--mint { background: var(--mint); }
.disc--yellow { background: var(--yellow); }
.disc--coral { background: var(--coral); }
.disc--paper { background: var(--paper); }
.hero-art .disc { position: absolute; z-index: 1; width: 22%; height: 22%; font-size: clamp(1.5rem, 6vw, 2.25rem); }
.d1 { left: 7%; top: 8%; }
.d2 { right: 7%; top: 22%; }
.d3 { left: 10%; bottom: 8%; }

/* Sections */
.section { padding: 48px 0; scroll-margin-top: 8px; }
h2 { font-size: clamp(1.875rem, 6vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.375rem; line-height: 1.2; }
.section-lead { margin-top: 12px; font-size: 1.25rem; color: var(--text-soft); max-width: 38rem; }
.story { max-width: 42rem; }
.story p { margin-top: 16px; font-size: 1.125rem; }

/* How it works */
.steps { display: grid; gap: 16px; margin-top: 32px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px; border-radius: var(--radius-tile); color: var(--on-bright);
}
.tile p { color: inherit; }
.tile--yellow { background: var(--yellow); }
.tile--coral { background: var(--coral); }
.tile--primary { background: var(--primary); color: var(--on-primary); }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1.25rem;
}
.tile--primary .num { background: var(--paper); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.chips li {
  padding: 6px 16px; border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: 1rem;
}
.chips .disc { width: 44px; height: 44px; font-size: 1.125rem; }

/* Screenshots */
.hero-shot, .shots img {
  border: 6px solid var(--bezel); border-radius: 12% / 5.5%; width: 100%; height: auto;
}
.hero-shot { width: 54%; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; margin-top: 32px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 12px; text-align: center; font-weight: 700; font-size: 1rem; }

.report { display: grid; gap: 32px; align-items: center; margin-top: 56px; }
.report-art { padding: 24px; border-radius: var(--radius-big); background: var(--tile-neutral); }
.report-art img { width: 100%; max-width: 460px; height: auto; margin: 0 auto; border-radius: 8px; }
.report-copy p { margin-top: 12px; color: var(--text-soft); max-width: 32rem; }
.report-copy h3 { font-size: 1.75rem; }

/* Privacy */
.band {
  display: grid; gap: 32px; padding: 32px 24px; border-radius: var(--radius-big);
  background: var(--primary); color: var(--on-primary);
}
.band .section-lead { color: inherit; margin-bottom: 24px; }
.points { display: grid; gap: 24px; align-content: start; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points p { margin-top: 4px; }
.dot { flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: var(--yellow); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; margin-top: 28px; }
details { border-radius: var(--radius-tile); background: var(--tile-neutral); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 12px 24px; cursor: pointer;
  border-radius: var(--radius-tile); font-weight: 700; font-size: 1.1875rem; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary svg {
  flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 50%;
  background: var(--primary); transition: transform .15s;
}
summary svg path { fill: none; stroke: var(--on-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
details[open] summary svg { transform: rotate(180deg); }
details p { padding: 0 24px 24px; color: var(--text-soft); max-width: 40rem; }

/* Closing CTA */
.closing { align-items: flex-start; gap: 16px; padding: 36px 28px; border-radius: var(--radius-big); }
.closing h2 { max-width: 22ch; }
.closing .btn { margin-top: 8px; }

/* Footer */
.site-footer { padding: 40px 0 56px; }
.foot { display: grid; gap: 20px; justify-items: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.fine { color: var(--text-soft); font-size: 1rem; max-width: 40rem; }

/* Long-form pages (privacy policy) */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin-top: 40px; margin-bottom: 12px; }
.prose h3 { margin-top: 24px; margin-bottom: 8px; }
.prose p, .prose ul { margin-top: 12px; }
.prose .lead { margin-top: 24px; }
.prose .meta { color: var(--text-soft); font-weight: 700; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose li + li { margin-top: 8px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 16px; }
.prose h2 { font-size: clamp(1.5rem, 4.5vw, 1.875rem); }
.prose h3 { font-size: 1.1875rem; }
.prose .lead { max-width: none; }

/* Summary box and table of contents */
.prose .summary, .prose .toc {
  margin-top: 32px; padding: 24px 28px; border-radius: var(--radius-tile); background: var(--tile-neutral);
}
.prose .summary h2, .prose .toc h2 { margin-top: 0; font-size: 1.25rem; }
.prose .summary p { color: var(--text-soft); font-size: 1rem; }
.prose .toc ol { margin-top: 12px; padding-left: 1.6em; list-style: decimal; }
.prose .toc li + li { margin-top: 4px; }

/* Wider screens */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .nav { display: flex; }
  .hero { padding: 40px 0 72px; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .shots { gap: 40px 24px; }
  .band { padding: 48px; }
  .closing { padding: 56px; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .hero-art { margin: 0; }
  .shots { grid-template-columns: repeat(4, 1fr); }
  .report { grid-template-columns: 0.9fr 1fr; gap: 56px; }
  .band { grid-template-columns: 1fr 1.1fr; gap: 56px; padding: 64px; }
  .band .section-lead { margin-bottom: 32px; }
}
