/* Gallonworks marketing site. Navy #0F2A44, amber #F2A900, Space Grotesk. */
:root {
  --navy: #0F2A44;
  --navy-900: #081827;
  --accent: #4C51E8;
  --accent-text: #4C51E8;
  --accent-on-dark: #8F93FF;
  --accent-soft: #ecedfd;
  --lilac: #dcdcfa;
  --mist: #e4eef0;
  --ink: #0b1b2b;
  --muted: #4d5d6f;
  --line: #dbe2ea;
  --bg: #f4f7fa;
  --white: #fff;
  --good: #0b6a34;
  --bad: #b3261e;
  --radius: 24px;
  --shadow-soft: 0 6px 20px rgba(15, 23, 32, .07);
  --shadow-lift: 0 18px 44px rgba(15, 23, 32, .14);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 22ch; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--accent); color: var(--navy); border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow--accent { color: var(--accent-on-dark); background: rgba(143, 147, 255, .16); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .35s var(--bounce), box-shadow .25s ease, background .2s ease; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(76, 81, 232, .35); }
.btn--accent:hover { background: #3b40d6; box-shadow: 0 14px 30px rgba(76, 81, 232, .4); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--block { width: 100%; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 16, 23, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.top__nav { display: flex; align-items: center; gap: 22px; }
.top__nav a:not(.btn) { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 500; font-size: .98rem; }
.top__nav a:not(.btn):hover { color: #fff; text-decoration: underline; }
@media (max-width: 720px) { .top__nav a:not(.btn) { display: none; } }

/* Soft blobs (decoration) */
.blob { position: absolute; z-index: 0; border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%; pointer-events: none; }
.blob--a { top: -90px; right: -70px; width: 420px; height: 420px; background: rgba(76, 81, 232, .38); filter: blur(4px); }
.blob--b { bottom: -120px; left: -110px; width: 340px; height: 340px; background: rgba(143, 147, 255, .16); }
.blob--c { top: 40px; right: -120px; width: 300px; height: 300px; background: var(--accent-soft); }
.blob--d { bottom: -80px; left: -90px; width: 260px; height: 260px; background: var(--mist); }
.hero .wrap, .section .wrap { position: relative; z-index: 1; }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--navy-900), var(--navy)); color: #fff; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.hero .eyebrow { color: var(--accent); }
.lead { margin-top: 18px; max-width: 34ch; color: rgba(255, 255, 255, .88); font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 18px; color: rgba(255, 255, 255, .7); font-size: .98rem; }

/* Phone drawing */
.phone { position: relative; z-index: 1; justify-self: center; width: min(320px, 86vw); padding: 12px; border-radius: 44px; background: #03101d; box-shadow: 0 30px 70px rgba(76, 81, 232, .38), inset 0 0 0 2px rgba(255, 255, 255, .08); transition: transform .5s var(--bounce); }
.phone:hover { transform: translateY(-6px) rotate(-1deg); }
.phone__screen { padding: 16px 14px 18px; border-radius: 28px; background: var(--bg); color: var(--ink); font-size: .82rem; }
.phone__bar { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.phone__dot { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); }
.phone__live { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #e6f6ec; color: var(--good); font-size: .72rem; }
.phone__label { margin: 14px 0 8px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.phone__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: grid; gap: 1px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.tile span { color: var(--muted); font-size: .72rem; }
.tile strong { font-size: 1.15rem; letter-spacing: -.02em; }
.tile em { font-style: normal; font-size: .68rem; color: var(--muted); }
.tile em.up { color: var(--good); }
.tile em.down { color: var(--bad); }
.tank { display: grid; grid-template-columns: 62px 1fr 58px; align-items: center; gap: 8px; margin-bottom: 7px; }
.tank b { font-weight: 600; font-size: .72rem; text-align: right; color: var(--muted); }
.tank__track { height: 9px; border-radius: 999px; background: #e3e9f0; overflow: hidden; }
.tank__track i { display: block; height: 100%; border-radius: 999px; background: var(--navy); }
.tank__track i.low { background: var(--bad); }
.phone__alert { margin-top: 12px; padding: 9px 10px; border-radius: 10px; background: #fff3dc; color: #6b4a00; font-size: .76rem; }

/* Sections */
.section { position: relative; padding: clamp(52px, 8vw, 96px) 0; overflow: hidden; }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy); color: #fff; }

.cards { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); transition: transform .35s var(--bounce), box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 8px; }
.card h3::before { content: ""; display: block; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 12px; background: var(--accent-soft); box-shadow: inset 0 0 0 9px var(--accent-soft), inset 0 0 0 20px var(--accent); }
.card p { color: var(--muted); font-size: 1rem; }

.steps { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 62px 24px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--muted); counter-increment: step; box-shadow: var(--shadow-soft); }
.steps li::before { content: counter(step); position: absolute; top: 18px; left: 24px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem; }
.steps strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 1.08rem; }

.safe { margin-top: 28px; padding: 28px; border-radius: 32px; background: var(--navy); color: #fff; }
.safe ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .safe ul { grid-template-columns: 1fr 1fr; gap: 12px 28px; } }
.safe li { position: relative; padding-left: 26px; color: rgba(255, 255, 255, .88); font-size: 1rem; }
.safe li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-on-dark); }

.pricing { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .pricing { grid-template-columns: 1fr minmax(320px, 420px); } }
.pricing .muted { margin-top: 14px; max-width: 40ch; }
.price { padding: 30px; border: 0; border-radius: 32px; background: #fff; box-shadow: var(--shadow-lift); }
.price__row { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.price__amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price__what { color: var(--muted); }
.price__list { display: grid; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.price__list li { position: relative; padding-left: 26px; }
.price__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.story { max-width: 760px; }
.story h2 { margin-bottom: 22px; }
.story p:not(.eyebrow) { margin-top: 16px; color: rgba(255, 255, 255, .9); font-size: 1.12rem; }
.story .story__sign { margin-top: 24px; color: var(--accent-on-dark); font-weight: 600; }

.book { display: grid; gap: 32px; }
@media (min-width: 860px) { .book { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.book .muted { margin-top: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.field { grid-column: 1 / -1; display: grid; gap: 6px; }
@media (min-width: 560px) { .field--half { grid-column: span 1; } }
.field label { font-weight: 600; font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cfd3da; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); outline-color: var(--accent); }
.field.is-bad input { border-color: var(--bad); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__hint { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
.form .btn { grid-column: 1 / -1; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; font-weight: 600; }
.form__status.is-bad { color: var(--bad); }
.form__status.is-good { color: var(--good); }

.foot { padding: 32px 0; background: var(--navy-900); color: rgba(255, 255, 255, .72); font-size: .92rem; }
.foot__row { display: grid; gap: 16px; align-items: center; }
@media (min-width: 860px) { .foot__row { grid-template-columns: auto 1fr auto; gap: 28px; } }
.foot nav { display: flex; gap: 18px; }
.foot a { color: #fff; }

/* Privacy page */
.doc { padding: clamp(36px, 6vw, 72px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.doc h2 { margin: 30px 0 8px; font-size: 1.3rem; max-width: none; }
.doc p, .doc li { color: #2b3a4a; }
.doc p { margin-top: 10px; }
.doc ul { padding-left: 22px; }
.draft { margin: 18px 0; padding: 12px 14px; border-left: 4px solid var(--accent); background: #fff7e2; color: #5a3f00; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }
