/* Homepage-only styles for landing/index.html.
   Tokens, fonts, body, nav base, and footer live in article.css (shared shell).
   See CLAUDE.md "Landing pages". */

/* Homepage adds these tokens on top of the shared shell. */
:root {
  --rose: #c2553f;
  --green: #41705a;
  --pro-bg: #1d1c18;
  --radius: 10px;
}

/* ── HERO ─────────────────────────────── */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px 24px;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--hand);
  font-size: 24px;
  color: var(--accent);
  transform: rotate(-1.5deg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  animation: fadeUp 0.7s 0.05s both;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 14ch;
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.1s both;
  font-style: normal;
}
.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.36em;
  background: var(--accent-soft);
  z-index: -1;
  transform: skewX(-6deg);
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.18s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.26s both;
}

/* Hero CTA gets a heavier drop shadow on top of the shared .btn .btn-lg. */
.hero-actions .btn {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 12px 32px -12px rgba(20, 19, 15, 0.5);
}
.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 18px 40px -12px rgba(31, 74, 214, 0.6);
}

.hero-meta {
  font-family: var(--hand);
  color: var(--ink-mute);
  font-size: 19px;
  transform: rotate(-1deg);
  margin-left: 6px;
}
.hero-meta::before {
  content: "↳ ";
  color: var(--accent);
}

/* inline Notion glyph used inside hero subhead */
.hero-sub .notion-glyph {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.12em;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.18em;
  color: var(--ink);
}
.hero-sub .notion-glyph svg { width: 100%; height: 100%; display: block; }

/* ── HERO GRID + FAB ASIDE ────────────── */
.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}
.hero .hero-text { min-width: 0; }
.hero-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.9s 0.34s both;
}
@media (max-width: 920px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-aside { justify-content: flex-start; }
}

/* Pulsing FAB element — base rules live in article.css for shared reuse
   (hero on /, shortcut CTA on /notion-diagram + /best-diagram-tool). */

/* ── HERO TRANSFORMATION VISUAL ───────── */
.transform {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 28px;
  animation: fadeUp 0.9s 0.42s both;
}

.pane {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -30px rgba(20, 19, 15, 0.25),
    0 12px 24px -16px rgba(20, 19, 15, 0.18);
  overflow: hidden;
  position: relative;
}
.pane-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.pane-chrome .dots {
  display: flex; gap: 6px;
}
.pane-chrome .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.5;
}
.pane-chrome .dots span:first-child { background: #d97757; opacity: 0.7; }
.pane-chrome .label {
  font-family: var(--mono);
  font-size: 11px;
}

.pane-before { transform: rotate(-0.6deg); }
.pane-after  { transform: rotate(0.4deg); }

.pane .pane-body {
  background: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 18px;
}
.pane .pane-body img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
}
.arrow svg { display: block; }
.arrow .arrow-label {
  font-family: var(--hand);
  color: var(--accent);
  font-size: 22px;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.arrow .pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50%      { transform: translateX(8px); opacity: 1; }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .transform { grid-template-columns: 1fr; gap: 12px; }
  .pane-before, .pane-after { transform: none; }
  .arrow { padding: 4px 0; transform: rotate(90deg); }
}

/* ── DIVIDER ──────────────────────────── */
.marquee {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.marquee::before, .marquee::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ── SECTIONS ─────────────────────────── */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px;
}

.section-eyebrow {
  font-family: var(--hand);
  color: var(--accent);
  font-size: 22px;
  transform: rotate(-1deg);
  display: inline-block;
  margin-bottom: 8px;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 8px;
  max-width: 22ch;
}
.section h2 em { font-style: normal; font-weight: 700; color: var(--accent); }

.section-lede {
  font-size: 17px;
  color: var(--ink-mute);
  max-width: 52ch;
  margin-bottom: 16px;
}

/* ── FEATURES (cards under hero) ─────── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.section-eyebrow + .features { margin-top: 12px; }

.fcard {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px 30px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.fcard:hover {
  transform: translateY(-4px);
  border-color: var(--ink-faint);
  box-shadow: 0 24px 40px -24px rgba(20, 19, 15, 0.25);
}

.fcard h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.fcard h3 em { font-style: normal; font-weight: 700; color: var(--accent); }

.fcard-tag {
  display: inline-block;
  vertical-align: 4px;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 3px 7px;
  border-radius: 4px;
}

.fcard p {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.fcard .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

/* ── HOW IT WORKS ─────────────────────── */
.how-bg {
  background:
    linear-gradient(180deg, transparent, rgba(232, 220, 196, 0.3) 50%, transparent);
  padding: 8px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 16px 28px 20px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}
.step:first-child { padding-left: 0; }
.step:first-child::before { display: none; }
@media (max-width: 880px) {
  .step { border-top: 1px solid var(--line); padding-left: 0; }
  .step::before { display: none; }
  .step:first-child { border-top: none; padding-top: 0; }
}

.step-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  display: block;
}
.step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 38ch;
}
.how-video-wrap {
  margin: 12px auto 0;
  max-width: 880px;
  text-align: center;
}
.how-video-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.how-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf6;
  box-shadow:
    0 1px 0 rgba(20, 19, 15, 0.04),
    0 24px 48px -28px rgba(20, 19, 15, 0.35);
}
.how-video-cta {
  margin-top: 28px;
}
@media (max-width: 880px) {
  .how-video-wrap { margin-top: 20px; }
}

/* ── PRICING ──────────────────────────── */
.pricing-bg {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  position: relative;
}

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border-radius: 999px;
  padding: 5px;
  position: relative;
  min-width: 280px;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label {
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  transition: color 0.25s;
  text-align: center;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.toggle label:hover { color: var(--ink); }
.toggle input:checked + label { color: var(--paper); }
.toggle .glider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.toggle:has(#bill-monthly:checked) .glider { transform: translateX(0); }
.toggle:has(#bill-yearly:checked) .glider  { transform: translateX(100%); }
.save-note {
  font-family: var(--hand);
  font-size: 19px;
  color: var(--gold);
  transform: rotate(-2deg);
  transition: opacity 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 60px;
}
.save-note::after {
  content: "↑";
  font-family: var(--sans);
  font-size: 14px;
}
body:has(#bill-monthly:checked) .save-note { opacity: 0.45; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }

.plan {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.plan--pro {
  background: var(--pro-bg);
  color: var(--paper);
  border-color: var(--pro-bg);
}
.plan--pro .plan-name { color: var(--paper-warm); }
.plan--pro .plan-price-amt { color: #fff; }
.plan--pro .plan-price-meta { color: var(--line); }
.plan--pro .plan-features li { color: var(--paper-warm); }
.plan--pro .plan-features li::before {
  background: var(--accent);
  color: #fff;
}

.plan-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-price-amt {
  font-family: var(--display);
  font-weight: 500;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.plan-price-unit {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
}
.plan--pro .plan-price-unit { color: var(--line); }
.plan-price-meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-mute);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  font-size: 14.5px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.plan-features li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Plan CTAs use the shared .btn from article.css. Free plan is a one-off
   paper-toned variant (the only ghost-style button on the site). */
.plan-cta--free {
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid var(--line);
}
.plan-cta--free:hover { background: var(--line); color: var(--ink); }

/* show/hide based on toggle */
.price-monthly, .price-yearly { display: none; }
body:has(#bill-monthly:checked) .price-monthly { display: block; }
body:has(#bill-yearly:checked)  .price-yearly  { display: block; }
body:has(#bill-monthly:checked) .plan-cta-monthly { display: inline-flex; }
body:has(#bill-monthly:checked) .plan-cta-yearly  { display: none; }
body:has(#bill-yearly:checked)  .plan-cta-yearly  { display: inline-flex; }
body:has(#bill-yearly:checked)  .plan-cta-monthly { display: none; }

/* FAQ accordion (.faq-list) and footer live in article.css. */

/* Visible freshness signal (HCU). Base .updated rule lives in article.css. */
.page-updated {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .section { padding: 20px 24px; }
}

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