/* SnapDic marketing site — warm editorial, extension-aligned #FBFBF1 */

:root {
  --paper: #fbfbf1;
  --paper-deep: #f5f5eb;
  --surface: #ffffff;
  --ink: #1a1a18;
  --ink-muted: #5c5c56;
  --ink-soft: #7a7a72;
  --accent: #0d6b6e;
  --accent-hover: #0a5558;
  --accent-soft: rgba(13, 107, 110, 0.12);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --banner-h: 44px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--banner-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Coming soon — Chrome Web Store */
.store-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(90deg, #e8ece2 0%, #f0ebe0 50%, #e8ece2 100%);
  border-bottom: 1px solid var(--border-strong);
}

.store-banner strong {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 900;
  background: rgba(251, 251, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 107, 110, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-soon {
  background: var(--ink-muted);
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--accent);
}

main {
  overflow-x: hidden;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: 0;
}

.hero-visual {
  position: relative;
}

.hero-photo {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Speech-balloon preview (matches SnapDic idiom tooltip) */
.hero-tooltip-mock {
  position: absolute;
  right: -4px;
  bottom: -20px;
  width: min(280px, 62%);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.14));
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #000;
}

.hero-tooltip-mock-body {
  position: relative;
  padding: 0.7rem 0.85rem;
  background: #fbfbf1;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.hero-tooltip-mock-body::after,
.hero-tooltip-mock-body::before {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -9px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid rgba(0, 0, 0, 0.2);
}

.hero-tooltip-mock-body::before {
  bottom: -7px;
  border-top-color: #fbfbf1;
  border-top-width: 8px;
  border-left-width: 8px;
  border-right-width: 8px;
}

.hero-tooltip-mock .mock-word {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.hero-tooltip-mock .mock-label {
  margin: 0 0 0.4rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
}

.hero-tooltip-mock .mock-def {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.45;
}

.hero-tooltip-mock .mock-example,
.hero-tooltip-mock .mock-related {
  margin: 0.4rem 0 0;
  font-size: 0.625rem;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.62);
}

.hero-tooltip-mock .mock-example {
  font-style: italic;
}

.hero-tooltip-mock .mock-source {
  margin: 0.5rem 0 0;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

/* Stats strip */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper-deep);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1.5rem;
  padding: 2rem 0;
  justify-items: center;
  text-align: center;
}

.stat {
  width: 100%;
  max-width: 11rem;
  padding: 0 0.35rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
}

.stat span {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--ink-muted);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.bento-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.bento-card a.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.bento-span-8 { grid-column: span 8; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-span-12 { grid-column: span 12; }

.bento-card img {
  border-radius: 8px;
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero .lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0;
}

.page-hero-with-img {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-with-img img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Content blocks */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.prose {
  max-width: 65ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li strong {
  color: var(--ink);
}

.privacy-summary {
  margin: 0 0 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(13, 107, 110, 0.22);
  border-radius: var(--radius);
}

.privacy-summary h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.privacy-summary p:last-child {
  margin-bottom: 0;
}

.disclosure-band {
  padding: 1.75rem 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.disclosure-band .container {
  max-width: 42rem;
  text-align: center;
}

.disclosure-band h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
}

.disclosure-band p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.disclosure-band a {
  font-weight: 600;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* CTA band */
.cta-band {
  margin: 2rem 0 4rem;
  padding: 2.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(13, 107, 110, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
}

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-col {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-col.highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, #f8fcfc 100%);
}

.compare-col h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
}

.compare-col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Comparison table page */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table caption {
  padding: 0;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--paper-deep);
}

.compare-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  width: 28%;
}

.compare-table td {
  color: var(--ink-muted);
  width: 36%;
}

.compare-table .col-snapdic {
  background: linear-gradient(180deg, #fff 0%, #f4faf9 100%);
  color: var(--ink);
  font-weight: 500;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-good,
.compare-bad {
  margin-right: 0.35rem;
}

.compare-bottom-line {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-align: center;
  color: var(--ink);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.audience-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.audience-card:hover {
  box-shadow: var(--shadow);
}

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.audience-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.footer-bottom a {
  color: var(--ink-muted);
}

/* Waitlist */
.waitlist-section {
  padding-top: 0;
}

.waitlist-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.waitlist-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.waitlist-card > p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.waitlist-form input[type="email"] {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font: inherit;
  background: var(--paper);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.waitlist-fine {
  margin: 1rem 0 0 !important;
  font-size: 0.75rem !important;
}

.waitlist-success {
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 0.9375rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .header-inner {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .hero {
    padding: 2.75rem 0 3.25rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .page-hero {
    padding: 2.25rem 0 2rem;
  }

  .site-footer {
    padding: 2.5rem 0 2rem;
  }

  .cta-band {
    padding: 2rem 1.5rem;
  }

  .waitlist-card {
    padding: 2rem 1.5rem;
  }

  .hero-grid,
  .page-hero-with-img,
  .content-grid,
  .compare,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
    padding: 2.25rem 0;
  }

  .stat {
    max-width: 14rem;
  }

  .bento-span-8,
  .bento-span-6,
  .bento-span-4 {
    grid-column: span 12;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-tooltip-mock {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 320px;
    margin: 1rem auto 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    position: relative;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .store-banner {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 2rem 0;
  }

  .stat {
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
  }

  .stat strong {
    font-size: 1.5rem;
  }
}
