/* SuperClean site styles. System font stack, no external requests, light and dark themes. */

:root {
  color-scheme: light dark;
  --bg: #F9F9FF;
  --bg-2: #F0F3FF;
  --card: #FFFFFF;
  --ink: #111C2D;
  --ink-2: #424654;
  --line: #DCE2F0;
  --line-strong: #C2C6D7;
  --brand: #0053CD;
  --focus: #0053CD;
  --wash: #DAE2FF;
  --btn-bg: #0053CD;
  --btn-ink: #FFFFFF;
  --badge-bg: #111C2D;
  --badge-ink: #FFFFFF;
  --badge-shadow: 0 10px 24px -12px rgba(17, 28, 45, .5);
  --frame: #111C2D;
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 28px 56px -18px rgba(15, 23, 42, .32);
  --tone-blue-bg: #DAE2FF;  --tone-blue-ink: #0040A1;
  --tone-green-bg: #6CF8BB; --tone-green-ink: #00714D;
  --tone-amber-bg: #FFDDB8; --tone-amber-ink: #653E00;
  --tone-slate-bg: #E7EEFF; --tone-slate-ink: #424654;
  --tick: #00714D;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --bg-2: #0F1A2C;
    --card: #131F34;
    --ink: #E7EDFA;
    --ink-2: #AEB9CE;
    --line: #22314A;
    --line-strong: #3A4A66;
    --brand: #8DB2FF;
    --focus: #8DB2FF;
    --wash: #1B2D55;
    --btn-bg: #8DB2FF;
    --btn-ink: #0B1220;
    --badge-bg: #E7EDFA;
    --badge-ink: #0B1220;
    --badge-shadow: none;
    --frame: #03060C;
    --shadow: none;
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .06), 0 28px 56px -18px rgba(0, 0, 0, .6);
    --tone-blue-bg: #1B2D55;  --tone-blue-ink: #B2C5FF;
    --tone-green-bg: #0E3B2B; --tone-green-ink: #6CF8BB;
    --tone-amber-bg: #3F2A0E; --tone-amber-ink: #FFB95F;
    --tone-slate-bg: #1E2A41; --tone-slate-ink: #C2C6D7;
    --tick: #6CF8BB;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

/* Skip link: hidden by transform, no shadow until focused */
.skip {
  position: absolute; left: 12px; top: 12px; z-index: 20;
  transform: translateY(-200%);
  background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { transform: none; box-shadow: var(--shadow-lg); }

/* Standalone text links: 44px touch target */
.text-link { display: inline-flex; align-items: center; min-height: 44px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }

/* Header: brand + Support below 640px; download button from 640px; anchor links from 880px */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em;
}
.brand img { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.head-right { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav .wide { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .85;
  background: radial-gradient(60% 55% at 85% 0%, var(--wash) 0%, transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow {
  margin: 0 0 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand);
}
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem); letter-spacing: -.03em; line-height: 1.08; }
.lede { margin: 20px 0 0; font-size: 1.0625rem; color: var(--ink-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.actions.center { justify-content: center; }
.fine { margin: 16px 0 0; font-size: .9375rem; color: var(--ink-2); }

/* Download button: text-only pill */
.gp-badge {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  padding: 0 26px; border-radius: 14px;
  background: var(--badge-bg); color: var(--badge-ink); box-shadow: var(--badge-shadow);
  text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.005em;
}
.gp-badge:hover { filter: brightness(1.08); text-decoration: none; }
.gp-badge.sm { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: .9375rem; box-shadow: none; white-space: nowrap; }
.gp-badge.head-cta { display: none; }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: 14px;
  background: var(--card); color: var(--brand); border: 1px solid var(--line-strong);
  text-decoration: none; font-weight: 600;
}
.btn-ghost:hover { background: var(--bg-2); text-decoration: none; }
.btn-primary {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 24px; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }

/* Phone frame; screenshots are 540x1168 / 1080x2337 */
.phone { margin: 0; width: min(100%, 300px); justify-self: center; }
.phone-frame { background: var(--frame); padding: 10px; border-radius: 40px; box-shadow: var(--shadow-lg); }
.phone-frame img { width: 100%; aspect-ratio: 540 / 1168; object-fit: cover; border-radius: 30px; background: var(--bg-2); }
.phone-frame.sm { padding: 8px; border-radius: 32px; }
.phone-frame.sm img { border-radius: 24px; }

/* Sections */
.band { padding: 64px 0; }
.band.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; }
.section-head h2, .group-h { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }

/* Feature cards */
.tool-group + .tool-group { margin-top: 56px; }
.tools { display: grid; gap: 14px; list-style: none; margin: 28px 0 0; padding: 0; grid-template-columns: 1fr; }
.tool {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow);
}
.tool h3 { font-size: 1.125rem; margin: 18px 0 6px; }
.tool p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tone-blue { background: var(--tone-blue-bg); color: var(--tone-blue-ink); }
.tone-green { background: var(--tone-green-bg); color: var(--tone-green-ink); }
.tone-amber { background: var(--tone-amber-bg); color: var(--tone-amber-ink); }
.tone-slate { background: var(--tone-slate-bg); color: var(--tone-slate-ink); }

