/* ── ScoreSifter — teal ink on cream paper ── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Teal palette — locked to the actual app icon gradient */
  --ss-teal-900: #062E22;   /* deepest — backgrounds, high-contrast text on cream */
  --ss-teal-800: #0D6E4A;   /* app icon gradient stop 0 */
  --ss-teal-700: #1D9E75;   /* primary brand */
  --ss-teal-600: #2DCE96;   /* app icon gradient stop 1 */
  --ss-teal-500: #5DCAA5;   /* mid tone — accents */
  --ss-teal-400: #A0FFE0;   /* letter highlight stop */
  --ss-teal-300: #CFF0E1;
  --ss-teal-200: #E1F5EE;   /* wash backgrounds */
  --ss-teal-100: #EEF8F4;   /* alternating section */
  --ss-teal-50:  #F5FBF8;

  /* Ink / paper */
  --ss-ink:      #1A1A18;
  --ss-ink-soft: #2E2E2A;
  --ss-muted:    #4A4A46;
  --ss-muted-2:  #6B6B65;
  --ss-faint:    #8A8A84;
  --ss-rule:     rgba(26, 26, 24, 0.08);
  --ss-rule-soft:rgba(26, 26, 24, 0.04);
  --ss-rule-strong: rgba(26, 26, 24, 0.14);

  --ss-paper:    #FAFAF7;   /* page background */
  --ss-paper-2:  #F5F5F0;   /* slightly deeper */
  --ss-surface:  #FFFFFF;

  /* Beta / launching signals */
  --ss-beta:     #C2820A;   /* warm amber for beta badge */
  --ss-live:     var(--ss-teal-700);  /* shipping now = brand teal */

  /* Effects */
  --ss-shadow-sm: 0 1px 2px rgba(6, 46, 34, 0.05);
  --ss-shadow-md: 0 4px 18px rgba(6, 46, 34, 0.08), 0 1px 4px rgba(6, 46, 34, 0.05);
  --ss-shadow-lg: 0 18px 48px rgba(6, 46, 34, 0.12);
  --ss-shadow-xl: 0 30px 80px rgba(6, 46, 34, 0.14);
  --ss-shadow-teal: 0 10px 28px rgba(13, 110, 74, 0.22);

  /* Typography */
  --ss-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --ss-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --ss-mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Motion */
  --ss-ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ss-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ss-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ss-ink);
  background: var(--ss-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; background: none; border: none; color: inherit; }

::selection { background: var(--ss-teal-200); color: var(--ss-teal-900); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ── Fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ss-ease-out), transform 0.7s var(--ss-ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--ss-rule);
}
.header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transition: opacity 0.15s ease;
}
.logo:hover { opacity: 0.85; }
.logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
  box-shadow: var(--ss-shadow-sm);
}
.logo__name {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ss-ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__link {
  font-size: 14px;
  color: var(--ss-muted);
  position: relative;
  transition: color 0.18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--ss-teal-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ss-ease-out);
}
.nav__link:hover { color: var(--ss-ink); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  background: var(--ss-teal-700);
  border-radius: 9px;
  box-shadow: var(--ss-shadow-sm);
  transition: background 0.18s ease, transform 0.18s var(--ss-ease-out), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.nav__cta:hover {
  background: var(--ss-teal-800);
  transform: translateY(-1px);
  box-shadow: var(--ss-shadow-teal);
}
.nav__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ss-ease-out);
  pointer-events: none;
}
.nav__cta:hover::after { left: 140%; }

