/* Giftling marketing site */

:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #141414;
  --muted: #4a453f;
  --faint: #6e675f;
  --line: rgba(20, 20, 20, 0.1);
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 16px 40px rgba(20, 20, 20, 0.06);
  --link: #7a3e00;
  --accent-ink: #1c1408;
  --gold: #ffe470;
  --amber: #ffa733;
  --note: #fff6d8;
  --note-line: #e6c56a;
  --max: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111;
    --surface: #1c1c1c;
    --text: #f4f1ec;
    --muted: #c8c2ba;
    --faint: #aea79f;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 44px rgba(0, 0, 0, 0.4);
    --link: #ffc56a;
    --note: #2c2618;
    --note-line: #8a6a28;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(880px 420px at 100% -8%, rgba(255, 228, 112, 0.55), transparent 62%),
    radial-gradient(640px 360px at -12% 0%, rgba(255, 167, 51, 0.16), transparent 58%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(760px 380px at 100% -10%, rgba(255, 167, 51, 0.16), transparent 60%),
      radial-gradient(520px 280px at -8% 0%, rgba(255, 228, 112, 0.08), transparent 55%);
  }
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

::selection {
  background: #ffe470;
  color: #1c1408;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  z-index: 5;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 10px;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 22%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 48px 0 28px;
}

.hero h1 {
  max-width: 11em;
  margin-top: 18px;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.038em;
  line-height: 1.02;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.5;
}

.cta {
  margin-top: 28px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--gold) 0%, var(--amber) 100%);
  color: var(--accent-ink);
  box-shadow: 0 1px 1px rgba(28, 20, 8, 0.08), 0 10px 24px rgba(255, 167, 51, 0.28);
}

.apple {
  display: block;
  flex: 0 0 auto;
}

.store-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-name {
  display: block;
  margin-top: 1px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-note {
  margin-top: 10px;
  max-width: 26rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview h2 {
  padding: 18px 18px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.people {
  list-style: none;
}

.people li {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.who {
  font-weight: 650;
  letter-spacing: -0.015em;
}

.when {
  color: var(--muted);
  font-size: 0.95rem;
}

.features {
  padding: 28px 0 72px;
}

.features h2 {
  max-width: 16em;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.feature-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.feature {
  padding: 22px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.03);
}

.feature h3 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand p {
  margin-top: 4px;
  max-width: 26rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--link) 55%, transparent);
}

.footer-meta {
  font-size: 0.9rem;
  color: var(--faint);
}

.legal {
  width: min(100% - 40px, 42rem);
  margin: 28px auto 80px;
}

.doc-kicker {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal h1,
.missing h1 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.updated {
  margin-top: 10px;
  color: var(--faint);
}

.review-note,
.plain {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
}

.review-note {
  background: var(--note);
  border: 1px solid var(--note-line);
  color: var(--text);
}

.plain {
  background: var(--surface);
  border: 1px solid var(--line);
}

.plain h2,
.legal h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal h2 {
  margin-top: 2.1rem;
  scroll-margin-top: 20px;
}

.legal h3 {
  margin-top: 1.15rem;
  font-size: 1.02rem;
  scroll-margin-top: 20px;
}

.legal p,
.legal ul,
.legal ol,
.legal .assumption,
.legal .contact {
  margin-top: 0.85rem;
}

.legal ul,
.legal ol {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal a {
  font-weight: 650;
}

.toc {
  margin-top: 16px;
}

.toc summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-right: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.toc[open] summary::before {
  transform: rotate(225deg) translateY(-1px);
}

.toc ol {
  margin: 0 0 8px;
  padding-left: 1.3rem;
}

.toc a {
  font-weight: 600;
  text-decoration: none;
}

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

.assumption {
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--gold) 28%, var(--surface));
  font-size: 0.98rem;
}

.contact {
  font-style: normal;
}

.missing {
  width: min(100% - 40px, 40rem);
  margin: 56px auto 80px;
}

.missing p {
  margin-top: 12px;
  max-width: 32rem;
  color: var(--muted);
}

.missing a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 650;
}

@media (min-width: 720px) {
  .toc ol {
    columns: 2;
    column-gap: 28px;
  }

  .toc li {
    break-inside: avoid;
    margin-bottom: 0.25rem;
  }
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 36px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

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

@media print {
  body {
    display: block;
    background: #fff;
    color: #000;
  }

  .skip,
  .preview,
  .nav {
    display: none;
  }

  a {
    color: #000;
  }
}
