/* ==========================================================================
   Giftgenie — pre-launch site styles

   Deliberately dependency-free: no external fonts, no CDN, no framework.
   System fonts and inline SVG keep the page fast and mean the site makes no
   third-party requests at all, which is what the Privacy Policy claims.
   ========================================================================== */

:root {
  --brand: #4b3ec9;
  --brand-dark: #36299c;
  --brand-soft: #eeebfd;
  --accent: #d4552b;
  --ink: #151824;
  --muted: #5c6274;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(21, 24, 36, 0.05);
  --shadow: 0 8px 24px rgba(21, 24, 36, 0.07);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.1rem);
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
}
h3 {
  font-size: 1.09rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.container.narrow {
  max-width: 760px;
}

.small {
  font-size: 0.89rem;
}
.muted {
  color: var(--muted);
}

/* --- skip link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #c9cddb;
  color: var(--ink);
}

.btn-small {
  padding: 8px 15px;
  font-size: 0.88rem;
}

/* The nav CTA is an <a> inside .nav-links. That link rule (.nav-links a,
   specificity 0-1-1) out-ranks the .btn / .btn-primary / .btn-small classes
   (0-1-0), so without this block the pill silently inherits the muted link
   colour and the 4px 0 link padding: grey text on purple, no horizontal
   padding. Re-assert the button treatment here, where the selector is strong
   enough to win. Keep the colour white — the nav CTA sits on --brand. */
.nav-links .btn {
  text-decoration: none;
  color: #fff;
  font-weight: 600; /* .nav-links a sets 500 and would otherwise leave the nav CTA lighter than every other button */
  padding: 8px 16px;
}

/* .nav-links a:hover (0-1-2) would otherwise repaint the label --ink, which is
   near-black on purple. This selector (0-3-0) wins. */
.nav-links .btn-primary:hover {
  color: #fff;
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(
      1100px 420px at 12% -8%,
      var(--brand-soft) 0%,
      rgba(238, 235, 253, 0) 62%
    ),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 780px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17a673;
  box-shadow: 0 0 0 3px rgba(23, 166, 115, 0.15);
}

.lede {
  font-size: clamp(1.06rem, 2.1vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.cta-row-center {
  justify-content: center;
}

.hero-note {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 62ch;
}

/* --- sections ------------------------------------------------------------ */

.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 660px;
  margin-bottom: 36px;
}

.section-sub {
  color: var(--muted);
  margin: 0;
}

/* --- cards --------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.grid {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

/* --- steps --------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* --- use-case icons ------------------------------------------------------ */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 14px;
}

/* --- callout ------------------------------------------------------------- */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  border: 1px dashed #cfc9f2;
  background: var(--brand-soft);
}

.callout p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--brand-dark);
}

.callout-tag {
  flex: 0 0 auto;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- early access panel -------------------------------------------------- */

.cta-panel {
  text-align: center;
  padding: 40px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.cta-panel p {
  color: var(--muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* --- footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 52px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer-blurb {
  margin: 12px 0 0;
  max-width: 34ch;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.94rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.disclosure {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 72ch;
}

/* Operator identification. Privacy page only: by design the landing page
   carries no company name, address or phone number, so this block must not be
   reused there. It is deliberately plain: present for credibility and legal
   completeness, not to draw the eye. */
.company {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 72ch;
}

.company p:last-child {
  margin-bottom: 0;
}

/* Structured entity details on the privacy page. */
.entity {
  margin: 1.25rem 0 1.5rem;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.entity dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.entity dd {
  margin: 2px 0 14px;
}

.entity dd:last-child {
  margin-bottom: 0;
}

.disclosure p:last-child {
  margin-bottom: 0;
}

.copyright {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Minimal legal identification on the landing page: entity name only. The
   registered office, VAT number and phone number stay on the privacy page, so
   this line must never grow into a full address block. */
.legal-line {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* When the legal line is present it owns the divider, so the copyright below it
   drops its own rule and tucks in close. */
.legal-line + .copyright {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}

/* --- legal (privacy) page ------------------------------------------------ */

.legal {
  padding: 48px 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 10px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.toc {
  margin: 30px 0 12px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.toc h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.legal-section {
  margin-top: 38px;
  scroll-margin-top: 90px;
}

.legal-section h2 {
  font-size: 1.3rem;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
}

.legal-section ul {
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 0.55rem;
}

.legal-back {
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* --- 404 ----------------------------------------------------------------- */

.center-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

/* --- responsive ---------------------------------------------------------- */

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero {
    padding: 88px 0 76px;
  }
  .section {
    padding: 80px 0;
  }
}

/* Keep the header to one tidy row on small screens by hiding the in-page
   links. The footer carries the same links, so nothing is unreachable. */
@media (max-width: 560px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  .nav-links {
    margin-left: auto;
  }
}

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