/* Mobile nav */
.nav__hamburger {
  display: none;
  padding: 4px;
  color: var(--ss-ink);
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav--open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ss-paper);
    border-bottom: 1px solid var(--ss-rule);
    padding: 16px 32px;
    gap: 14px;
    box-shadow: var(--ss-shadow-md);
  }
  .nav__hamburger { display: block; }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 80px 32px 72px;
  overflow: hidden;
  isolation: isolate;
}
/* Atmospheric teal wash + cream glow — the halo layer */
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto -10%;
  height: 780px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(29, 158, 117, 0.12), transparent 65%),
    radial-gradient(ellipse 50% 45% at 82% 30%, rgba(45, 206, 150, 0.14), transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(225, 245, 238, 0.5), transparent 75%);
  z-index: -2;
  pointer-events: none;
}
/* Fine paper grain — cream paper feel */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(6, 46, 34, 0.025) 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(6, 46, 34, 0.03) 1px, transparent 1.5px),
    radial-gradient(circle at 45% 85%, rgba(6, 46, 34, 0.02) 1px, transparent 1.5px);
  background-size: 4px 4px, 6px 6px, 5px 5px;
  background-position: 0 0, 1px 2px, 2px 1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 85%);
  z-index: -1;
  pointer-events: none;
}
.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__mark {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: var(--ss-shadow-lg);
  margin-bottom: 28px;
  animation: ss-float 6s ease-in-out infinite;
}
@keyframes ss-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ss-teal-800);
  background: var(--ss-teal-200);
  border: 1px solid rgba(29, 158, 117, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero__status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ss-teal-700);
  box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.5);
  animation: ss-pulse 2.4s cubic-bezier(0.66, 0, 0.33, 1) infinite;
}
@keyframes ss-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.48); }
  70%  { box-shadow: 0 0 0 9px rgba(29, 158, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0); }
}

