/* padoil.com — one stylesheet for every page. Dark like the app, pad colours as accents. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #161618;
  --window: #1c1c1e;
  --panel: #232326;
  --panel-2: #2c2c30;
  --text: #f2f2f4;
  --muted: #a1a1a8;
  --dim: #8a8a91;   /* 4.5:1+ on --bg, --window and --panel for 12–13px text */
  --ring: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --ring-hover: 0 0 0 1px rgba(255, 255, 255, 0.14);

  --kick: #e8574f;
  --snare: #ee9d5b;
  --clap: #f0d66b;
  --closed-hat: #6fc29b;
  --open-hat: #8fe7f2;
  --cymbal: #4f80e1;
  --perc: #9586ec;
  --tom: #b770de;

  --danger: #ff8a80;
  --ok: var(--closed-hat);

  --radius-card: 20px;
  --radius-inner: 10px;   /* buttons and fields; wrappers that hug them use inner + padding */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.15; }
p, li { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code, .mono { font-family: var(--mono); }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
main { flex: 1; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 650; font-size: 16px; text-decoration: none; color: var(--text); }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--kick); box-shadow: 0 0 12px rgba(232, 87, 79, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; transition-property: color, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--radius-inner);
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--text); background: var(--panel-2); box-shadow: var(--ring);
  transition-property: scale, background-color, box-shadow, opacity;
  transition-duration: 150ms; transition-timing-function: ease-out;
}
.btn:hover { box-shadow: var(--ring-hover); background: #333338; }
.btn:active { scale: 0.96; }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--open-hat); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: default; scale: 1; }
.btn-primary { background: var(--open-hat); color: #0b2a2e; box-shadow: 0 0 24px rgba(143, 231, 242, 0.25); }
.btn-primary:hover { background: #a6eef6; box-shadow: 0 0 28px rgba(143, 231, 242, 0.35); }
.btn-danger { color: var(--danger); background: transparent; }
.btn-danger:hover { background: rgba(255, 138, 128, 0.08); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- cards ---------- */
.card { background: var(--window); border-radius: var(--radius-card); box-shadow: var(--ring); padding: 24px; }
.card + .card { margin-top: 16px; }
.price { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.tabular { font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; }
.error:empty, .status:empty { display: none; }
.status { color: var(--ok); font-size: 14px; }

/* ---------- home ---------- */
.hero { display: grid; gap: 40px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(34px, 7vw, 54px); font-weight: 750; }
.hero .lead { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 32em; }
.hero .buy { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero .buy .price { font-size: 40px; }
.shot { border-radius: 28px; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; width: 100%; max-width: 420px; margin: 0 auto; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 1fr; padding-top: 64px; } }

.points { display: grid; gap: 14px; padding-bottom: 64px; }
@media (min-width: 720px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { background: var(--window); border-radius: var(--radius-card); box-shadow: var(--ring); padding: 22px; }
.point h2 { font-size: 18px; margin: 14px 0 6px; }
.point p { color: var(--muted); font-size: 15px; }
.pad-dot { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

/* ---------- pricing ---------- */
.offer { max-width: 440px; margin: 40px auto 64px; }
.offer h1 { font-size: 32px; margin-bottom: 20px; }
.ticks { list-style: none; margin: 24px 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 4px; background: var(--c, var(--closed-hat)); }

/* ---------- legal ---------- */
.legal { padding: 32px 0 64px; }
.legal h1 { font-size: 32px; margin-bottom: 6px; }
.legal .meta { color: var(--dim); font-size: 13px; margin-bottom: 32px; }
.legal h2 { font-size: 17px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; margin-bottom: 10px; line-height: 1.7; }
.legal ul { padding-left: 20px; margin-bottom: 10px; }
.legal strong { color: var(--text); font-weight: 600; }
.callout { background: var(--window); border-radius: 14px; box-shadow: inset 3px 0 0 var(--closed-hat), var(--ring); padding: 16px 18px; margin-bottom: 8px; }
.callout p { color: var(--text); margin: 0; }

/* ---------- purchase complete / account ---------- */
.flow { max-width: 520px; margin: 32px auto 64px; }
.flow h1 { font-size: 30px; margin-bottom: 8px; }
.flow .lead { color: var(--muted); margin-bottom: 24px; }
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.key-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--bg); border-radius: 20px; /* 10px button + 10px padding */ box-shadow: var(--ring); padding: 10px 10px 10px 16px; }
.key { flex: 1 1 220px; min-width: 0; font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; overflow-wrap: anywhere; user-select: all; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 8px 0 4px; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #1c1c1e; background: var(--c); font-variant-numeric: tabular-nums; }

input[type="text"] {
  width: 100%; min-height: 44px; padding: 0 14px;
  font-family: var(--mono); font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-inner);
  transition-property: border-color; transition-duration: 150ms; transition-timing-function: ease-out;
}
input[type="text"]:hover { border-color: rgba(255, 255, 255, 0.2); }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.field-row input { flex: 1 1 220px; }

.machines { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.machine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; background: var(--panel); border-radius: 16px; /* 10px button + 6px padding */ padding: 6px 6px 6px 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.machine .mono { font-size: 14px; }
.usage { margin-top: 14px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }

/* ---------- footer ---------- */
.footer { padding-top: 28px; padding-bottom: 36px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.footer a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; color: var(--muted); text-decoration: none; font-size: 14px; border-radius: 8px; transition-property: color; transition-duration: 150ms; transition-timing-function: ease-out; }
.footer a:hover { color: var(--text); }
.footer .fine { margin-top: 8px; font-size: 12px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  .btn, .nav-links a, .footer a, input[type="text"] { transition-duration: 0ms; }
  .btn:active { scale: 1; }
}
