/* ============================================================
   ESPic — Site Stylesheet
   Color theme: Young Leaf (薄いグリーン)
   ============================================================ */

/* --- Design tokens --------------------------------------- */
:root {
  /* Color */
  --bg-base:        #FBFCEF;  /* ページ背景 */
  --bg-section:     #F2F6E0;  /* セクション帯 */
  --bg-surface:     #FFFFFF;  /* カード白 */
  --text-primary:   #1A1A1A;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --border:         #DEE4BD;
  --border-strong:  #C5D097;
  --green-primary:  #6E9B2C;  /* 主要CTA */
  --green-hover:    #5A8024;
  --green-dark:     #4F7220;  /* 強調テキスト・リンク */
  --green-soft:     #E5EFCB;  /* バッジ等の淡い帯 */

  /* Typography */
  --font-body: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Courier New', monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 720px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
}

/* --- Reset ---------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'palt' 1, 'kern' 1;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--green-primary); }

/* --- Layout --------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* --- Header --------------------------------------------- */
.site-header {
  background: rgba(251, 252, 239, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text-primary); }
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.nav a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--green-primary);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem !important;
}
.nav-cta:hover { background: var(--green-hover); color: #fff !important; }

/* --- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-primary);
  color: #fff !important;
}
.btn-primary:hover { background: var(--green-hover); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--text-primary);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: #fff !important;
}
.btn-app-store svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
.btn[disabled],
.btn:disabled {
  background: #E0E0E0;
  color: var(--text-muted);
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Sections ------------------------------------------- */
section { padding: var(--space-8) 0; }
.section-alt { background: var(--bg-section); }
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-6);
}
.section-header .eyebrow { display: block; }
.section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.section-header p, .section-header .lead {
  color: var(--text-secondary);
  font-size: 1rem;
}
.section-cta {
  text-align: center;
  margin-top: var(--space-5);
}
.section-cta a {
  font-weight: 500;
  font-size: 0.95rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- Hero ----------------------------------------------- */
.hero { padding: var(--space-9) 0 var(--space-8); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero .lead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.phone-collage {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.85rem;
  align-items: end;
}
.phone {
  background: #ECECEC;
  border-radius: 18px;
  aspect-ratio: 9 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid #E0E0E0;
}
.phone-main { background: #E2E2E2; aspect-ratio: 9 / 19.5; }

/* --- Cards (general) ------------------------------------ */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Value cards (About) */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}
.value-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  margin-bottom: 1.1rem;
}
.value-card .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary); }

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.feature-image {
  background: #ECECEC;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 0.75rem; }
.feature-link { font-size: 0.85rem; font-weight: 500; }

/* Audience cards */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}
.audience-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  margin-bottom: 1.1rem;
}
.audience-card .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.audience-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.audience-card > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.audience-card ul { display: flex; flex-direction: column; gap: 0.45rem; }
.audience-card ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 1.1rem;
  position: relative;
}
.audience-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green-primary);
}

/* Step cards (Getting started) */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.step-number {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.step-image {
  background: #ECECEC;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  margin-bottom: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.8rem;
}
.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.88rem; line-height: 1.65; color: var(--text-secondary); }

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.popular { border-color: var(--green-primary); border-width: 2px; }
.pricing-card .badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--green-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.plan-name { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.2rem; }
.plan-tag { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.price { margin-bottom: 1rem; }
.price .monthly { display: block; font-size: 1.4rem; font-weight: 600; color: var(--text-primary); }
.price .annual { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.specs {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.specs li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}
.specs li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--green-primary);
  font-weight: 700;
}
.pricing-card .btn {
  margin-top: auto;
  justify-content: center;
  width: 100%;
}

/* Diff (Why ESPic) */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}
.diff-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--green-primary);
}
.diff-item p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --- Final CTA ------------------------------------------ */
.final-cta {
  background: var(--bg-section);
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.final-cta .lead {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --------------------------------------------- */
.site-footer {
  padding: var(--space-7) 0 var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  font-size: 0.9rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 360px;
}
.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.site-footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.site-footer ul a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: none !important;
  border-top: 1px solid var(--border);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-primary); }

/* ============================================================
   Sub-page styles
   ============================================================ */

/* --- Active nav state ----------------------------------- */
.nav a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 600;
}

/* --- Page hero (sub-pages) ------------------------------ */
.page-hero {
  padding: var(--space-7) 0 var(--space-5);
}
.page-hero .eyebrow { display: block; }
.page-hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.page-hero .lead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 720px;
}

/* --- Anchor nav (in-page) ------------------------------- */
.anchor-nav { padding: 0 0 var(--space-6); }
.anchor-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.anchor-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.anchor-nav a:hover { color: var(--green-primary); }

/* --- Feature detail (alternating two-column) ------------ */
.feature-detail { padding: var(--space-7) 0; }
.feature-detail + .feature-detail { border-top: 1px solid var(--border); }
.feature-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.feature-detail--reverse .feature-detail-text { order: 2; }
.feature-detail--reverse .feature-detail-image { order: 1; }