.hero__headline {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ss-ink);
  margin-bottom: 22px;
}
.hero__headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--ss-teal-700);
  background: linear-gradient(135deg, var(--ss-teal-800) 0%, var(--ss-teal-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__sub {
  font-size: 16.5px;
  color: var(--ss-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.hero__count {
  font-size: 13.5px;
  color: var(--ss-muted-2);
  margin-top: 8px;
  line-height: 1.6;
  max-width: 460px;
}
.hero__count strong {
  font-family: var(--ss-serif);
  font-weight: 600;
  color: var(--ss-teal-800);
  font-size: 14px;
  font-style: italic;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  transition: transform 0.22s var(--ss-ease-out), box-shadow 0.22s var(--ss-ease-out), background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn--primary {
  background: var(--ss-teal-700);
  color: #fff;
  box-shadow: var(--ss-shadow-sm);
}
.btn--primary:hover {
  background: var(--ss-teal-800);
  transform: translateY(-2px);
  box-shadow: var(--ss-shadow-teal);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ss-ease-out);
  pointer-events: none;
}
.btn--primary:hover::after { left: 140%; }

.btn--ghost {
  background: transparent;
  color: var(--ss-teal-800);
  border: 1px solid rgba(29, 158, 117, 0.3);
}
.btn--ghost:hover {
  background: var(--ss-teal-50);
  border-color: var(--ss-teal-700);
  transform: translateY(-1px);
}
.btn--large { height: 52px; padding: 0 30px; font-size: 15px; }

/* ── Hero window chrome ── */
.hero__frame {
  border-radius: 14px;
  background: var(--ss-teal-900);
  padding: 10px 10px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), var(--ss-shadow-xl);
  transform: perspective(2400px) rotateX(1.5deg);
  transform-origin: center top;
  transition: transform 0.45s var(--ss-ease-out);
  max-width: 560px;
  margin-left: auto;
}
.hero__frame:hover { transform: perspective(2400px) rotateX(0deg); }
.hero__frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px 10px;
}
.hero__frame-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.hero__frame-dot--r { background: #FF5F57; }
.hero__frame-dot--y { background: #FEBC2E; }
.hero__frame-dot--g { background: #28C840; }
.hero__frame-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-right: 40px;
}
.hero__frame img {
  display: block;
  width: 100%;
  border-radius: 0 0 8px 8px;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__frame { max-width: 100%; margin: 0 auto; }
}

/* ── Section headings & eyebrow ── */
.section {
  padding: 96px 32px;
}
.section--alt { background: var(--ss-surface); }
.section--wash { background: var(--ss-teal-100); }
.section--dark { background: var(--ss-teal-900); color: #fff; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ss-teal-700);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ss-teal-700);
  opacity: 0.7;
}
.section--dark .section-eyebrow { color: var(--ss-teal-500); }
.section--dark .section-eyebrow::before { background: var(--ss-teal-500); }

.section-heading {
  font-family: var(--ss-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ss-ink);
  margin-bottom: 18px;
}
.section--dark .section-heading { color: #fff; }

.section-lede {
  font-size: 16px;
  color: var(--ss-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}
.section--dark .section-lede { color: rgba(255,255,255,0.7); }

/* ── Steps (How it works) ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.step {
  background: var(--ss-surface);
  border: 1px solid var(--ss-rule);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ss-ease-out), transform 0.35s var(--ss-ease-out), border-color 0.35s var(--ss-ease-out);
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ss-teal-700), var(--ss-teal-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ss-ease-out);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--ss-shadow-md);
  border-color: rgba(29, 158, 117, 0.22);
}
.step:hover::before { transform: scaleX(1); }

.step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ss-teal-200);
  color: var(--ss-teal-800);
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.3s ease, transform 0.3s var(--ss-ease-spring);
}
.step:hover .step__num {
  background: var(--ss-teal-700);
  color: #fff;
  transform: scale(1.08);
}
.step__title {
  font-family: var(--ss-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.step__desc {
  font-size: 14px;
  color: var(--ss-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.step__img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(6, 46, 34, 0.08);
  cursor: zoom-in;
  transition: transform 0.35s var(--ss-ease-out), box-shadow 0.35s var(--ss-ease-out);
}
.step__img:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 28px rgba(6, 46, 34, 0.15);
}

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

/* ── forScore section (dark) ── */
.forscore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.forscore-grid p {
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 15.5px;
}
.forscore-grid p strong { color: #fff; font-weight: 500; }
.forscore-grid .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn--on-dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  transition: all 0.2s var(--ss-ease-out);
}
.btn--on-dark:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.38);
  color: #fff;
  transform: translateY(-1px);
}

.metadata-table {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.metadata-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.metadata-table th {
  padding: 12px 18px;
  text-align: left;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.metadata-table td {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
}
.metadata-table td:first-child {
  color: var(--ss-teal-500);
  font-family: var(--ss-mono);
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .forscore-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--ss-surface);
  border: 1px solid var(--ss-rule);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ss-ease-out), transform 0.35s var(--ss-ease-out), border-color 0.35s var(--ss-ease-out);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ss-teal-700), var(--ss-teal-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ss-ease-out);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ss-shadow-md);
  border-color: rgba(29, 158, 117, 0.22);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ss-teal-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.3s ease, transform 0.3s var(--ss-ease-spring);
}
.feature-card:hover .feature-icon {
  background: var(--ss-teal-700);
  transform: scale(1.08) rotate(-3deg);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ss-teal-800);
  fill: none;
  stroke-width: 1.8;
  transition: stroke 0.3s ease;
}
.feature-card:hover .feature-icon svg { stroke: #fff; }

.feature-card__title {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.feature-card__desc {
  font-size: 14px;
  color: var(--ss-muted);
  line-height: 1.6;
}

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

/* ── Screenshots grid ── */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.screenshot-item {
  background: var(--ss-surface);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--ss-shadow-sm);
  transition: box-shadow 0.35s var(--ss-ease-out), transform 0.35s var(--ss-ease-out);
}
.screenshot-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--ss-shadow-md);
}
.screenshot-item__img {
  width: 100%;
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s var(--ss-ease-out), box-shadow 0.35s var(--ss-ease-out);
  margin-bottom: 16px;
}
.screenshot-item__img:hover {
  transform: scale(1.012);
  box-shadow: 0 8px 24px rgba(6, 46, 34, 0.15);
}
.screenshot-item__title {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.screenshot-item__desc {
  font-size: 13.5px;
  color: var(--ss-muted);
  line-height: 1.55;
}

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

/* ── Settings & template tokens ── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.setting-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--ss-rule);
}
.setting-item:first-child { padding-top: 0; }
.setting-item:last-child { border-bottom: none; }
.setting-item__name {
  font-weight: 500;
  font-size: 14.5px;
  margin-bottom: 4px;
  color: var(--ss-ink);
}
.setting-item__name code {
  font-family: var(--ss-mono);
  font-size: 12.5px;
  background: var(--ss-teal-100);
  color: var(--ss-teal-800);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 400;
}
.setting-item__desc {
  font-size: 13.5px;
  color: var(--ss-muted);
  line-height: 1.55;
}
.setting-item__desc code {
  font-family: var(--ss-mono);
  font-size: 12.5px;
  background: var(--ss-teal-100);
  color: var(--ss-teal-800);
  padding: 1px 6px;
  border-radius: 4px;
}

.token-example {
  background: var(--ss-surface);
  border: 1px solid var(--ss-rule);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--ss-shadow-sm);
}
.token-example__heading {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 14px;
}
.token-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.token {
  font-family: var(--ss-mono);
  font-size: 12.5px;
  background: var(--ss-teal-100);
  color: var(--ss-teal-800);
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: 500;
}
.token-desc {
  font-size: 13px;
  color: var(--ss-muted);
}

.example-output {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ss-rule);
}
.example-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ss-faint);
  margin-bottom: 6px;
  font-weight: 500;
}
.example-filename {
  font-family: var(--ss-mono);
  font-size: 12.5px;
  color: var(--ss-teal-800);
  word-break: break-all;
  margin-bottom: 12px;
  line-height: 1.5;
}
.example-filename:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── FAQ ── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 8px;
}
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--ss-rule);
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item__q {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
  color: var(--ss-ink);
}
.faq-item__a {
  font-size: 14px;
  color: var(--ss-muted);
  line-height: 1.65;
}
.faq-item__a strong { color: var(--ss-ink); font-weight: 500; }

@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Download section ── */
.download-hero {
  background: linear-gradient(135deg, var(--ss-teal-900) 0%, #0A4A36 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(93, 202, 165, 0.15), transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(45, 206, 150, 0.18), transparent 60%);
  pointer-events: none;
}
.download-hero .container {
  position: relative;
  z-index: 1;
}
.download-hero__heading {
  color: #fff;
  font-family: var(--ss-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.download-hero__sub {
  color: rgba(255,255,255,0.7);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 36px;
}
.download-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  transition: all 0.2s var(--ss-ease-out);
  position: relative;
  min-width: 210px;
  text-align: left;
}
.download-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}
.download-btn .platform { font-weight: 500; font-size: 14.5px; }
.download-btn .ext { font-size: 12px; opacity: 0.6; margin-top: 1px; }
.download-btn .beta-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #FFDD00;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.download-hero__note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}
.download-hero__note strong { color: rgba(255,255,255,0.7); font-weight: 500; }

/* ── Tip jar / Coffee ── */
.tip-jar {
  text-align: center;
  padding: 56px 32px;
  background: var(--ss-paper);
  border-top: 1px solid var(--ss-rule);
}
.tip-jar__heading {
  font-family: var(--ss-serif);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ss-ink);
  margin-bottom: 8px;
}
.tip-jar__sub {
  font-size: 14px;
  color: var(--ss-muted);
  margin-bottom: 22px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.coffee-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFDD00;
  color: #000;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.2s var(--ss-ease-out), box-shadow 0.2s var(--ss-ease-out);
}
.coffee-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ── Footer ── */
.footer {
  background: var(--ss-ink);
  color: rgba(255,255,255,0.55);
  padding: 36px 32px;
  font-size: 13px;
  line-height: 1.7;
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.footer a {
  color: rgba(255,255,255,0.6);
  transition: color 0.18s ease;
}
.footer a:hover { color: var(--ss-teal-500); }
.footer__sep {
  display: inline-block;
  margin: 0 8px;
  color: rgba(255,255,255,0.3);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 46, 34, 0.92);
  z-index: 1000;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: min(92vw, 1280px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.25s var(--ss-ease-out);
}
.lightbox.open img { transform: scale(1); }
.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  opacity: 0.6;
  padding: 6px 10px;
  transition: opacity 0.15s ease;
}
.lightbox__close:hover { opacity: 1; }

/* ── Content pages (guide / privacy / terms) ── */
.content-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.content-page h1 {
  font-family: var(--ss-serif);
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ss-ink);
  margin-bottom: 12px;
}
.content-page .meta {
  font-size: 13px;
  color: var(--ss-muted-2);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ss-rule);
}
.content-page h2 {
  font-family: var(--ss-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ss-ink);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.content-page h3 {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 28px 0 10px;
  color: var(--ss-ink);
  letter-spacing: -0.005em;
}
.content-page p {
  font-size: 15px;
  color: var(--ss-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.content-page p a,
.content-page li a {
  color: var(--ss-teal-800);
  border-bottom: 1px solid rgba(29, 158, 117, 0.3);
  transition: border-color 0.15s, color 0.15s;
}
.content-page p a:hover,
.content-page li a:hover {
  border-bottom-color: var(--ss-teal-700);
  color: var(--ss-teal-700);
}
.content-page ul, .content-page ol {
  margin: 0 0 14px 22px;
}
.content-page li {
  font-size: 15px;
  color: var(--ss-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}
.content-page code {
  font-family: var(--ss-mono);
  font-size: 13px;
  background: var(--ss-teal-100);
  color: var(--ss-teal-800);
  padding: 1px 6px;
  border-radius: 4px;
}
.content-page strong { color: var(--ss-ink); font-weight: 500; }

.callout {
  background: var(--ss-teal-100);
  border-left: 3px solid var(--ss-teal-700);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout p {
  margin-bottom: 0;
  color: var(--ss-teal-900);
  font-size: 14.5px;
}
.callout p strong { color: var(--ss-teal-800); }

/* ── Guide layout (two-column) ── */
.guide-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px 96px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
.guide-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.guide-sidebar__heading {
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ss-teal-700);
  margin-bottom: 14px;
}
.guide-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-sidebar li { margin-bottom: 6px; }
.guide-sidebar a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--ss-muted);
  transition: color 0.15s, padding-left 0.2s var(--ss-ease-out);
}
.guide-sidebar a:hover {
  color: var(--ss-teal-800);
  padding-left: 4px;
}
.guide-sidebar .sub {
  padding-left: 14px;
  font-size: 12.5px;
}
.guide-content h2 {
  font-family: var(--ss-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 48px 0 14px;
  padding-top: 24px;
  letter-spacing: -0.01em;
}
.guide-content section:first-child h2 { margin-top: 0; padding-top: 0; }
.guide-content h3 {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}
.guide-content p {
  font-size: 15px;
  color: var(--ss-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.guide-content p a {
  color: var(--ss-teal-800);
  border-bottom: 1px solid rgba(29, 158, 117, 0.3);
  transition: border-color 0.15s, color 0.15s;
}
.guide-content p a:hover {
  border-bottom-color: var(--ss-teal-700);
  color: var(--ss-teal-700);
}
.guide-content ul, .guide-content ol {
  margin: 0 0 14px 22px;
}
.guide-content li {
  font-size: 15px;
  color: var(--ss-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}
.guide-content code {
  font-family: var(--ss-mono);
  font-size: 13px;
  background: var(--ss-teal-100);
  color: var(--ss-teal-800);
  padding: 1px 6px;
  border-radius: 4px;
}
.guide-content strong { color: var(--ss-ink); font-weight: 500; }
.guide-content pre {
  background: var(--ss-teal-100);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--ss-mono);
  font-size: 13px;
  color: var(--ss-teal-900);
  margin: 14px 0;
  line-height: 1.6;
}
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.guide-content th, .guide-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ss-rule);
}
.guide-content th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ss-teal-700);
  background: var(--ss-teal-50);
}

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; max-height: none; margin-bottom: 40px; }
}

