:root {
  --ink: #160d26;
  --purple: #57268d;
  --violet: #7d3fc6;
  --lime: #c9ff47;
  --cream: #fbf8f2;
  --muted: #71697b;
  --line: #e8e0ec;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  height: 78px; max-width: 1180px; margin: auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.8px; display: flex; align-items: center; gap: 9px; }
.logo > span > span { color: var(--violet); }
.logo-mark { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 17px; transform: rotate(-5deg); }
.header-link { color: var(--ink); font-weight: 650; font-size: 14px; text-underline-offset: 4px; }

.hero {
  padding: 72px 24px 100px; min-height: 800px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(201,255,71,.26), transparent 18%),
    radial-gradient(circle at 8% 60%, rgba(182,117,242,.2), transparent 25%),
    linear-gradient(145deg, #1b0d2e 0%, #32104f 52%, #571b75 100%);
  color: white;
}
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; width: 620px; height: 620px; right: -280px; top: 10px; }
.hero::after { width: 420px; height: 420px; right: auto; left: -260px; top: 370px; }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 auto 26px; display: flex; justify-content: center; align-items: center; gap: 9px; text-transform: uppercase; font-size: 11px; letter-spacing: 1.8px; font-weight: 750; color: #e6d9ed; }
.eyebrow span { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 14px var(--lime); }
h1 { text-align: center; font-size: clamp(47px, 7vw, 76px); letter-spacing: -4px; line-height: .98; margin: 0; }
h1 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 540px; margin: 23px auto 44px; text-align: center; color: #ddd0e5; font-size: 17px; line-height: 1.6; }