.feature-detail-text .eyebrow { display: block; }
.feature-detail-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}
.feature-detail-text .lead {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.feature-detail-image {
  background: #ECECEC;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Bulleted points ------------------------------------ */
.feature-points {
  display: flex; flex-direction: column; gap: 0.7rem;
}
.feature-points li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 1.4rem;
  position: relative;
}
.feature-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-primary);
}

/* --- Generic table wrapper ----------------------------- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

/* --- Comparison table (features page) ------------------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}
.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  background: var(--bg-section);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.comparison-table tbody th {
  font-weight: 500;
  color: var(--text-primary);
}
.comparison-table .center { text-align: center; }
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  background: var(--green-soft);
  font-weight: 500;
}
.comparison-note {
  margin-top: var(--space-3);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Pricing table (detailed plan comparison) ----------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}
.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.pricing-table thead th {
  background: var(--bg-section);
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}
.pricing-table thead th:first-child { background: transparent; }
.pricing-table tbody th {
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  width: 32%;
  background: transparent;
}
.pricing-table tbody td { text-align: center; color: var(--text-secondary); }
.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td { border-bottom: none; }
/* Highlight Standard column (4th column = popular) */
.pricing-table th:nth-child(4),
.pricing-table td:nth-child(4) {
  background: var(--green-soft);
  color: var(--text-primary);
}
.pricing-table thead th.popular { color: var(--green-dark); }
.pricing-table .check { color: var(--green-primary); font-weight: 600; }
.pricing-table .dash { color: var(--text-muted); }

/* --- FAQ ------------------------------------------------ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.75rem;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--green-primary);
  font-weight: 400;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { color: var(--green-dark); }
.faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.faq-answer em {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.88rem;
}

/* --- Fine print utility --------------------------------- */
.fine-print {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.fine-print.center { text-align: center; }

/* ============================================================
   Install page
   ============================================================ */

/* Constrained reading area */
.install-area { max-width: 760px; margin: 0 auto; }
.install-area > * + * { margin-top: var(--space-5); }

/* Callout (info/warning box) */
.callout {
  background: var(--green-soft);
  border-left: 3px solid var(--green-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.callout p { font-size: 0.92rem; line-height: 1.75; color: var(--text-primary); }
.callout p + p { margin-top: 0.4rem; color: var(--text-secondary); font-size: 0.88rem; }
.callout strong { font-weight: 600; }

/* Install action card */
.install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.install-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.005em;
}
.install-card > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.install-button { margin-bottom: 1rem; }
.install-button button.btn {
  background: var(--green-primary);
  color: #fff;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
}
.install-button button.btn:hover:not(:disabled) {
  background: var(--green-hover);
}
.install-button button.btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.install-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Requirements grid */
.requirement-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.requirement-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.requirement-item h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.requirement-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Subsection heading (in long-form pages) */
.subsection-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--space-2) 0 var(--space-3);
  letter-spacing: -0.005em;
}

/* Numbered steps list */
.steps-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.steps-list li {
  counter-increment: step;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-left: 2.4rem;
  position: relative;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Install page responsive */
@media (max-width: 768px) {
  .requirement-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Docs pages
   ============================================================ */

/* --- Doc index (top) ------------------------------------ */
.doc-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-primary);
  color: inherit;
}
.doc-card .eyebrow { margin-bottom: 0.6rem; }
.doc-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}
.doc-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}
.doc-card .arrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-dark);
  margin-top: auto;
}

/* --- Breadcrumb ----------------------------------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green-primary); }
.breadcrumb span { color: var(--text-secondary); }

/* --- Doc article (long-form content) -------------------- */
.doc-article { padding: var(--space-5) 0 var(--space-7); }
.doc-article > .container { max-width: 760px; }

.doc-article h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: var(--space-5) 0 var(--space-3);
  padding-top: var(--space-2);
}
.doc-article h2:first-child { margin-top: 0; padding-top: 0; }

.doc-article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-2);
}

.doc-article p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.doc-article ul,
.doc-article ol {
  margin: 0 0 var(--space-3) 1.4rem;
  color: var(--text-secondary);
}
.doc-article ul li,
.doc-article ol li {
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 0.3rem;
}
.doc-article ul li { list-style: disc; }
.doc-article ol li { list-style: decimal; }
.doc-article ul li::marker,
.doc-article ol li::marker { color: var(--green-primary); }

.doc-article a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc-article a:hover { color: var(--green-primary); }

.doc-article pre {
  background: #2A2E22;
  color: #E8EDD7;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0 0 var(--space-3);
}
.doc-article code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.doc-article p code,
.doc-article li code {
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}
.doc-article pre code { background: none; color: inherit; padding: 0; }

.doc-article .callout {
  margin: var(--space-4) 0;
}

