:root {
  --color-bg: #fafaf8;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-primary: #1a5632;
  --color-primary-light: #f0f7f4;
  --color-accent: #c62828;
  --color-interp: var(--color-primary);
  --color-border: #e0e0e0;
  --color-notice-bg: #fff3e0;
  --color-notice-border: #ff9800;
  --color-code-bg: #f5f5f5;
  --max-width: 960px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* Focus styles (accessibility) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Header */
header {
  background: #ffffff;
  border-bottom: none;
  padding: 1.25rem 2rem 0;
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.site-title:hover {
  color: #134225;
}

.site-tagline {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 400;
}

/* Hamburger toggle (hidden by default, visible on mobile) */
.nav-toggle {
  display: none;
}

.nav-hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Gradient accent bar */
.header-gradient {
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary) 60%, var(--color-accent) 100%);
  margin-top: 1.25rem;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

article h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
  letter-spacing: -0.025em;
}

article h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.25rem;
  letter-spacing: -0.015em;
}

article h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

article p {
  margin-bottom: 1.15rem;
}

article a {
  color: var(--color-primary);
  text-decoration: underline;
}

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

article ul, article ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

article li {
  margin-bottom: 0.4rem;
}

article blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-code-bg);
  font-size: 0.95rem;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

article .table-wrap {
  display: block;
  overflow-x: auto;
  margin: 1.5rem 0;
}

article .table-wrap table {
  margin: 0;
}

article th, article td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

article th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

article tr:nth-child(even) {
  background: var(--color-code-bg);
}

article code {
  font-family: var(--font-mono);
  background: var(--color-code-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

article pre {
  background: var(--color-code-bg);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Notice / disclaimer box */
.notice {
  background: var(--color-notice-bg);
  border-left: 4px solid var(--color-notice-border);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.article-meta .last-updated {
  font-style: italic;
}

.article-meta .inline-disclaimer a {
  color: var(--color-text-light);
  text-decoration: underline;
}

.article-meta .inline-disclaimer a:hover {
  color: var(--color-primary);
}

/* Callout box */
.callout {
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

/* Collapsible / details element */
details {
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

details summary {
  -webkit-tap-highlight-color: transparent;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--color-code-bg);
  transition: background 0.15s ease;
  list-style: none;
}

details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.15s ease;
  font-size: 0.85em;
}

details[open] summary::before {
  transform: rotate(90deg);
}

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

details summary:hover {
  background: var(--color-border);
}

details[open] summary {
  border-bottom: 1px solid var(--color-border);
}

details .details-content {
  padding: 1rem;
  background: #ffffff;
}

.source-cite {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-light);
  text-align: right;
  margin-top: 0.75rem;
}

.source-cite a {
  color: var(--color-text-light);
}

.source-cite a:hover {
  color: var(--color-primary);
}

details .details-content blockquote {
  border-left: none;
  background: none;
  padding: 0;
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #333;
  border-radius: 0;
}

/* Flow diagram */
.flow-diagram {
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1;
  overflow-x: auto;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.75rem;
  flex-wrap: nowrap;
}

.flow-label {
  font-weight: 700;
  min-width: 140px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.flow-label.label-a { color: var(--color-primary); }
.flow-label.label-b { color: var(--color-accent); }

.flow-step {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  font-size: 0.8rem;
}

.flow-step.step-a { border-top: 2px solid var(--color-primary); }
.flow-step.step-b { border-top: 2px solid var(--color-accent); }

.flow-arrow {
  padding: 0 0.4rem;
  color: var(--color-text-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.flow-result {
  background: var(--color-code-bg);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.8rem;
}

.flow-bracket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.flow-bracket-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.flow-merge {
  border-right: 2px solid var(--color-text-light);
  height: 100%;
  min-height: 2.5rem;
  margin-right: 0.4rem;
  display: flex;
  align-items: center;
}

.flow-merge::after {
  content: "→";
  color: var(--color-text-light);
  padding-left: 0.4rem;
}

@media (max-width: 600px) {
  .flow-label { min-width: 100px; font-size: 0.8rem; }
  .flow-step { font-size: 0.75rem; padding: 0.3rem 0.5rem; }
  .flow-result { font-size: 0.75rem; }
}

/* Comparison card enhancements */
.comparison-col.col-a {
  border-top: 3px solid var(--color-interp);
}

.comparison-col.col-b {
  border-top: 3px solid var(--color-interp);
}

/* Vertical flow inside comparison cards */
.flow-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.5rem 0 0;
}

.flow-vertical .flow-node {
  background: #ffffff;
  border: 3px solid var(--color-border);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  max-width: 240px;
  white-space: nowrap;
}

.flow-vertical .flow-node-pair {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
  justify-content: center;
}

.flow-vertical .flow-node-pair .flow-node {
  max-width: none;
  flex: 1;
  white-space: nowrap;
}

.flow-vertical .flow-chevron-pair {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
  justify-content: center;
  padding: 0 2rem;
}

.flow-vertical .flow-chevron-pair .flow-chevron {
  flex: 1;
}

.flow-vertical .flow-result {
  max-width: 240px;
}

.flow-vertical .flow-node-pair .flow-node {
  flex: 1;
  max-width: none;
}

/* Down arrow between flow nodes */
.flow-vertical .flow-chevron {
  width: 24px;
  height: 24px;
  margin: -0.5rem 0;
}

.col-a .flow-chevron { color: var(--color-interp); }
.col-b .flow-chevron { color: var(--color-interp); }

.flow-vertical .flow-result {
  background: #ffffff;
  border: 3px solid var(--color-border);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  max-width: 240px;
  white-space: nowrap;
}


.comparison-col .flow-summary {
  align-self: start;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.interpretation-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.badge-a,
.badge-b {
  background: rgba(26, 86, 50, 0.08);
  color: var(--color-primary);
}

/* CTA divider */
.cta-box::before {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-border);
  margin: 0 auto 2rem;
}

/* CTA box for tracker */
.cta-box {
  background: var(--color-primary-light);
  border: 2px solid rgba(26, 86, 50, 0.35);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26, 86, 50, 0.1);
}

.cta-box h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.cta-box > p {
  margin-bottom: 1.25rem;
}

.cta-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.25rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.cta-features li {
  margin: 0;
  padding-left: 2rem;
  position: relative;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 601px) {
  .cta-features {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 0.75rem 2.5rem;
  }
}

.cta-features li::before {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 18px;
  height: 18px;
  display: inline-block;
  speak: never;
}

.cta-features li:nth-child(1)::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%231a5632'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3' /%3E%3C/svg%3E") no-repeat center/contain;
}

.cta-features li:nth-child(2)::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%231a5632'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z' /%3E%3C/svg%3E") no-repeat center/contain;
}

.cta-features li:nth-child(3)::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%231a5632'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5a17.888 17.888 0 0 1-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418' /%3E%3C/svg%3E") no-repeat center/contain;
}

.cta-features li:nth-child(4)::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%231a5632'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z' /%3E%3C/svg%3E") no-repeat center/contain;
}

.cta-box a.button {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 4px rgba(26, 86, 50, 0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  transform: translateY(0);
}

.cta-box a.button:hover {
  background: #134225;
  color: white;
  box-shadow: 0 4px 8px rgba(26, 86, 50, 0.35);
  transform: translateY(0);
}

/* Side-by-side comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0 1.5rem;
  margin: 1.5rem 0;
}

.comparison-col {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
}

.comparison-col h3 {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .comparison {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1.5rem;
  }

  .comparison-col {
    grid-row: auto;
    grid-template-rows: auto 1fr auto;
  }
}

/* Signup form */
.signup-form {
  max-width: 480px;
  margin: 2rem auto;
  background: #ffffff;
  border: 2px solid rgba(26, 86, 50, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(26, 86, 50, 0.1);
}

.signup-form input[type="email"],
.signup-form input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.signup-form input[type="email"]:focus,
.signup-form input[type="text"]:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.signup-form button {
  width: 100%;
  padding: 0.9rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 4px rgba(26, 86, 50, 0.3);
  transform: translateY(0);
}

.signup-form button:hover {
  background: #134225;
  box-shadow: 0 4px 8px rgba(26, 86, 50, 0.35);
  transform: translateY(0);
}

.signup-privacy {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.4;
}

/* ========================================
   Landing / Product Page
   ======================================== */

main.landing-main {
  max-width: none;
  padding: 0;
}

/* Hero */
.hero {
  background: linear-gradient(175deg, var(--color-primary-light) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-pain {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-pain a {
  color: var(--color-primary);
  text-decoration: underline;
}

.hero-cta.button {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 3px 6px rgba(26, 86, 50, 0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  transform: translateY(0);
}

.hero-cta.button:hover {
  background: #134225;
  color: white;
  box-shadow: 0 5px 12px rgba(26, 86, 50, 0.35);
  transform: translateY(0);
}

/* Landing body */
.landing-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

.landing-page h2 {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 3.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.landing-page h2::before {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.landing-page h2 + p {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* How It Works steps */
.how-it-works ol {
  list-style: none;
  padding: 0;
  counter-reset: steps;
  max-width: 560px;
  margin: 1.5rem auto;
}

.how-it-works li {
  counter-increment: steps;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.how-it-works li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steps grid with phone mockups */
.steps-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: nowrap;
}

.step {
  text-align: center;
}

.step .step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: normal;
}

/* Phone mockup */
.phone-mockup {
  background: #1a1a1a;
  border-radius: 28px;
  padding: 10px;
  width: 280px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.phone-screen {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.25rem 1rem;
  height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 600px) {
  .phone-mockup {
    width: 100%;
    max-width: 280px;
  }
}

.mock-header {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.mock-item {
  padding: 0.5rem 0.5rem;
  font-size: 0.8rem;
  text-align: left;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.mock-item .mock-icon {
  margin-right: 0.25rem;
}

.mock-item-detected {
  background: var(--color-primary-light);
  font-weight: 600;
}

.mock-tag {
  float: right;
  font-size: 0.65rem;
  background: var(--color-primary);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}

.mock-item-selected {
  background: var(--color-primary-light);
  font-weight: 600;
}

.mock-item-add {
  color: var(--color-primary);
  font-weight: 500;
}

.mock-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--color-code-bg);
  font-size: 0.8rem;
}

.mock-label {
  color: var(--color-text-light);
}

.mock-value {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1rem;
}

.mock-positive {
  color: var(--color-primary);
}

.mock-field-result {
  border-bottom: none;
  margin-top: 0.25rem;
  background: var(--color-code-bg);
  border-radius: 6px;
}

.mock-button {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.mock-item-add,
.mock-button {
  margin-top: auto;
}

/* Diary ledger mockup */
.diary-mockup-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.ledger-row {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--color-code-bg);
  font-size: 0.75rem;
}

.ledger-row:last-of-type {
  border-bottom: none;
}

.ledger-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.ledger-date {
  color: var(--color-text-light);
  font-size: 0.7rem;
  min-width: 2.5rem;
}

.ledger-location {
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  font-size: 0.75rem;
}

.ledger-net {
  font-weight: 700;
  font-size: 0.8rem;
}

.ledger-positive {
  color: var(--color-primary);
}

.ledger-negative {
  color: var(--color-accent);
}

.ledger-bottom {
  display: flex;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.65rem;
  padding-left: 2.85rem;
}

.ledger-game {
  font-weight: 500;
}

@media (max-width: 920px) {
  .steps-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Feature card grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: normal;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Image placeholder */
.image-placeholder {
  background: var(--color-code-bg);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-style: italic;
  margin: 2rem auto;
  max-width: 320px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sample diary table on landing page */
.landing-page .table-wrap {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 720px;
  margin: 1.5rem auto;
  overflow-x: auto;
}

.landing-page .table-wrap table {
  margin: 0;
  border: none;
  display: table;
  width: 100%;
  font-size: 0.9rem;
}

.landing-page .table-wrap th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border: none;
  white-space: nowrap;
}

.landing-page .table-wrap th:first-child {
  border-radius: 6px 0 0 0;
}

.landing-page .table-wrap th:last-child {
  border-radius: 0 6px 0 0;
}

.landing-page .table-wrap td {
  padding: 0.6rem 1rem;
  border: none;
  border-bottom: 1px solid var(--color-code-bg);
  white-space: nowrap;
}

.landing-page .table-wrap tr:last-child td {
  border-bottom: none;
}

.landing-page .table-wrap tr:nth-child(even) {
  background: var(--color-code-bg);
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(26, 86, 50, 0.15);
  background: linear-gradient(175deg, var(--color-primary-light) 0%, #ffffff 100%);
  padding: 2.25rem;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card-header h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: normal;
}

.pricing-card-header h3::before {
  display: none;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.pricing-annual {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%231a5632'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") no-repeat center/contain;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Signup section band */
.signup-section {
  background: var(--color-primary-light);
  border-top: 3px solid var(--color-primary);
  margin: 3rem -2rem 0;
  padding: 3.5rem 2rem;
  text-align: center;
}

.signup-section h2 {
  color: var(--color-primary);
}

/* Final CTA link */
.final-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Landing page responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1.15rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 1rem 2rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-cta.button {
    display: block;
    width: 100%;
    text-align: center;
  }
  .landing-body {
    padding: 1.5rem 1rem;
  }
  .signup-section {
    margin: 3rem -1rem 0;
    padding: 2rem 1rem;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--color-text-light);
  margin: 0 0.75rem;
  text-decoration: none;
}

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

.footer-legal {
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.footer-legal a {
  color: var(--color-text-light);
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  main { padding: 2rem 1.5rem; }
  article h1 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 1.5rem 1rem; }
  article h1 { font-size: 1.6rem; }
  article h2 { font-size: 1.3rem; }
  header { padding: 1rem 1rem 0; }

  header nav {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-hamburger {
    display: flex;
    position: absolute;
    top: 0.75rem;
    left: 0;
  }

  .site-brand {
    padding-left: 3rem;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.75rem;
  }

  .header-nav a {
    display: block;
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-border);
  }

  .nav-toggle:checked ~ .header-nav {
    display: flex;
  }

  .cta-box a.button {
    display: block;
    width: 100%;
    text-align: center;
  }

  .cta-box {
    padding: 1.5rem 1rem;
  }
}
