/* Counting Carrots website. Colors match the app (src/app.css in the app repo). */
:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #26221e;
  --muted: #6b645c;
  --line: #e4ddd3;
  --carrot: #e8701a;
  --carrot-dark: #b9530c;
  --carrot-soft: #fdeedf;
  --leaf: #2f7d32;
  --leaf-soft: #e6f3e6;
  --bad: #b3261e;
  --bad-soft: #fde8e6;
  --warn: #8a5a00;
  --warn-soft: #fff4d6;
  --warn-line: #f0d48a;
  --leaf-bright: #6cc24a;
  --on-accent: #ffffff;
  --shadow: rgba(38, 34, 30, 0.1);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1917;
    --card: #25221f;
    --ink: #ede8e2;
    --muted: #a9a097;
    --line: #3d3833;
    --carrot: #ec7b2a;
    --carrot-dark: #f7a263;
    --carrot-soft: #3a2819;
    --leaf: #72c276;
    --leaf-soft: #1e3120;
    --bad: #f2837a;
    --bad-soft: #3b201e;
    --warn: #f2c65c;
    --warn-soft: #33290f;
    --warn-line: #5c4a1a;
    --shadow: rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1917;
  --card: #25221f;
  --ink: #ede8e2;
  --muted: #a9a097;
  --line: #3d3833;
  --carrot: #ec7b2a;
  --carrot-dark: #f7a263;
  --carrot-soft: #3a2819;
  --leaf: #72c276;
  --leaf-soft: #1e3120;
  --bad: #f2837a;
  --bad-soft: #3b201e;
  --warn: #f2c65c;
  --warn-soft: #33290f;
  --warn-line: #5c4a1a;
  --shadow: rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
a { color: var(--carrot-dark); }
h1, h2, h3, .brand, .price {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.15; letter-spacing: -0.015em;
}
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  max-width: 1080px; width: 100%; margin: 0 auto; padding: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a.nav-buy { color: var(--carrot-dark); font-weight: 600; }

.eyebrow {
  margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--carrot-dark);
}
.center { text-align: center; }

.hero {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  margin: 8px 0 0; padding: 56px 48px; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, var(--leaf-soft) 0, transparent 45%),
    radial-gradient(circle at 0% 100%, var(--carrot-soft) 0, transparent 55%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px -18px var(--shadow);
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 18px; }
.hero .hl {
  color: var(--carrot-dark);
  background: linear-gradient(transparent 62%, var(--carrot-soft) 62%);
}
.hero .buttons { justify-content: flex-start; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin: 0 0 24px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-carrots { position: absolute; width: 130px; height: 130px; top: -62px; right: -22px; transform: rotate(8deg); z-index: 2; filter: drop-shadow(0 6px 10px var(--shadow)); }
.stub {
  position: relative; width: 100%; max-width: 320px; padding: 20px 22px 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); transform: rotate(-2.5deg);
  box-shadow: 0 20px 40px -16px var(--shadow), 0 2px 6px var(--shadow);
  font-size: 0.92rem; font-variant-numeric: tabular-nums;
}
.stub p { margin: 0; }
.stub-head { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 1.05rem; }
.tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }
.stub-name { color: var(--muted); margin: 2px 0 12px !important; }
.stub-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.stub-gross { color: var(--ink); font-weight: 600; border-top: none; }
.stub-net { color: var(--leaf); font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--line); margin-top: 4px !important; padding-top: 10px; }
.stub-note { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 10px !important; font-style: italic; }