/* Gallery: horizontal scroll-snap below 880px, 3-column grid above */
.shots {
  display: flex; gap: 16px; list-style: none; margin: 32px -20px 0; padding: 6px 20px 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.shots:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 16px; }
.shots li { flex: 0 0 min(72vw, 260px); scroll-snap-align: start; margin: 0; }
.shots figure { margin: 0; }
.shots .phone-frame { max-width: 260px; margin: 0 auto; }
.shots figcaption { margin-top: 14px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }

/* Privacy */
.split { display: grid; gap: 32px; align-items: start; }
.split p { margin: 14px 0 0; color: var(--ink-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--tick); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* How it works */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow);
}
.steps .n {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tone-blue-bg); color: var(--tone-blue-ink); font-weight: 700; font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.125rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Bottom CTA */
.cta-band { padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
.cta-band .actions { margin-top: 28px; }

/* Footer: publisher + links on top, legal line full width below */
.site-foot { margin-top: auto; background: var(--card); border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-grid { display: grid; gap: 18px; }
.site-foot p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.foot-legal { padding-top: 18px; border-top: 1px solid var(--line); }
.foot-legal p { font-size: .8125rem; }
.foot-legal p + p { margin-top: 4px; }

/* Support page */
.page-head { padding: 48px 0 0; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.03em; }
.intro { margin: 14px 0 0; color: var(--ink-2); }
.faq { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-2); }
.faq .a p { margin: 0 0 8px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a ul { margin: 0 0 8px; padding-left: 1.25rem; }
.faq .a li { margin: 6px 0; }
.faq .a strong { color: var(--ink); }
.contact-card {
  margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.5rem; }
.contact-card p { margin: 10px 0 0; color: var(--ink-2); }
.contact-card .mail { font-weight: 700; }
.contact-card ul { margin: 10px 0 0; padding-left: 1.25rem; color: var(--ink-2); }
.contact-card li { margin: 4px 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.doc-end { padding-bottom: 64px; }

/* 404 */
.nf { padding: 88px 20px 96px; text-align: center; }
.nf .code { margin: 0; font-size: clamp(4rem, 14vw, 7rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--brand); }
.nf h1 { margin-top: 14px; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem); }
.nf p { margin: 12px auto 0; color: var(--ink-2); max-width: 32em; }

/* Breakpoints: 640 / 768 / 880 / 1024; content width 1120 */
@media (min-width: 640px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-badge.head-cta { display: inline-flex; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  /* Two columns: an odd last card spans the full row */
  .tools > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .shots li { flex-basis: 280px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { flex-direction: column; }
}
@media (min-width: 880px) {
  .nav .wide { display: inline-flex; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .phone { width: min(100%, 340px); }
  .shots {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px;
    overflow: visible; margin: 40px 0 0; padding: 0; scroll-snap-type: none;
  }
  .shots li { flex: none; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; column-gap: 40px; }
  .foot-legal { grid-column: 1 / -1; }
  .band { padding: 96px 0; }
  .cta-band { padding: 104px 0; }
}
@media (min-width: 1024px) {
  /* Six-track grid: three cards per row; a trailing pair of cards splits the row in half */
  .tools { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tools > li { grid-column: span 2; }
  .tools > li:nth-last-child(2):nth-child(3n+1),
  .tools > li:last-child:nth-child(3n+2) { grid-column: span 3; }
}
