:root {
  --ink: #172b25;
  --muted: #6d766f;
  --cream: #f3efe7;
  --paper: #fffdf8;
  --green: #254f40;
  --mint: #dbeadd;
  --peach: #efa97f;
  --line: rgba(23, 43, 37, 0.12);
  --shadow: 0 24px 65px rgba(36, 57, 49, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; overflow: hidden; }
.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: Manrope, sans-serif; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 12px; background: var(--green); color: white; }
.icon-button { width: 42px; height: 42px; padding: 11px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; display: grid; align-content: center; gap: 4px; }
.icon-button span { display: block; height: 1.5px; background: var(--ink); }
.account-area { display: flex; align-items: center; gap: 9px; }
.sign-in-button { border: 1px solid var(--line); background: rgba(255,255,255,.55); border-radius: 999px; padding: 10px 17px; cursor: pointer; font-weight: 700; }
.sign-in-button:hover { background: var(--paper); }
.profile-button { border: 0; background: var(--green); color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-weight: 800; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { text-align: center; padding: 72px 0 68px; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); z-index: -1; }
.hero::before { width: 240px; height: 240px; background: rgba(219,234,221,.6); left: 0; top: 28px; }
.hero::after { width: 190px; height: 190px; background: rgba(239,169,127,.14); right: 5%; bottom: 10px; }
.eyebrow, .section-kicker, .modal-kicker { font-size: .72rem; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; color: var(--green); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 5px rgba(239,169,127,.18); }
h1 { font-family: Manrope, sans-serif; font-size: clamp(3.2rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.065em; margin: 28px 0 25px; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--green); }
.hero > p { max-width: 720px; margin: 0 auto 22px; line-height: 1.7; color: var(--muted); font-size: 1.08rem; }
.hero-steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 auto 30px; color: var(--muted); font-size: .9rem; }
.hero-steps span { display: inline-flex; align-items: center; gap: 7px; }
.hero-steps b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: .76rem; }
.hero-steps i { color: var(--peach); font-style: normal; }
.primary-button { border: 0; background: var(--green); color: white; border-radius: 999px; padding: 15px 23px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 28px rgba(37,79,64,.2); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,79,64,.26); }
.primary-button .plus { font-size: 1.3rem; margin-right: 7px; line-height: 0; }
.primary-button.full { width: 100%; display: flex; justify-content: center; gap: 12px; margin-top: 10px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 80px; }
.stat-card { background: rgba(255,253,248,.72); border: 1px solid rgba(255,255,255,.7); border-radius: 22px; padding: 25px; display: flex; gap: 17px; align-items: center; box-shadow: 0 10px 40px rgba(28,51,43,.05); }
.stat-card.highlight { background: var(--mint); }
.stat-icon { width: 45px; height: 45px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.67); font-size: 1.2rem; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card span { font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }
.stat-card strong { display: block; font-family: Manrope, sans-serif; font-size: 1.8rem; margin: 3px 0; }
.stat-card small { font-size: .78rem; }

