/* Authority Orchard. Light, paper-cut, sunny: white paper with bands of sky, leaf and peach,
   a soft wonky serif for headlines and a friendly grotesque for everything else. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1d2b1f;
  --ink-soft: #4a5a4c;
  --leaf: #2e8b3d;
  --leaf-deep: #1f6b2d;
  --leaf-soft: #8fcf6a;
  --mint: #eef8e6;
  --sky: #5bb8f0;
  --sky-wash: #e7f5fd;
  --apple: #e8412c;
  --apple-deep: #c5301d;
  --tangerine: #f7931e;
  --sun: #ffc83d;
  --peach: #fff2e3;
  --line: #dfe9d9;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; margin: 0; line-height: 1.05; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 750; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }

.kicker { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--tangerine); box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.18); }
.kicker-apple::before { background: var(--apple); box-shadow: 0 0 0 4px rgba(232, 65, 44, 0.16); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 800; font-size: 1.05rem; text-decoration: none; color: #fff; background: var(--apple); padding: 16px 28px; border-radius: 999px; box-shadow: 0 4px 0 var(--apple-deep); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--apple-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--apple-deep); }
.btn-small { padding: 10px 20px; font-size: 0.95rem; box-shadow: 0 3px 0 var(--apple-deep); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover, .btn-ghost:active { box-shadow: inset 0 0 0 2px var(--ink); background: var(--mint); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #d9a11c; }
.btn-sun:hover { box-shadow: 0 6px 0 #d9a11c; }
.btn-sun:active { box-shadow: 0 2px 0 #d9a11c; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand em { font-style: italic; color: var(--leaf); }
.brand .apple { width: 30px; height: 30px; }
.brand.small { font-size: 1.05rem; }
.brand.small .apple { width: 22px; height: 22px; }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.links a:hover { color: var(--leaf-deep); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--sky-wash) 100%); padding-block: 56px 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.fruit { color: var(--apple); font-style: italic; white-space: nowrap; }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 42ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-art { margin: 0; transform: rotate(1.6deg); }
.hero-art img { border-radius: var(--radius); box-shadow: 0 2px 0 rgba(29, 43, 31, 0.08), 0 24px 48px -16px rgba(31, 107, 45, 0.35); border: 8px solid #fff; }
.stats { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats li { background: var(--paper); border-radius: 18px; padding: 22px 24px; display: grid; gap: 2px; box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(29, 43, 31, 0.4); min-width: 0; }
.stats b { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 2.4rem; font-weight: 800; line-height: 1.1; color: var(--leaf); font-variant-numeric: tabular-nums; }
.stats li:nth-child(2) b { color: var(--apple); }
.stats li:nth-child(3) b { color: var(--tangerine); }
.stats span { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.4; }

section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.15rem; max-width: 56ch; }

/* Wither */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .copy { display: grid; gap: 18px; min-width: 0; }
.split .copy > p:not(.kicker) { font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }
.art-card { margin: 0; }
.tilt-left { transform: rotate(-1.5deg); }
.art-card img { border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(29, 43, 31, 0.35); }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; color: var(--ink-soft); max-width: 58ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232e8b3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks b { color: var(--ink); }
.wither .ticks li::before { background: #fde9e5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v8M12 18h.01' fill='none' stroke='%23e8412c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* How */
.how { background: var(--mint); }
.how-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.map { margin: 0; transform: rotate(-1deg); }
.map img { border-radius: var(--radius); border: 8px solid #fff; box-shadow: 0 24px 48px -24px rgba(31, 107, 45, 0.45); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 4px; min-width: 0; }
.steps li::before { content: counter(step); grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 1.5rem; color: #fff; background: var(--leaf); box-shadow: 0 4px 0 var(--leaf-deep); }
.steps li:nth-child(2)::before { background: var(--tangerine); box-shadow: 0 4px 0 #cf7410; }
.steps li:nth-child(3)::before { background: var(--apple); box-shadow: 0 4px 0 var(--apple-deep); }
.steps li:nth-child(4)::before { background: var(--sky); box-shadow: 0 4px 0 #3a97cf; }
.steps p { color: var(--ink-soft); }

/* Compounding */
.growth { width: min(760px, 100%); margin: -12px auto 40px; }
.money { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; }
.chart-card, .table-card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
#chart { width: 100%; height: auto; }
#chart text { font-family: var(--body); font-size: 12px; fill: var(--ink-soft); }
#chart text.val { font-weight: 800; font-size: 14px; fill: var(--ink); }
#chart text.axis { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
#chart .grid { stroke: var(--line); stroke-width: 1; }
#chart .bar { fill: var(--leaf); }
#chart .bar.young { fill: var(--leaf-soft); }
#chart .fruit-dot { fill: var(--apple); }
#chart .fruit-dot.young { fill: var(--tangerine); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1rem; }
th, td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 800; white-space: normal; vertical-align: bottom; }
tbody tr:last-child td { border-bottom: 0; }
td.hi { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 1.3rem; color: var(--leaf); }
td.lo { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(232, 65, 44, 0.6); text-decoration-thickness: 2px; }
.fine { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

/* AI */
.ai { background: var(--sky); padding-block: 72px; }
.ai-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ai .kicker { color: #fff; }
.ai .kicker::before { background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 200, 61, 0.3); }
.ai h2 { color: #fff; margin-top: 12px; }
.ai-row > p { color: #fff; font-size: 1.2rem; font-weight: 500; max-width: 50ch; }

/* Pricing */
.pricing { background: var(--peach); }
.price-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.basket { margin: 0; }
.basket img { border-radius: var(--radius); mix-blend-mode: multiply; }
.price-card { background: var(--paper); border-radius: 28px; padding: 44px; display: grid; gap: 20px; justify-items: start; box-shadow: 0 2px 0 rgba(247, 147, 30, 0.25), 0 30px 60px -30px rgba(207, 116, 16, 0.45); min-width: 0; }
.price-card h2 { display: grid; gap: 4px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.price-card .big { font-size: clamp(3.6rem, 8vw, 5.6rem); color: var(--apple); letter-spacing: -0.03em; line-height: 1; }
.price-card .per { font-family: var(--body); font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }

/* FAQ */
.qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
details { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 20px 24px; transition: border-color 0.15s ease; }
details[open] { border-color: var(--leaf-soft); }
summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 30px; height: 30px; background: url("img/icons/apple.svg") center / contain no-repeat; transition: transform 0.2s ease; }
summary:hover::after { transform: rotate(-8deg) scale(1.08); }
details[open] summary::after { background-image: url("img/icons/apple-bitten.svg"); }
details p { margin-top: 12px; color: var(--ink-soft); }

/* Closer */
.closer { padding: 0; }
.hills { display: block; width: 100%; height: 90px; }
.closer-band { background: var(--leaf); padding-block: 40px 88px; margin-top: -1px; }
.closer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closer h2 { color: #fff; max-width: 20ch; }

.foot { background: var(--leaf-deep); color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 24px; }
.foot .brand { color: #fff; }
.foot .brand .apple path:last-child { fill: var(--leaf-soft); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-art { animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
  @keyframes settle { from { transform: rotate(5deg) translateY(16px); } to { transform: rotate(1.6deg); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Narrow */
@media (max-width: 960px) {
  .links { display: none; }
  .nav-row .btn-small { margin-left: auto; }
  .hero-grid, .split, .how-grid, .money, .ai-row, .price-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .split, .how-grid, .price-grid { gap: 36px; }
  .basket { max-width: 460px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding-block: 72px; }
  .stats { grid-template-columns: 1fr; margin-top: 36px; }
  .qs { grid-template-columns: 1fr; }
  .price-card { padding: 28px 22px; }
  .chart-card, .table-card { padding: 20px 18px; }
  table { font-size: 0.9rem; }
  th, td { padding: 10px 6px; }
  td.hi { font-size: 1.1rem; }
  .brand { font-size: 1.15rem; }
  .fruit { white-space: normal; }
}