/* ── Guide: inline filename examples ── */
.filename-example {
  background: var(--ss-teal-50);
  border: 1px solid var(--ss-rule);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 10px 0;
  font-family: var(--ss-mono);
  font-size: 13px;
  color: var(--ss-teal-900);
  word-break: break-all;
  line-height: 1.55;
  position: relative;
  padding-top: 26px;
}
.filename-example .label {
  position: absolute;
  top: 6px;
  left: 18px;
  font-family: var(--ss-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ss-teal-700);
  opacity: 0.85;
}

/* ── Guide: in-page steps (different styling than homepage) ── */
.guide-content .steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0 20px;
}
.guide-content .steps .step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 16px 18px;
  background: var(--ss-teal-50);
  border: 1px solid var(--ss-rule);
  border-radius: 10px;
}
.guide-content .steps .step::before { display: none; }
.guide-content .steps .step:hover { transform: none; box-shadow: none; }
.guide-content .step-num {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ss-teal-800);
  background: var(--ss-teal-200);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.guide-content .step-content h4 {
  font-family: var(--ss-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ss-ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.guide-content .step-content p {
  margin-bottom: 6px;
  font-size: 14px;
}
.guide-content .step-content p:last-child { margin-bottom: 0; }

/* ── Guide: token table ── */
.token-table,
.key-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
  border: 1px solid var(--ss-rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ss-surface);
}
.token-table th,
.key-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ss-teal-800);
  background: var(--ss-teal-100);
}
.token-table td,
.key-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--ss-rule);
  color: var(--ss-muted);
}
.token-table td:first-child { font-family: var(--ss-mono); font-size: 12.5px; color: var(--ss-teal-800); }
.key-table td:first-child { color: var(--ss-ink); font-weight: 500; }

