/* Kuardio website. One stylesheet, no build step, no third-party code. */
:root {
  color-scheme: light dark;
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --ink: #15171C;
  --ink2: #50555D;
  --line: #E2E0DA;
  --accent: #0A6B5E;
  --accent-bright: #13A08B;
  --accent-ink: #FFFFFF;
  --hero: #07110F;
  --hero-ink: #F2F5F4;
  --hero-ink2: #A9B8B4;
  --radius: 22px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D0F;
    --surface: #16191C;
    --ink: #F2F2EF;
    --ink2: #B1B7BE;
    --line: #262A2F;
    --accent: #4FD1BC;
    --accent-bright: #4FD1BC;
    --accent-ink: #04201B;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-hero { background: color-mix(in srgb, var(--hero) 78%, transparent); border-color: #ffffff14; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.on-hero .brand, .on-hero nav a { color: var(--hero-ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
.on-hero nav a:hover { color: #fff; }
@media (max-width: 560px) { nav { gap: 14px; } nav a.optional { display: none; } }

/* Hero */
.hero {
  background:
    radial-gradient(900px 520px at 78% 40%, #13A08B55, transparent 60%),
    radial-gradient(700px 480px at 10% 110%, #0A6B5E66, transparent 60%),
    var(--hero);
  color: var(--hero-ink);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 0; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; }
.hero h1 span { color: #4FD1BC; }
.hero p.lead { color: var(--hero-ink2); font-size: 19px; margin: 20px 0 30px; max-width: 30em; }
.hero .copy { padding-bottom: 72px; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 260px; }
.hero-phones .phone:first-child { left: 4%; top: 90px; transform: rotate(-6deg); }
.hero-phones .phone:last-child { right: 4%; top: 20px; z-index: 1; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero .copy { padding-bottom: 0; }
  .hero-phones { height: 400px; }
  .hero-phones .phone { width: min(190px, 46vw); }
  .hero-phones .phone:first-child { left: max(4px, calc(50% - 185px)); top: 60px; }
  .hero-phones .phone:last-child { right: max(4px, calc(50% - 185px)); }
}

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid #ffffff55; border-radius: 12px;
  padding: 9px 18px 9px 14px; text-decoration: none; line-height: 1.1;
}
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge small { display: block; font-size: 11px; opacity: .85; }
.store-badge strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 600; color: var(--hero-ink); border: 1px solid #ffffff30; border-radius: 99px; padding: 5px 12px; }

/* Phone frame around a screenshot */
.phone {
  border-radius: 44px; padding: 9px; background: #1B1D20;
  box-shadow: 0 0 0 1.5px #3A3D42, 0 30px 60px -20px #000c, 0 18px 36px -18px #0008;
}
.phone img { border-radius: 36px; width: 100%; height: auto; }

/* Sections */
section.block { padding: 96px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { color: var(--ink2); font-size: 19px; margin: 12px 0 0; }
.section-head::after { content: ""; display: block; width: 34px; height: 2px; background: var(--ink); opacity: .6; margin: 26px auto 0; }

/* Features around a phone */
.feature-grid { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 48px; align-items: center; }
.feature-col { display: grid; gap: 44px; }
.feature-col.left { text-align: right; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.feature-col.left .feature { grid-template-columns: 1fr 56px; }
.feature-col.left .feature .icon { order: 2; }
.feature h3 { font-size: 19px; margin: 4px 0 6px; }
.feature p { margin: 0; color: var(--ink2); font-size: 16px; }
.icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .phone { max-width: 280px; margin: 0 auto; order: -1; }
  .feature-col.left { text-align: left; }
  .feature-col.left .feature { grid-template-columns: 56px 1fr; }
  .feature-col.left .feature .icon { order: 0; }
}

/* Alternating story rows */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.story + .story { border-top: 1px solid var(--line); }
.story .phone { max-width: 290px; margin: 0 auto; }
.story h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 18px; }
.story p { color: var(--ink2); font-size: 18px; margin: 0 0 14px; }
.story.flip .text { order: 2; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; gap: 32px; } .story.flip .text { order: 0; } }

/* Screenshot strip */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px 36px;
  scrollbar-width: thin;
}
.shots figure { margin: 0; scroll-snap-align: center; }
.shots figcaption { text-align: center; color: var(--ink2); font-size: 15px; margin-top: 14px; }
@media (min-width: 1200px) { .shots { justify-content: center; } }

/* Donation band */
.band { background: #0A6B5E; color: #FFFFFF; padding: 88px 0; }
.band .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.band h2 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; }
.band p { font-size: 19px; margin: 0 0 14px; opacity: .92; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.tier { border: 1px solid #FFFFFF55; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.tier strong { display: block; font-size: 16px; }
@media (max-width: 820px) { .band .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 26px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--ink2); }
.faq details > div p { margin: 0 0 10px; }

/* Documents (support, privacy, terms, regulatory) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 800; margin-bottom: 8px; }
.doc .meta { color: var(--ink2); font-size: 15px; margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink2); }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; }
.doc .card p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink2); }
.doc th { color: var(--ink); font-weight: 600; }
.doc .table-scroll { overflow-x: auto; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border-radius: 12px; padding: 12px 22px;
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 5px 13px; font-size: 14px; text-decoration: none; color: var(--ink2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink2); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.site-footer nav { flex-wrap: wrap; justify-content: flex-end; }
.site-footer p { margin: 8px 0 0; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer nav { justify-content: flex-start; } }