.doc-article .faq-item { margin-top: 0.5rem; }
.doc-article .faq-item:first-of-type { margin-top: var(--space-3); }

/* --- Docs responsive ------------------------------------ */
@media (max-width: 768px) {
  .doc-index { grid-template-columns: 1fr; }
  .doc-article h2 { font-size: 1.3rem; }
}

/* ============================================================
   Legal pages (terms, privacy, tokushoho)
   ============================================================ */

/* --- Legal nav (switch between legal docs) -------------- */
.legal-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  margin-bottom: var(--space-5);
}
.legal-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}
.legal-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.legal-nav a:hover { color: var(--green-primary); }
.legal-nav a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 600;
}

/* --- Last updated note ---------------------------------- */
.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
}

/* --- Legal article (shares structure with doc-article) -- */
.legal-article { padding: var(--space-3) 0 var(--space-7); }
.legal-article > .container { max-width: 760px; }

.legal-article h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--space-5) 0 var(--space-3);
  padding-top: var(--space-2);
  letter-spacing: -0.005em;
  line-height: 1.5;
}
.legal-article h2:first-of-type { margin-top: 0; padding-top: 0; }

.legal-article p {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
.legal-article > .container > p:first-of-type { color: var(--text-primary); }

.legal-article ul,
.legal-article ol {
  margin: 0 0 var(--space-3) 1.4rem;
  color: var(--text-secondary);
}
.legal-article ul li,
.legal-article ol li {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 0.4rem;
}
.legal-article ul li { list-style: disc; }
.legal-article ol li { list-style: decimal; }
.legal-article ol li::marker,
.legal-article ul li::marker { color: var(--green-primary); }

.legal-article a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-article a:hover { color: var(--green-primary); }

.legal-article strong { font-weight: 600; color: var(--text-primary); }

/* Footnotes / supplementary provisions */
.legal-supplementary {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.legal-supplementary h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.legal-supplementary p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Tokushoho definition list (key-value pairs) -------- */
.tokushoho-list {
  border-top: 1px solid var(--border);
}
.tokushoho-list dt {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  padding: 1rem 0 0.4rem;
}
.tokushoho-list dd {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.tokushoho-list dd ul {
  margin: 0.4rem 0 0 1.2rem;
  list-style: disc;
}
.tokushoho-list dd ul li {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

/* On wider screens, render as 2-column table-like layout */
@media (min-width: 720px) {
  .tokushoho-list {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
  }
  .tokushoho-list dt {
    padding: 1rem 1.25rem 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  .tokushoho-list dd {
    padding: 1rem 0;
  }
  .tokushoho-list dt:first-of-type,
  .tokushoho-list dd:first-of-type {
    border-top: 1px solid var(--border);
  }
}

/* --- Content layout helpers ----------------------------- */
.content-narrow {
  max-width: 720px;
  margin: 0 auto;
}
.content-h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  letter-spacing: -0.005em;
}
.content-h2:first-child { margin-top: 0; }

/* --- Numbered list -------------------------------------- */
.numbered-list {
  padding-left: 1.5rem;
  margin-bottom: var(--space-5);
}
.numbered-list li {
  list-style: decimal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 0.25rem;
  margin-bottom: 0.45rem;
}
.numbered-list li:last-child { margin-bottom: 0; }

/* --- Callout (info box) --------------------------------- */
.callout {
  background: var(--green-soft);
  border-left: 3px solid var(--green-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin-bottom: var(--space-5);
}
.callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.callout p + p { margin-top: 0.4rem; }
.callout strong {
  color: var(--green-dark);
  font-weight: 600;
}

/* --- Install card --------------------------------------- */
.install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  margin-bottom: var(--space-5);
}
.install-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.install-card > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.install-button {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.install-button .btn {
  font-size: 1rem;
  padding: 0.9rem 1.85rem;
}
.install-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Requirement list ----------------------------------- */
.requirement-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: var(--space-5);
}
.requirement-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.requirement-item h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.requirement-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Sub-page responsive -------------------------------- */
@media (max-width: 768px) {
  .feature-detail { padding: var(--space-5) 0; }
  .feature-detail-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .feature-detail--reverse .feature-detail-text { order: 1; }
  .feature-detail--reverse .feature-detail-image { order: 2; }
  .page-hero { padding: var(--space-5) 0 var(--space-4); }
  .anchor-nav .container { gap: 0.45rem 1rem; }
  .requirement-list { grid-template-columns: 1fr; }
  .install-card { padding: 1.5rem 1.25rem; }
}

/* --- Responsive ----------------------------------------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  section { padding: var(--space-7) 0; }
  .hero { padding: var(--space-6) 0 var(--space-5); }
  .nav { gap: 0.6rem; }
  .nav a:not(.nav-cta) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .phone-collage { max-width: 360px; margin: 0 auto; }
  .value-grid,
  .audience-grid,
  .feature-grid,
  .step-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .diff-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .site-footer .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
