/* Pindi Smash — shared site styles. Minimal aesthetic: flat background,
   generous whitespace, hairline rules instead of filled cards, one restrained
   gold accent. The game canvas + its frame are deliberately left untouched.
   Body copy is Inter at >=16px; Anton is reserved for the wordmark and hero. */

:root {
  --bg: #0b0e14;
  --text: #eef1f6;
  --dim: rgba(238, 241, 246, 0.55);
  --faint: rgba(238, 241, 246, 0.34);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ffb529;
  --danger: #e8493a;
  --maxw: 820px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h1 { font-family: Anton, "Arial Black", sans-serif; font-weight: 400; letter-spacing: 0.5px; font-size: clamp(30px, 7vw, 48px); }
h2 { font-weight: 600; letter-spacing: -0.01em; font-size: clamp(21px, 4vw, 26px); margin-top: 40px; }
h3 { font-weight: 600; font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---- Header ------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: none; }               /* minimal: wordmark only */
.brand-name { font-family: Anton, sans-serif; font-size: 21px; letter-spacing: 0.5px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--dim); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #1a1408; }
.btn-primary:hover { background: #ffc350; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); text-decoration: none; }

/* ---- Layout / sections -------------------------------------------------- */
main { display: block; }
.section { padding: 40px 0; }
.section-tight { padding: 24px 0; }

.hero { text-align: center; padding: 72px 0 52px; }
.hero .eyebrow { color: var(--dim); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; margin: 0 0 14px; }
.hero p.lead { font-size: 18px; color: var(--dim); max-width: 560px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Cards → borderless columns separated by a hairline (minimal) */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 8px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.card { padding-top: 18px; border-top: 1px solid var(--line); }
.card h3 { margin-top: 0; }
.card p { color: var(--dim); margin-bottom: 0; }

.prose { max-width: 640px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }
.muted { color: var(--dim); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent); }

/* ---- Play page (game frame left untouched) ------------------------------ */
.game-stage {
  display: flex; justify-content: center; padding: 16px 0 8px;
  background: var(--bg);
}
.game-frame {
  position: relative; width: 100%;
  /* Width is the single sizing driver so the box stays a true 9:16. Capping
     width at ~44vh keeps the derived height (width x 16/9) within ~78vh. */
  max-width: min(400px, 44vh);
  aspect-ratio: 9 / 16; margin: 0 auto;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #05070f; box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
#game { display: block; width: 100%; height: 100%; touch-action: none; }
.play-hint { text-align: center; color: var(--dim); font-size: 14px; margin: 10px 0 0; }

/* ---- Calculators (tools) ------------------------------------------------ */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
@media (min-width: 820px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
.calc { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.calc h2 { margin: 0 0 6px; font-size: 19px; }
.calc > p.muted { margin-bottom: 18px; font-size: 15px; }
.calc-form { display: grid; gap: 14px; }
.calc-form label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; color: var(--dim); }
.calc-form .hint { color: var(--faint); font-weight: 400; }
.calc-form input[type="number"],
.calc-form input[type="text"] {
  width: 100%; padding: 11px 12px; font-size: 16px; color: var(--text);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
}
.calc-form input:focus { outline: none; border-color: var(--accent); }
.calc-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 14px; margin: 0; }
.calc-form legend { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--dim); padding: 0 6px; }
.calc-form .chk { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--dim); }
.calc-form .chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.calc-form .btn { margin-top: 4px; width: 100%; }
.calc-out { display: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.6; }
.calc-out.has-result { display: block; }
.calc-out.is-error { color: var(--danger); }
.calc-out .big { font-family: Anton, sans-serif; font-weight: 400; font-size: 26px; color: var(--accent); }
.calc-note { font-size: 13px; margin: 14px 0 0; color: var(--faint); }

/* ---- Contact form ------------------------------------------------------- */
.form-embed { width: 100%; max-width: 640px; margin: 0 auto; }
.form-embed iframe { width: 100%; height: 800px; border: 0; border-radius: 12px; background: #fff; }
@media (min-width: 700px) { .form-embed iframe { height: 760px; } }
.form-fallback { font-size: 14px; color: var(--dim); word-break: break-all; margin-top: 12px; }

/* ---- Ad slots (reserved, no ad code) ------------------------------------ */
.ad-slot {
  display: grid; place-items: center;
  width: 100%; margin: 28px auto; border: 1px solid var(--line); border-radius: 10px;
}
.ad-slot-note { color: var(--faint); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; }
.footer-inner { display: grid; gap: 16px; padding-top: 36px; padding-bottom: 44px; }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1.4fr; align-items: start; gap: 28px; }
  .footer-disclaimer { grid-column: 1 / -1; }
}
.footer-about .brand-name { font-size: 20px; }
.footer-about p { color: var(--dim); margin: 8px 0 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--dim); font-weight: 500; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-contact p { margin: 0 0 6px; color: var(--dim); font-size: 14px; }
.copyright { font-size: 13px; color: var(--faint); }
.footer-disclaimer {
  color: var(--faint); font-size: 12.5px; line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 18px; margin: 12px 0 0;
}
