/* Hostinger coupon landing page — mobile-first, system fonts, no dependencies. */
:root {
  --ink: #171426;
  --muted: #4f4b63;
  --accent: #5b34d6;
  --accent-dark: #4527b0;
  --accent-soft: #efeaff;
  --line: #e2dcf5;
  --bg: #ffffff;
  --bg-tint: #faf9ff;
  --ok: #16794a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23, 20, 38, .06), 0 8px 24px rgba(91, 52, 214, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font: 1.0625rem/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .92em; background: var(--accent-soft); padding: .08em .35em; border-radius: 5px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.nowrap { white-space: nowrap; }
.small { font-size: .925rem; color: var(--muted); }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.header-link { font-size: .95rem; font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-tint), #fff); padding: 28px 0 8px; }
.eyebrow { margin: 0 0 8px; font-size: .9rem; font-weight: 600; color: var(--ok); }
h1 { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 22px; }
.lead strong { color: var(--ink); }

/* Coupon card */
.coupon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.coupon-label { margin: 0 0 10px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.coupon-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.coupon-code {
  flex: 1 1 210px;
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: clamp(1.3rem, 1rem + 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--bg-tint);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 12px 10px;
  user-select: all;
  -webkit-user-select: all;
}
.coupon-status { min-height: 1.4em; margin: 8px 0 12px; font-size: .95rem; font-weight: 600; color: var(--ok); }
.coupon-note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font: inherit; font-weight: 700; line-height: 1.25;
  text-align: center; text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn[hidden] { display: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-copy { flex: 1 1 170px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; }
.btn-copy:hover { background: #2d2846; }
.btn-copy.is-copied { background: var(--ok); }
.btn-wide { display: block; width: 100%; font-size: 1.05rem; }

.disclosure {
  margin: 16px 0 0;
  font-size: .9rem;
  color: var(--muted);
  background: var(--bg-tint);
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
}

.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .95rem; }
.facts span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }

/* TOC */
.toc { margin-top: 28px; }
.toc h2 { font-size: 1rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
.toc li { margin: 4px 0; break-inside: avoid; }
@media (min-width: 600px) { .toc ol { columns: 2; column-gap: 32px; } }

/* Content */
.content > section { padding-top: 28px; scroll-margin-top: 12px; }
.content h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem); line-height: 1.25; margin: 16px 0 10px; }
.content h3 { font-size: 1.15rem; line-height: 1.3; margin: 26px 0 6px; }
.content p, .content li, .content dd { max-width: 70ch; }
.answer { font-size: 1.08rem; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.steps { padding-left: 1.3em; }
.steps li { margin: 8px 0; }

figure { margin: 22px 0; }
figure a { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }

.terms { margin: 14px 0; }
.terms dt { font-weight: 700; margin-top: 12px; }
.terms dd { margin: 2px 0 0; color: var(--muted); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
caption { text-align: left; padding: 10px 14px; font-size: .875rem; font-weight: 600; color: var(--muted); caption-side: top; }
th, td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-tint); font-size: .85rem; }
tbody th { font-weight: 600; }
td { white-space: nowrap; }

/* Final CTA */
.final-cta { margin-top: 44px; padding: 36px 0 40px; background: linear-gradient(180deg, #fff, var(--accent-soft)); border-top: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); margin: 0 0 8px; }
.final-cta > .wrap > p { color: var(--muted); margin: 0 0 18px; }
.cta-pair { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cta-pair { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: .875rem; color: var(--muted); }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 400px) {
  .coupon-card { padding: 16px; }
  .btn { padding-left: 14px; padding-right: 14px; }
}