.content-section { min-height: 360px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { font: 700 clamp(1.65rem, 3vw, 2.3rem)/1.1 Manrope, sans-serif; letter-spacing: -.04em; margin: 8px 0 0; }
.filter-row { background: rgba(255,255,255,.52); border-radius: 999px; padding: 4px; display: flex; }
.filter { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: .84rem; color: var(--muted); }
.filter.active { background: var(--paper); color: var(--ink); box-shadow: 0 3px 12px rgba(28,51,43,.08); }
.purchase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.purchase-card { background: var(--paper); border: 1px solid rgba(255,255,255,.8); padding: 21px; border-radius: 20px; box-shadow: 0 12px 34px rgba(28,51,43,.06); position: relative; overflow: hidden; }
.purchase-card::before { content: ""; position: absolute; width: 90px; height: 90px; background: var(--mint); border-radius: 50%; right: -35px; top: -36px; opacity: .6; }
.purchase-status { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.purchase-card h3 { font: 700 1.15rem Manrope, sans-serif; margin: 14px 0 4px; padding-right: 15px; }
.purchase-card .store { font-size: .82rem; color: var(--muted); }
.purchase-card .price { font: 800 1.5rem Manrope, sans-serif; margin: 20px 0 14px; }
.progress-track { height: 6px; background: #e8e6df; border-radius: 99px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--peach); border-radius: inherit; }
.time-row { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--muted); margin: 9px 0 16px; }
.card-action { width: 100%; border: 1px solid var(--line); background: transparent; border-radius: 12px; padding: 10px; cursor: pointer; font-weight: 600; }
.card-action.ready { background: var(--green); color: white; border-color: var(--green); }
.resolved { opacity: .68; }
.resolved .purchase-status { color: var(--muted); }
.empty-state { text-align: center; padding: 35px 20px 80px; }
.empty-state.hidden { display: none; }
.empty-illustration { width: 105px; height: 105px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); position: relative; }
.empty-illustration b { font: 800 1.25rem Manrope; }
.orbit { position: absolute; border: 1px solid rgba(37,79,64,.2); border-radius: 50%; }
.orbit.one { width: 130px; height: 72px; transform: rotate(25deg); }
.orbit.two { width: 72px; height: 130px; transform: rotate(25deg); }
.empty-state h3 { font: 700 1.3rem Manrope; margin: 0; }
.empty-state p { max-width: 410px; margin: 8px auto 18px; color: var(--muted); line-height: 1.6; }
.text-button { background: transparent; border: 0; color: var(--green); font-weight: 700; cursor: pointer; }
.text-button span { margin-left: 5px; }
.quote-card { margin: 30px 0 80px; padding: 46px 30px; border-radius: 26px; background: var(--green); color: white; text-align: center; position: relative; overflow: hidden; }
.quote-card::after { content: ""; position: absolute; width: 220px; height: 220px; background: rgba(219,234,221,.08); border-radius: 50%; top: -120px; right: -40px; }
.quote-card .quote-mark { display: block; font: 4rem Georgia; color: var(--peach); line-height: .4; }
.quote-card .quote-close { margin-top: 18px; }
.quote-card p { font: 400 1.55rem Georgia, serif; margin: 18px 0 12px; }
.quote-card small { opacity: .62; }
footer { border-top: 1px solid var(--line); width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 38px; display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }
footer span { font-weight: 700; color: var(--ink); }
footer p { margin: 0; }

.sheet { width: min(580px, calc(100% - 28px)); border: 0; border-radius: 28px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(16,34,28,.5); backdrop-filter: blur(5px); }
.sheet form { padding: 36px; position: relative; }
.close-button { position: absolute; top: 18px; right: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.35rem; cursor: pointer; }
.sheet h2 { font: 800 2rem Manrope, sans-serif; letter-spacing: -.04em; margin: 10px 0 8px; }
.modal-copy { color: var(--muted); margin: 0 0 25px; line-height: 1.55; }
.sheet label, fieldset { display: block; font-size: .8rem; font-weight: 700; }
.sheet input:not([type=radio]):not([type=checkbox]), .sheet select { width: 100%; margin-top: 7px; border: 1px solid var(--line); background: #f8f6f0; border-radius: 12px; padding: 13px 14px; outline: 0; }
.sheet input:focus, .sheet select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37,79,64,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin: 16px 0; }
.optional { color: var(--muted); font-weight: 400; }
.currency-input { position: relative; }
.currency-input > span { position: absolute; left: 14px; top: 20px; color: var(--muted); z-index: 1; }
.currency-input input { padding-left: 29px !important; }
fieldset { border: 0; padding: 0; margin: 22px 0; }
.wait-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.wait-options label { cursor: pointer; }
.wait-options input { position: absolute; opacity: 0; }
.wait-options span { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 11px 7px; text-align: center; }
.wait-options small { display: block; color: var(--muted); font-weight: 400; font-size: .65rem; margin-top: 3px; }
.wait-options input:checked + span { border-color: var(--green); background: var(--mint); }
.decision-item { background: var(--cream); border-radius: 18px; padding: 18px; margin: 22px 0 17px; }
.decision-item strong, .decision-item span { display: block; }
.decision-item strong { font: 700 1.2rem Manrope; }
.decision-item span { color: var(--muted); margin-top: 5px; }
.prompt { color: var(--muted); line-height: 1.6; font-family: Georgia, serif; font-size: 1.05rem; }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.decision-actions button { border: 0; border-radius: 14px; padding: 13px; cursor: pointer; font-weight: 700; }
.decision-actions small { display: block; font-weight: 400; opacity: .7; margin-top: 2px; }
.skip-button { background: var(--green); color: white; }
.bought-button { background: var(--mint); }
.wait-button { grid-column: 1 / -1; background: transparent; border: 1px solid var(--line) !important; }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.setting-row strong, .setting-row small { display: block; }
.setting-row small { color: var(--muted); margin-top: 3px; }
.setting-row select { width: auto; margin: 0; }
.privacy-note { padding: 14px; background: var(--mint); border-radius: 12px; color: var(--green); font-size: .78rem; line-height: 1.5; margin-top: 22px; }
.auth-sheet form, .profile-sheet form { text-align: center; }
.auth-sheet label { text-align: left; margin-top: 22px; }
.auth-mark, .profile-avatar { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50% 50% 50% 16px; background: var(--green); color: white; font: 800 1.45rem Manrope, sans-serif; }
.auth-sheet h2, .profile-sheet h2 { max-width: 420px; margin-left: auto; margin-right: auto; }
.auth-footnote { color: var(--muted); font-size: .72rem; line-height: 1.5; margin: 18px auto 0; max-width: 390px; }
.mail-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 1.6rem; }
.profile-avatar { border-radius: 50%; }
.sync-status { display: flex; text-align: left; gap: 12px; padding: 16px; margin: 22px 0; border-radius: 14px; background: var(--mint); }
.sync-status > span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--green); color: white; }
.sync-status strong, .sync-status small { display: block; }
.sync-status small { color: var(--muted); margin-top: 3px; }
.secondary-button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 13px 20px; font-weight: 700; cursor: pointer; }
.full { width: 100%; }
.syncing::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 20; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .topbar, main, footer { width: min(100% - 28px, 1120px); }
  .topbar { padding: 18px 0; }
  .brand > span:last-child { display: none; }
  .hero { padding: 48px 0 48px; }
  .hero-steps { gap: 9px; }
  .hero-steps i { display: none; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .stats { grid-template-columns: 1fr; margin-bottom: 60px; }
  .section-heading { align-items: start; flex-direction: column; }
  .purchase-grid { grid-template-columns: 1fr; }
  .sheet form { padding: 32px 20px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .wait-options { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
