/* ============================================================
   My Gift Brain, marketing site.
   Brand: warm cream hero with black/orange app icon, then
   dark sections below for contrast. Typography: Inter (with
   system-ui fallback). Single stylesheet, no build step.
   ============================================================ */

/* --- Reset & base ---------------------------------------- */

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

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

:root {
  /* Colours */
  --bg:            #0A0A0A;
  --bg-elevated:   #121214;
  --bg-surface:    #1A1A1C;
  --bg-surface-2:  #222226;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #FFFFFF;
  --text-muted:    #A5A5AD;
  --text-subtle:   #6A6A6E;

  --accent:        #F5A623;
  --accent-bright: #FFB93F;
  --accent-dark:   #D67A15;

  /* Status (from app) */
  --status-idea:      #8EA5D2;
  --status-purchased: #E2B45A;
  --status-gifted:    #6EAA87;

  /* Fonts */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text',
          system-ui, 'Segoe UI', Roboto, sans-serif;

  /* Misc */
  --container: 1120px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(245, 166, 35, 0.08), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(214, 122, 21, 0.05), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

/* --- Container ------------------------------------------- */

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

/* --- Buttons --------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #0A0A0A;
}
.btn--primary:hover { background: var(--accent-bright); }

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Ghost button on a light hero background (dark text, dark border). */
.btn--ghost-light {
  color: #0A0A0A;
  border: 1px solid rgba(10, 10, 10, 0.18);
  background: rgba(255, 255, 255, 0.4);
}
.btn--ghost-light:hover {
  background: #fff;
  border-color: rgba(10, 10, 10, 0.35);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 14px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.12s ease, opacity 0.18s ease;
  border-radius: 7px;
}
.app-store-badge:hover { opacity: 0.85; }
.app-store-badge:active { transform: translateY(1px); }
.app-store-badge svg {
  height: 48px;
  width: auto;
}

/* --- Navigation ------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  /* Brand on the left, links + CTA clustered on the right. The
     links get `margin-left: auto` (below) to push them and the CTA
     to the right edge as a group, instead of space-between spacing
     them apart. */
  gap: 20px;
  padding: 14px 24px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.nav__brand img {
  border-radius: 7px;
}
.nav__brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}
.nav__brand-tagline {
  font-size: 14px;
  font-weight: 500;
  /* Noticeably brighter than --text-muted so the tagline reads
     clearly against the dark translucent nav without competing
     with the title. */
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.005em;
  margin-top: 3px;
}
/* Narrow viewports: drop the tagline so the title fits next to the
   "Get the app" button without wrapping. */
@media (max-width: 640px) {
  .nav__brand-tagline { display: none; }
}

.nav__links {
  display: flex;
  /* Pushes the links AND the CTA that follows over to the right
     edge as one cluster. */
  margin-left: auto;
  gap: 24px;
  font-size: 15px;
  color: var(--text-muted);
}
.nav__links a {
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__cta { flex-shrink: 0; }

@media (max-width: 720px) {
  .nav__links { display: none; }
  /* When nav__links (which carries margin-left: auto) is hidden,
     pin the CTA to the right edge instead, so the brand doesn't
     end up glued to the button. */
  .nav__cta { margin-left: auto; }
}

/* --- Hero ------------------------------------------------ */

.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
  /* Warm radial spotlight behind the phone lifts it off the base
     dark. Orange cast on the device side, a second cooler wash on
     the copy side for depth, over a near-black base. */
  background:
    radial-gradient(720px 520px at 78% 50%, rgba(245, 166, 35, 0.22), transparent 60%),
    radial-gradient(620px 480px at 18% 20%, rgba(255, 180, 90, 0.08), transparent 65%),
    radial-gradient(900px 700px at 50% 120%, rgba(0, 0, 0, 0.6), transparent 70%),
    #141418;
  border-bottom: 1px solid var(--border);
}

