@import url("/assets/fonts/fonts.css");

/* UP BUDGET UP store. One light theme on purpose: white space, one brand green, charcoal text. */
:root {
  --green: #12a03f;
  --green-deep: #0e8a36;
  --green-dark: #0b6e2c;
  --lime: #8be012;
  --mint: #e3f6e5;
  --mint-2: #f1faf2;
  --ink: #1e2329;
  --ink-2: #4b5560;
  --ink-3: #7b8692;
  --line: #e4e9e5;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 36, 24, 0.06), 0 8px 24px rgba(16, 36, 24, 0.06);
  --shadow-lift: 0 2px 4px rgba(16, 36, 24, 0.08), 0 18px 40px rgba(16, 36, 24, 0.12);
  --display: "Fredoka", "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-deep); }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 26px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; white-space: nowrap; }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 6px 18px rgba(18, 160, 63, 0.28); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(18, 160, 63, 0.32); }
.btn-ghost { background: var(--mint); color: var(--green-dark); }
.btn-ghost:hover { background: #d4f0d8; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--white); }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand-link img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--green-deep); }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--white); color: var(--green-dark); font-size: 12px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .brand-link img { height: 28px; } }

/* Hero with scroll-scrubbed film */
.hero { position: relative; height: 260vh; }
.hero-stage { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); height: calc(100vh - 68px); height: calc(100svh - 68px); display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.4vw, 70px); }
.hero h1 .accent { color: var(--green); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin-top: 20px; max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.hero-cta.center { justify-content: center; }
.bundle-note { margin-top: 14px; font-size: 14px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-meta span::before { content: "✓ "; color: var(--green); font-weight: 600; }
.film { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.film canvas, .film .film-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.film .film-still { object-fit: contain; }
.film-arrow { position: absolute; left: 54.5%; top: 1%; width: 13%; height: 27%; opacity: 0; transform: translateY(45%) scale(0.85); transform-origin: 50% 100%; transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.2, 1.4, 0.4, 1); pointer-events: none; }
.film-arrow.on { opacity: 1; transform: none; }
.film-arrow svg { width: 100%; height: 100%; overflow: visible; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; transition: opacity 0.3s; }
.scroll-hint i { width: 18px; height: 28px; border: 2px solid var(--ink-3); border-radius: 10px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-3); animation: hint 1.6s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) {
  .hero { height: 220vh; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero h1 { font-size: clamp(38px, 10vw, 56px); }
}
@media (max-width: 860px) and (max-height: 700px) { .hero-sub { display: none; } .hero-meta { display: none; } }
.hero.static { height: auto; }
.hero.static .hero-stage { position: relative; top: 0; height: auto; padding: 48px 0 72px; }
.hero.static .scroll-hint { display: none; }

/* Sections */
section.block { padding: 96px 0; }
section.block.tint { background: var(--mint-2); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; display: grid; gap: 14px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 640px) { section.block { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; align-content: start; }
.step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--white); font-family: var(--display); font-weight: 600; }
.step h3 { font-size: 22px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step .shot { border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; background: var(--white); aspect-ratio: 16 / 10; }
.step .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Planner showcase with device frames */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.devices { position: relative; width: min(100%, 980px); padding-bottom: 6%; }
.laptop { width: 88%; }
.laptop .screen { background: #1d2127; border-radius: 18px 18px 0 0; padding: 2.2% 2.2% 0; }
.laptop .screen-inner { border-radius: 6px 6px 0 0; overflow: hidden; background: var(--white); aspect-ratio: 16 / 10; }
.laptop .screen-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop .base { height: 16px; background: linear-gradient(#d9dee3, #b9c0c7); border-radius: 0 0 14px 14px; margin: 0 -4%; position: relative; }
.laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; margin-left: -8%; background: #c6ccd2; border-radius: 0 0 8px 8px; }
.phone { position: absolute; right: 0; bottom: 0; width: 23%; background: #1d2127; border-radius: 30px; padding: 1.1%; box-shadow: var(--shadow-lift); }
.phone .screen-inner { border-radius: 24px; overflow: hidden; background: var(--white); aspect-ratio: 9 / 19; }
.phone .screen-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.chip::before { content: "✓ "; color: var(--green); }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; display: grid; gap: 12px; align-content: start; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card .icon { width: 100%; aspect-ratio: 1; border-radius: 22%; overflow: hidden; }
.card .icon img { width: 100%; height: 100%; transition: transform 0.35s ease; }
.card:hover .icon img { transform: scale(1.05) rotate(-1.5deg); }
.card h3 { font-size: 20px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.card .price { font-family: var(--display); font-weight: 600; font-size: 22px; }
.card a.more { font-size: 14px; font-weight: 500; text-decoration: none; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Bundle */
.bundle { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 32px; align-items: center; background: linear-gradient(135deg, #0e9f57 0%, #22b33a 55%, #8be012 100%); color: var(--white); border-radius: 28px; padding: 32px; margin-top: 28px; }
.bundle .icon { border-radius: 22%; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); aspect-ratio: 1; align-self: center; }
.bundle .icon img { width: 100%; height: 100%; }
.bundle h3 { font-size: clamp(28px, 3vw, 36px); }
.bundle p { margin-top: 8px; opacity: 0.95; }
.bundle .price-line { margin-top: 14px; font-family: var(--display); font-size: 30px; font-weight: 600; }
.bundle .price-line s { font-size: 18px; opacity: 0.75; margin-left: 8px; font-weight: 500; }
.bundle .btn { background: var(--white); color: var(--green-dark); }
.bundle .btn:hover { background: #f2fff4; }
@media (max-width: 860px) { .bundle { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; } .bundle .icon { width: 160px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--green); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* Final CTA */
.final { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 860px; margin: 0 auto; }
.final video, .final img { width: 100%; height: auto; }
.final h2 { font-size: clamp(32px, 4vw, 46px); }
.final p { margin: 12px 0 24px; color: var(--ink-2); font-size: 18px; }
@media (max-width: 760px) { .final { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; } .final > :first-child { width: 200px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer img { height: 28px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--green-deep); }

/* Product page */
.product-hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0 72px; }
.product-hero .icon { border-radius: 22%; overflow: hidden; box-shadow: var(--shadow-lift); }
.product-hero h1 { font-size: clamp(36px, 4.6vw, 56px); margin-top: 10px; }
.product-hero .tagline { font-size: 20px; color: var(--ink-2); margin-top: 14px; }
.product-hero .blurb { margin-top: 16px; color: var(--ink-2); }
.product-hero .buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.product-hero .price { font-family: var(--display); font-size: 36px; font-weight: 600; }
.features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.features li { padding-left: 30px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230e8a36' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.product-shot { margin-bottom: 72px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.breadcrumb { font-size: 14px; padding-top: 24px; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
@media (max-width: 860px) { .product-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; } .product-hero .icon { max-width: 300px; } }

/* Prose pages (legal) */
.prose { max-width: 720px; margin: 0 auto; padding: 56px 0 96px; }
.prose h1 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose .updated { color: var(--ink-3); font-size: 14px; }
.fill { background: #fff3c4; color: #7a4a00; border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Thank-you */
.thanks { max-width: 680px; margin: 0 auto; padding: 32px 0 96px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.thanks video, .thanks img.still { width: 240px; height: auto; }
.thanks video, .final video { filter: brightness(1.04) contrast(1.02); }
.thanks h1 { font-size: clamp(34px, 4.4vw, 50px); }
.thanks .lead { color: var(--ink-2); font-size: 18px; }
.links { width: 100%; display: grid; gap: 12px; margin-top: 12px; text-align: left; }
.link-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--white); }
.link-row img { width: 52px; height: 52px; border-radius: 22%; }
.link-row .name { font-weight: 600; flex: 1; min-width: 0; }
.notice { background: var(--mint-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink-2); font-size: 15px; width: 100%; }

/* Checkout drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: end; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(20, 28, 24, 0.45); opacity: 0; transition: opacity 0.25s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: relative; width: min(440px, 100%); height: 100%; background: var(--white); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.drawer.open .panel { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 24px; }
.icon-btn { border: 0; background: var(--mint-2); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink); }
.drawer .body { overflow-y: auto; padding: 16px 20px; display: grid; gap: 10px; align-content: start; }
.opt { display: grid; grid-template-columns: auto 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: #bfe6c7; }
.opt.checked { border-color: var(--green); background: var(--mint-2); }
.opt input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.opt img { width: 48px; height: 48px; border-radius: 22%; }
.opt .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.opt .s { font-size: 13px; color: var(--ink-3); }
.opt .p { font-family: var(--display); font-weight: 600; }
.opt.bundle-opt { border-style: dashed; }
.opt.disabled { opacity: 0.45; pointer-events: none; }
.drawer .label { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 8px; }
.drawer footer { border-top: 1px solid var(--line); padding: 16px 20px; display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.total .amt { font-family: var(--display); font-size: 28px; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.consent input { width: 18px; height: 18px; accent-color: var(--green); margin: 1px 0 0; }
.drawer .msg { font-size: 14px; color: #b42318; min-height: 1em; }
.drawer .btn-primary { width: 100%; padding: 16px; font-size: 17px; }
.secure { font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* Reveal on scroll (starts visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