/* ── Guide: callouts ── */
.callout-note,
.callout-tip {
  background: var(--ss-teal-100);
  border-left: 3px solid var(--ss-teal-700);
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  margin: 18px 0;
}
.callout-note { border-left-color: var(--ss-muted-2); background: #F3F3EE; }
.callout-note p,
.callout-tip p { margin-bottom: 0; font-size: 14px; line-height: 1.65; }
.callout-tip p strong { color: var(--ss-teal-800); }
.callout-note p strong { color: var(--ss-ink); }

/* ── Guide: section labels (legacy class) ── */
.guide-content .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ss-teal-700);
  margin-bottom: 8px;
}

/* ── Guide: key grid ── */
.key-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0;
}
@media (max-width: 760px) {
  .key-grid { grid-template-columns: 1fr; }
}

/* ── Guide: metadata-table on light background ── */
.guide-content .metadata-table {
  background: var(--ss-surface);
  border: 1px solid var(--ss-rule);
  box-shadow: none;
}
.guide-content .metadata-table th {
  background: var(--ss-teal-100);
  color: var(--ss-teal-800);
}
.guide-content .metadata-table td {
  color: var(--ss-muted);
  border-top-color: var(--ss-rule);
}
.guide-content .metadata-table td:first-child { color: var(--ss-teal-800); }

/* Page header for content pages with hero strip */
.page-header {
  background: linear-gradient(180deg, var(--ss-teal-100) 0%, var(--ss-paper) 100%);
  padding: 64px 32px 48px;
  border-bottom: 1px solid var(--ss-rule);
}
.page-header .container { max-width: 1120px; margin: 0 auto; }
.page-header__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ss-teal-700);
  margin-bottom: 12px;
}
.page-header__label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ss-teal-700);
  opacity: 0.7;
}
.page-header h1 {
  font-family: var(--ss-serif);
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ss-ink);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 16px;
  color: var(--ss-muted);
  line-height: 1.7;
  max-width: 600px;
}
