/* ReadItWiser Landing — design tokens mirror the iOS app
   (lib/core/theme/design_tokens.dart). 墨黒ベース + Champagne Gold。 */

:root {
  --bg: #0b0b10;
  --card: #16161d;
  --card-elevated: #1c1c24;
  --border: rgba(255, 255, 255, 0.12);
  --separator: rgba(255, 255, 255, 0.08);
  --bar-bg: rgba(11, 11, 16, 0.85);

  --text-primary: #f2f2f5;
  --text-secondary: rgba(235, 235, 245, 0.6);
  --text-tertiary: rgba(235, 235, 245, 0.4);

  --accent: #e5a23f;          /* Champagne Gold */
  --accent-light: #f5c06f;
  --accent-muted: rgba(229, 162, 63, 0.15);
  --accent-glow: rgba(229, 162, 63, 0.32);

  --success: #32d74b;
  --danger: #ff6b5c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(229, 162, 63, 0.10), transparent 60%),
    radial-gradient(900px 500px at 95% 5%, rgba(229, 162, 63, 0.05), transparent 65%),
    var(--bg);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

/* ------------------------- layout primitives ------------------------- */

.container {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

.container-narrow {
  width: min(720px, 100% - 40px);
  margin-inline: auto;
}

/* ------------------------- header / nav ------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: var(--bar-bg);
  border-bottom: 1px solid var(--separator);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent) 0%, #b6791d 100%);
  display: inline-grid;
  place-items: center;
  color: #1a1208;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 16px -6px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

/* ------------------------- buttons ------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 60%, #b6791d 100%);
  color: #1a1208;
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}

.btn-primary:hover {
  color: #1a1208;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px var(--accent-glow);
}

.btn-secondary {
  background: var(--card-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--text-primary);
  background: #232330;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-light);
}

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

/* ------------------------- hero ------------------------- */

.hero {
  padding: 88px 0 96px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-muted);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  max-width: 880px;
  margin-inline: auto;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent) 60%, #b6791d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-top: 22px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ------------------------- sections ------------------------- */

.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-sub {
  margin-top: 14px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-inline: auto;
}

/* ------------------------- feature grid ------------------------- */

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

.feature-card {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 162, 63, 0.35);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-muted);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ------------------------- step list (extension page) ------------------------- */

.steps {
  display: grid;
  gap: 18px;
}

.step-card {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.step-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #1a1208;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.step-card .step-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------- pricing ------------------------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.price-card {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
}

.price-card.featured {
  border-color: rgba(229, 162, 63, 0.55);
  background:
    radial-gradient(560px 240px at 50% -20%, rgba(229, 162, 63, 0.18), transparent 60%),
    var(--card-elevated);
  box-shadow: 0 18px 48px -24px var(--accent-glow);
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #1a1208;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.price-name {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.price-amount .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
}

.price-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  list-style: none;
}

.price-list li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

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

/* ------------------------- callout ------------------------- */

.callout {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
}

.callout h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
}

.callout p {
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* ------------------------- footer ------------------------- */

.site-footer {
  margin-top: 80px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--separator);
  color: var(--text-tertiary);
  font-size: 13px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  color: var(--text-secondary);
}

.site-footer .footer-links a:hover {
  color: var(--text-primary);
}

/* ------------------------- prose (privacy/terms) ------------------------- */

.prose {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 15px;
}

.prose h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 10px;
  letter-spacing: -0.2px;
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 6px;
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

.prose ul,
.prose ol {
  margin: 8px 0 12px 22px;
}

.prose li {
  margin-bottom: 4px;
}

.prose .updated {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 28px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--separator);
  margin: 36px 0;
}