/* Large logo at the top of the hero copy column. */
.hero__logo {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  margin-bottom: 28px;
  box-shadow:
    0 20px 50px -10px rgba(0, 0, 0, 0.25),
    0 8px 20px -8px rgba(214, 122, 21, 0.25);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

.hero__title {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero__title .accent {
  color: var(--accent);
  background: linear-gradient(135deg, #FFC46A 0%, #F5A623 45%, #D67A15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__footnote {
  font-size: 13px;
  color: var(--text-subtle);
}

/* --- iPhone mockup -------------------------------------- */

.hero__device {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The screenshot is framed entirely in CSS, à la nuller.app: dark
   bezel ring, thin light edge ring for the titanium highlight, a
   warm orange glow to lift it off the near-black background, and a
   deep drop shadow. No wrapper chrome — just one <img>. */
.hero__phone {
  width: 220px;
  height: auto;
  border-radius: 28px;
  /* Stacked box-shadows from inner to outer: lighter bezel than
     the background so the frame reads as a device, thin bright
     edge ring, a strong warm glow to separate it from the hero
     backdrop, then a deep drop shadow for weight. */
  box-shadow:
    0 0 0 8px #2a2a2e,
    0 0 0 9px rgba(255, 255, 255, 0.28),
    0 0 80px rgba(245, 166, 35, 0.45),
    0 0 160px rgba(245, 166, 35, 0.2),
    0 40px 90px rgba(0, 0, 0, 0.85);
}

/* --- Story section -------------------------------------- */

.story {
  padding: 100px 0 80px;
  border-top: 1px solid var(--border);
}
.story__headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 20px;
}
.story__headline em {
  font-style: normal;
  color: var(--accent);
}
.story__body {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}

/* --- Features ------------------------------------------- */

.features {
  padding: 100px 0;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 48px;
  max-width: 720px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-surface);
}

/* Numbered feature marker. Big, tabular, orange.
   Replaces the old emoji-icon square so features read as a
   numbered list of capabilities, not random decorations. */
.feature__num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 18px;
  display: inline-block;
  position: relative;
}
.feature__num::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.8;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* --- Pricing -------------------------------------------- */

.pricing {
  padding: 100px 0;
  position: relative;
}

.pricing__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pricing__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.pricing__sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
}

.pricing__card {
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.7),
    0 10px 30px -15px rgba(245, 166, 35, 0.15);
}
.pricing__card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(245, 166, 35, 0.4), transparent 55%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.pricing__badge {
  position: absolute;
  top: -12px;
  right: 28px;
  background: var(--accent);
  color: #0A0A0A;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.pricing__plan {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing__price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing__currency {
  font-size: 32px;
  font-weight: 700;
  vertical-align: top;
  margin-right: 2px;
  color: var(--text-muted);
}
.pricing__period {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing__trial {
  display: inline-block;
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 24px;
}

/* Two-pill row under the price: free-trial (filled orange) + the
   lifetime / "yours forever" promise (ghosted). Filled pill leads
   because the trial is the action the user takes first. */
.pricing__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.pricing__pill {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.10);
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.25);
  letter-spacing: 0.01em;
}
.pricing__pill--trial {
  background: var(--accent);
  color: #0A0A0A;
  border-color: transparent;
}

.pricing__list {
  list-style: none;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.pricing__list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 15px;
  color: var(--text);
}
.pricing__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.5 10.586 3.707 7.793 2.293 9.207 6.5 13.414l7.207-7.207-1.414-1.414L6.5 10.586z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.5 10.586 3.707 7.793 2.293 9.207 6.5 13.414l7.207-7.207-1.414-1.414L6.5 10.586z'/></svg>") no-repeat center / contain;
}

.pricing__small {
  font-size: 13px;
  /* Brighter than --text-subtle (which was too dim against the
     pricing card's dark gradient). Still subordinate to the price
     and list items, but legible without squinting. */
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pricing__wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Closing CTA ---------------------------------------- */

.closing {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(700px 400px at 50% 50%, rgba(245, 166, 35, 0.08), transparent 70%);
}

.closing__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.closing__sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: #060606;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand img {
  border-radius: 9px;
}
.footer__name {
  font-weight: 700;
  font-size: 15px;
}
.footer__tagline {
  font-size: 13px;
  color: var(--text-subtle);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer__links a {
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 13px;
  color: var(--text-subtle);
  text-align: right;
}

@media (max-width: 800px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__brand { justify-content: center; }
  .footer__copy { text-align: center; }
}

/* --- Responsive hero layout ----------------------------- */

@media (max-width: 980px) {
  .hero {
    padding: 48px 0 80px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero__logo {
    margin-left: auto;
    margin-right: auto;
    width: 120px;
    height: 120px;
  }
  .hero__eyebrow {
    /* Re-centre the inline-flex pill when the column centres. */
    margin-left: auto;
    margin-right: auto;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas {
    justify-content: center;
  }
  .hero__phone {
    width: 180px;
  }
}

/* --- Legal pages ---------------------------------------- */

.legal {
  padding: 64px 0 96px;
}

/* Back link at the top of privacy / terms, above the page title. */
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  margin-bottom: 32px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.legal__back:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}
.legal__back-arrow {
  font-size: 16px;
  line-height: 1;
  transform: translateY(-0.5px);
}
.legal__container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 8px;
}
.legal__updated {
  color: var(--text-subtle);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol {
  margin: 12px 0 12px 24px;
}
.legal li + li { margin-top: 6px; }
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--accent-bright); }
.legal strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Focus styles (accessibility) ----------------------- */

a:focus-visible,
button:focus-visible,
.app-store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Selection ------------------------------------------ */

::selection {
  background: rgba(245, 166, 35, 0.35);
  color: #fff;
}