.section { margin: 72px 0 0; scroll-margin-top: 16px; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 auto 28px; max-width: 20em; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 16px 0; }
/* In a card the buttons are stacked, all as wide as the widest. */
.card .buttons { display: inline-grid; grid-template-columns: 1fr; }
.button {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button-label { display: inline-flex; align-items: center; gap: 8px; }
.os-icon { width: 1.1em; height: 1.1em; flex: none; }
.button small { font-weight: 400; font-size: 0.8rem; opacity: 0.85; }
.button:hover { border-color: var(--carrot); }
.button.primary { background: var(--carrot); border-color: var(--carrot); color: var(--on-accent); }
.button.primary:hover { background: var(--carrot-dark); border-color: var(--carrot-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button.primary:hover { background: #d0631a; border-color: #d0631a; } }
.button.disabled { color: var(--muted); cursor: default; }
.button.disabled:hover { border-color: var(--line); }

.section-lede { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 36em; margin: -12px auto 28px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step {
  counter-increment: step; position: relative; padding: 22px 24px 22px 76px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px var(--shadow);
}
.step::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--leaf); color: var(--on-accent); font-weight: 800; font-size: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 1px 3px var(--shadow);
}
.feature { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.feature:hover { transform: translateY(-2px); border-color: var(--carrot); box-shadow: 0 10px 24px -12px var(--shadow); }
.feature .icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  background: var(--carrot-soft); font-size: 1.35rem;
}
.feature:nth-child(even) .icon { background: var(--leaf-soft); }
.feature h3 { font-size: 1.15rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); }

.caution {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--warn-soft); border: 1px solid var(--warn-line); border-left: 6px solid var(--warn);
  border-radius: var(--radius); padding: 24px 28px;
}
.caution h2 { font-size: 1.35rem; margin: 2px 0 8px; }
.caution p { margin: 0; }
.caution-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--warn); color: var(--warn-soft); font-weight: 800; font-size: 1.3rem;
}
.caution-small { display: block; padding: 12px 16px; border-left-width: 4px; font-size: 0.9rem; margin: 0 0 20px; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; scroll-margin-top: 16px; }
.pricing h3 { margin: 0 0 8px; font-size: 1.5rem; }
.card.accent { background: var(--carrot-soft); border-color: var(--carrot); border-width: 2px; }

.narrow { max-width: 640px; margin: 24px auto 0; }
.narrow.wide { max-width: 880px; }
.lede-small { font-size: 1.08rem; color: var(--muted); margin: -4px 0 20px; }
.scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.scope h2 { font-size: 1.2rem; margin: 0 0 12px; }
.scope .checks, .scope .crosses { margin: 0; font-size: 0.95rem; }
.scope-does { border-top: 4px solid var(--leaf); }
.scope-doesnt { border-top: 4px solid var(--bad); }
.crosses { padding: 0; list-style: none; }
.crosses li { padding-left: 28px; position: relative; margin: 8px 0; }
.crosses li::before { content: "✕"; position: absolute; left: 4px; color: var(--bad); font-weight: 700; }
.buy-card { max-width: 640px; margin: 0 auto; }
.price { font-size: 2.4rem; font-weight: 700; margin: 0 0 8px; }
.checks { padding: 0; list-style: none; margin: 0 0 20px; }
.checks li { padding-left: 28px; position: relative; margin: 6px 0; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--leaf); font-weight: 700; }

form.card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
label { font-weight: 600; }
input[type="email"] {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
input:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid var(--carrot); outline-offset: 2px; }

.alert { background: var(--bad-soft); color: var(--bad); padding: 12px 16px; border-radius: 10px; }
.notice { background: var(--leaf-soft); padding: 12px 16px; border-radius: 10px; }

.bottom { margin-top: 56px; color: var(--muted); font-size: 0.88rem; padding: 32px 16px; border-top: 1px solid var(--line); background: var(--card); }
.bottom-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.bottom-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.bottom .fine { max-width: 44em; margin: 0 auto 12px; }
.bottom a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 40px 28px 48px; }
  .hero-art { width: 100%; max-width: 340px; margin: 24px auto 0; }
}
@media (max-width: 560px) {
  .top nav { gap: 14px; font-size: 0.95rem; }
  .hero { padding: 28px 18px 36px; border-radius: 20px; }
  .hero-carrots { width: 96px; height: 96px; top: -44px; right: -4px; }
  .lede { font-size: 1.05rem; }
  .features, .pricing, .scope, .steps { grid-template-columns: 1fr; }
  .section { margin-top: 48px; }
  .caution { flex-direction: column; gap: 12px; padding: 20px; }
  .buttons, .hero .buttons { flex-direction: column; align-items: stretch; }
  .card .buttons { display: grid; }
  .feature, .card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) { .feature { transition: none; } .feature:hover { transform: none; } }