.calculator { max-width: 820px; margin: auto; background: var(--white); color: var(--ink); border-radius: 22px; box-shadow: 0 25px 80px rgba(8,2,20,.38); overflow: hidden; }
.step { padding: 30px 34px; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.step:last-child { border: 0; }
.step.locked { opacity: .4; pointer-events: none; }
.step-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 23px; }
.step-number { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 13px; }
.step-heading h2 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.35px; }
.step-heading p { margin: 0; font-size: 13px; color: var(--muted); }
.search-box { min-height: 59px; border: 1.5px solid #d7cddd; border-radius: 12px; display: flex; align-items: center; padding: 5px 5px 5px 18px; box-shadow: 0 4px 15px rgba(41,12,66,.05); transition: border .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(125,63,198,.1); }
.search-icon { width: 17px; height: 17px; border: 2px solid #6e6477; border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: #6e6477; transform: rotate(45deg); right: -5px; bottom: -2px; }
.search-box input { border: 0; outline: 0; min-width: 0; flex: 1; height: 46px; padding: 0 16px; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #968e9d; }
.search-box button, .manual-form button { border: 0; border-radius: 9px; background: var(--lime); padding: 13px 20px; font-weight: 800; cursor: pointer; }
.search-box button:hover, .manual-form button:hover { background: #baf52d; }
.quick-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 2px 2px; }
.quick-search > span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 750; color: #94899d; margin-right: 2px; }
.quick-search button { border: 1px solid #e4dce8; border-radius: 100px; padding: 6px 10px; font-size: 11px; background: #faf8fb; cursor: pointer; }
.quick-search button:hover { border-color: var(--violet); color: var(--purple); }
.search-status { font-size: 13px; color: var(--muted); padding-top: 10px; }
.search-status.error { color: #b3261e; }
.results { display: grid; gap: 9px; margin-top: 12px; }
.result { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; text-align: left; width: 100%; }
.result:hover { border-color: #aa7fd2; background: #fdfaff; }
.result img, .result-image { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: #f1edf3; display: grid; place-items: center; color: var(--violet); font-weight: 800; }
.result b { display: block; font-size: 13px; }
.result small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.sugar-pill { font-weight: 800; font-size: 12px; color: var(--purple); background: #f0e6f8; padding: 7px 9px; border-radius: 8px; white-space: nowrap; }
.manual-toggle { background: none; border: 0; padding: 15px 0 0; color: var(--purple); font-size: 12px; font-weight: 700; cursor: pointer; }
.manual-toggle span { color: var(--violet); }
.manual-form { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 10px; margin-top: 16px; padding: 15px; background: #f7f2f9; border-radius: 12px; }
.manual-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.manual-form input { min-width: 0; width: 100%; height: 42px; border: 1px solid #dcd2e1; border-radius: 8px; padding: 0 10px; outline: 0; background: white; }
.input-unit { position: relative; }
.input-unit input { padding-right: 28px; }
.input-unit b { position: absolute; right: 10px; top: 12px; color: var(--muted); }
.hidden { display: none !important; }

.selected-drink { margin: -5px 0 22px 46px; padding: 11px 14px; border-radius: 10px; background: #f4eef8; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.selected-drink strong { display: block; }
.selected-drink span { color: var(--muted); font-size: 11px; }
.selected-drink button { border: 0; background: none; color: var(--purple); text-decoration: underline; cursor: pointer; font-size: 11px; }
.volume-wrap { margin-left: 46px; }
.volume-readout { font-weight: 850; font-size: 34px; letter-spacing: -1.5px; margin-bottom: 8px; }
.volume-readout small { font-size: 14px; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
input[type="range"] { appearance: none; width: 100%; height: 5px; border-radius: 5px; background: linear-gradient(to right, var(--violet) var(--fill, 33.6%), #e6dce9 var(--fill, 33.6%)); outline: 0; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 23px; height: 23px; border-radius: 50%; background: var(--lime); border: 4px solid var(--ink); cursor: pointer; box-shadow: 0 2px 5px #aaa; }
.range-labels { display: flex; justify-content: space-between; margin-top: 9px; font-size: 10px; color: #918997; }
.size-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.size-buttons button { border: 1px solid #ded5e3; background: white; border-radius: 8px; padding: 7px 11px; font-size: 11px; cursor: pointer; }
.size-buttons button.selected { border-color: var(--violet); color: var(--purple); background: #f4ecf9; font-weight: 800; }

.recipe { margin-left: 46px; }
.recipe-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.recipe-card { padding: 18px; border-radius: 13px; background: var(--ink); color: white; }
.recipe-card.accent { background: var(--lime); color: var(--ink); }
.recipe-card small { display: block; color: #c7b9d0; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 750; margin-bottom: 9px; }
.recipe-card.accent small { color: #4e5b1d; }
.recipe-card strong { font-size: 31px; letter-spacing: -1px; }
.recipe-card strong span { font-size: 14px; margin-left: 3px; }
.recipe-instruction { border-left: 3px solid var(--lime); padding: 2px 0 2px 14px; margin-top: 17px; font-size: 13px; line-height: 1.55; }
.recipe-warning { margin-top: 13px; padding: 11px 13px; border-radius: 9px; background: #fff6dd; color: #654e08; font-size: 11px; line-height: 1.5; }
.recipe-ok { background: #eaf7df; color: #245719; }

.facts { max-width: 1120px; margin: auto; padding: 105px 28px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 90px; align-items: end; }
.kicker { color: var(--violet); text-transform: uppercase; font-weight: 800; font-size: 10px; letter-spacing: 1.8px; }
.facts h2, .notes h2, .support-card h2 { font-size: clamp(33px, 4vw, 49px); letter-spacing: -2.2px; line-height: 1.04; margin: 14px 0 20px; }
.fact-intro p { color: var(--muted); line-height: 1.7; font-size: 15px; max-width: 430px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact-grid article { border-top: 2px solid var(--ink); padding-top: 20px; }
.fact-grid strong { font-size: 31px; letter-spacing: -1.5px; }
.fact-grid strong span { font-size: 12px; letter-spacing: 0; color: var(--violet); margin-left: 2px; }
.fact-grid h3 { font-size: 12px; margin: 13px 0 6px; }
.fact-grid p { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 0; }

.notes { background: white; padding: 95px max(28px, calc((100vw - 1064px)/2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.notes ul { list-style: none; padding: 0; margin: 0; }
.notes li { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.notes li > span { font-weight: 800; color: var(--violet); font-size: 11px; }
.notes h3 { font-size: 15px; margin: 0 0 7px; }
.notes p { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.6; }

.support-card { max-width: 1064px; margin: 90px auto; padding: 45px 50px; border-radius: 19px; background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.support-card .kicker { color: var(--lime); }
.support-card h2 { font-size: 30px; letter-spacing: -1.2px; margin: 10px 0; }
.support-card p { color: #c7bacf; font-size: 13px; margin: 0; }
.support-card a { flex: 0 0 auto; color: var(--ink); background: var(--lime); text-decoration: none; border-radius: 10px; padding: 15px 19px; font-weight: 800; font-size: 13px; }

footer { max-width: 1064px; margin: 0 auto; padding: 20px 0 45px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; align-items: start; }
footer p { font-size: 10px; color: var(--muted); line-height: 1.6; margin: 0; }
footer a { color: var(--purple); }

@media (max-width: 760px) {
  .site-header { height: 65px; padding: 0 18px; }
  .hero { padding: 52px 13px 65px; }
  h1 { letter-spacing: -2.8px; }
  .hero-copy { font-size: 15px; margin-bottom: 30px; }
  .step { padding: 25px 19px; }
  .search-box { padding-left: 14px; }
  .search-box button { padding: 13px 14px; }
  .manual-form { grid-template-columns: 1fr; }
  .selected-drink, .volume-wrap, .recipe { margin-left: 0; }
  .recipe-main { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; gap: 35px; padding: 72px 22px; }
  .notes { grid-template-columns: 1fr; gap: 20px; padding: 70px 22px; }
  .support-card { margin: 55px 15px; padding: 30px 25px; display: block; }
  .support-card a { display: inline-block; margin-top: 23px; }
  footer { margin: 0 20px; grid-template-columns: 1fr; padding-bottom: 30px; }
}

@media (max-width: 430px) {
  .search-icon { display: none; }
  .search-box input { padding-left: 9px; font-size: 13px; }
  .result { grid-template-columns: 40px 1fr; }
  .result img, .result-image { width: 40px; height: 40px; }
  .sugar-pill { grid-column: 2; justify-self: start; }
  .recipe-card strong { font-size: 26px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid article { display: grid; grid-template-columns: 70px 1fr; }
  .fact-grid h3 { margin-top: 5px; }
  .fact-grid p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
