/* SottoType marketing site — design tokens & base styles.
 *
 * Light-mode only (v1). The aesthetic target is the Linear / Things axis:
 * pure white surfaces, generous whitespace, hairline borders, shadows
 * reserved for hover states, and one disciplined accent color (deep teal).
 * No CSS framework; everything below is hand-tuned for the marketing site.
 */

:root {
  --bg: #FFFFFF;
  --bg-alt: #FAFBFC;
  --surface: #FFFFFF;
  --ink: #0A0E14;
  --ink-soft: #2C313B;
  --muted: #5B6270;
  --muted-light: #8B92A0;
  --line: #E8EAEE;
  --line-strong: #D9DEE7;
  --brand: #0F766E;
  --brand-hover: #115E5A;
  --brand-soft: #F0FDFA;
  --code-bg: #F3F4F6;

  --max-content: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --section-gap: clamp(80px, 10vw, 128px);
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 20, 25, 0.06), 0 1px 3px rgba(15, 20, 25, 0.04);

  --header-height: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(15, 118, 110, 0.18);
  color: var(--brand-hover);
}

/* === Layout === */

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

main { padding-bottom: var(--section-gap); }

section { padding-top: var(--section-gap); }

section.alt {
  background: var(--bg-alt);
  padding-bottom: var(--section-gap);
  margin-top: var(--section-gap);
}

section.alt + section { padding-top: var(--section-gap); }

/* === Header / Nav === */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-height);
}

.brand {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav a:not(.brand):not(.button) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.nav a:not(.brand):not(.button):hover { color: var(--ink); }

.lang-switch {
  margin-left: 4px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-light);
}

.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a.active { color: var(--ink); font-weight: 600; }
.lang-switch span[aria-hidden] { color: var(--muted-light); font-size: 11px; }

/* === Buttons === */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 80ms var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.button:active { transform: scale(0.97); }

.button .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.button.large {
  padding: 14px 22px;
  height: 48px;
  font-size: 15px;
  border-radius: 10px;
}

.button.primary {
  background: var(--ink);
  color: #FFF;
  border-color: var(--ink);
}

.button.primary:hover { background: #1B2330; }

.button.brand {
  background: var(--brand);
  color: #FFF;
  border-color: var(--brand);
}

.button.brand:hover { background: var(--brand-hover); }

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.secondary:hover { border-color: var(--ink); }

/* === Hero === */

.hero {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 700;
  max-width: 820px;
  color: var(--ink);
}

.hero .lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.5;
}

.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero .privacy-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero .privacy-note .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--muted-light);
}

.hero .system {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-light);
}

.hero-visual {
  margin-top: clamp(48px, 6vw, 80px);
  /* Stitch's lower-opacity gradient reads as "premium calm" rather than
     "branded splash". Keep the tint but at ~30% strength. */
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.05) 0%, var(--surface) 60%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 320px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.hero-visual .demo-key {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  color: var(--brand);
  box-shadow: var(--shadow-md);
}

/* === Section title === */

.section-title {
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  max-width: 720px;
}

.section-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 40px;
  line-height: 1.55;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}

/* === Before / After === */

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ba-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 200ms var(--ease);
}

.ba-card .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  margin-bottom: 14px;
}

.ba-card.after .label { color: var(--brand); }

.ba-card .text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.ba-card.before .text { color: var(--muted); font-style: italic; font-size: 17px; }

.ba-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) { .ba-grid { grid-template-columns: 1fr; } }

/* === Apps grid === */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.app-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }

.app-card .icon {
  width: 28px;
  height: 28px;
  background: var(--brand-soft);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}

/* === Modes (compare) === */

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 200ms var(--ease);
}

.mode-card h3 {
  margin: 0 0 20px;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mode-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.mode-row:last-child { border-bottom: none; }
.mode-row .key { color: var(--muted); }
.mode-row .val { font-weight: 500; color: var(--ink); }
.mode-row .val.free { color: var(--brand); font-weight: 600; }

.modes-pitch {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--brand-soft);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  border: 1px solid #C9F2EA;
}

@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }

/* === Features === */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge.roadmap {
  background: var(--code-bg);
  color: var(--muted);
}

.feature-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.feature-card .roadmap-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-light);
  font-style: italic;
}

/* === Privacy === */

.privacy-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.privacy-block {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease);
}

.privacy-block h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.privacy-block p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* === Pricing === */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--brand);
  border-width: 1.5px;
  box-shadow: var(--shadow-md);
}

.price-card.featured::before {
  content: "Recommended";
  position: absolute;
  top: -1px;
  right: 24px;
  transform: translateY(-50%);
  background: var(--brand);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card .tier {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.price-card .amount {
  font-size: 44px;
  font-weight: 700;
  margin: 8px 0 4px;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.price-card .amount-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.price-card li {
  padding: 8px 0;
  font-size: 15px;
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.price-card li:last-child { border-bottom: none; }

.price-card li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-refund {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

/* === FAQ === */

.faq { max-width: 760px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* === Footer === */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--section-gap);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.footer-row .footer-brand {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-row a { color: var(--muted); text-decoration: none; transition: color 160ms var(--ease); }
.footer-row a:hover { color: var(--ink); }

.footer-row .copyright { margin-left: auto; font-size: 13px; color: var(--muted-light); }

/* === Sub-page text content === */

.prose h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
  font-weight: 700;
  color: var(--ink);
}

.prose h2 {
  font-size: 20px;
  margin: 32px 0 8px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

.prose p, .prose li {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 16px;
}

.prose code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose a { color: var(--brand); }

.prose ul { padding-left: 24px; }

/* === Focus states === */

a:focus-visible, button:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
