/* Gladly site: same tokens as the app (DESIGN.md). */
:root {
  --canvas: #F8F5FB;
  --surface: #FFFFFF;
  --ink: #221C26;
  --ink-2: #5E5563;          /* 6.6:1 on canvas */
  --hairline: #E9E3E6;
  --tint: #5B4BDB;
  --on-tint: #FFFFFF;
  --sky-top: #EFE6FF;        /* Pastel Haze Daybreak: dark ink on a lavender-to-peach mist */
  --sky-bottom: #FFEDE3;
  --sky-ink: #2A2340;        /* 12:1 on the sky */
  --sky-ink-2: #5B5470;      /* 6:1 on the sky */
  --accent: #6A4BD0;         /* the sky's one strong color: buttons */
  --on-accent: #FFFFFF;      /* 5.9:1 */
  --glass: rgba(255, 255, 255, .6);
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121016;
    --surface: #1D1A22;
    --ink: #F4EFF6;
    --ink-2: #BFB5C4;
    --hairline: #2D2832;
    --tint: #A99CFF;
    --on-tint: #1B1530;
    --sky-top: #2A2142;
    --sky-bottom: #2C1F2C;
    --sky-ink: #F5F1FF;
    --sky-ink-2: #C8C0DA;
    --accent: #BBA8FF;
    --on-accent: #1E1538;
    --glass: rgba(255, 255, 255, .10);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tint); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.read { width: min(680px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: inherit; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(59, 21, 50, .18); }
.nav { display: flex; gap: 20px; font-weight: 700; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Sky hero */
.sky {
  position: relative;
  overflow: hidden;
  color: var(--sky-ink);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}
.sky::before { /* the sun, beside the phone, never behind text */
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; top: 120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, .2) 45%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 120px 0 72px; position: relative; }
.eyebrow { font-weight: 800; font-size: 15px; color: var(--sky-ink-2); letter-spacing: .01em; margin: 0 0 10px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
@media (prefers-color-scheme: dark) { .hero h1 { text-shadow: 1.5px 2px 0 rgba(0, 0, 0, .35); } } /* sticker edge on night skies only */
.hero p.lede { font-size: 20px; line-height: 1.5; font-weight: 600; color: var(--sky-ink-2); margin: 0 0 28px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 800 17px/1 var(--font); text-decoration: none;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 20px rgba(106, 75, 208, .25);
  transition: transform 120ms ease-out;
}
.button:active { transform: scale(.97); }
.button.secondary { background: var(--glass); color: var(--sky-ink); box-shadow: none; }
.soon { font-weight: 800; font-size: 15px; color: var(--sky-ink); padding: 8px 14px; border-radius: 999px; border: 1.5px solid currentColor; opacity: 1; }
.fine { font-size: 14px; font-weight: 600; color: var(--sky-ink-2); margin-top: 14px; }

.phones { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(300px, 70vw);
  border-radius: 44px;
  border: 8px solid #1a1620;
  box-shadow: 0 30px 60px rgba(60, 40, 110, .22), 0 6px 16px rgba(60, 40, 110, .12);
  background: #1a1620;
  overflow: hidden;
}
.phone img { width: 100%; height: auto; border-radius: 36px; }

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 900; margin: 0 0 14px; }
.section-lede { color: var(--ink-2); font-size: 19px; font-weight: 600; max-width: 52ch; margin: 0 0 40px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; line-height: 1.25; font-weight: 800; }
.card p { margin: 0; color: var(--ink-2); }
.dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 26px; box-shadow: 0 10px 30px rgba(34, 28, 38, .12); }
.gallery figcaption { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-top: 10px; text-align: center; }

.premium { background: var(--surface); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.premium ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.price { text-align: right; font-weight: 800; }
.price small { display: block; font-weight: 600; color: var(--ink-2); font-size: 14px; }

/* Reading pages */
.page-head { padding: 112px 0 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 900; margin: 0 0 10px; }
@media (prefers-color-scheme: dark) { .page-head h1 { text-shadow: 1.5px 2px 0 rgba(0, 0, 0, .35); } }
.page-head p { margin: 0; font-weight: 700; color: var(--sky-ink-2); }
.prose { padding: 48px 0 72px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; line-height: 1.25; }
.prose h3 { font-size: 19px; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.callout { background: var(--surface); border-radius: 20px; padding: 18px 20px; margin: 24px 0; }
.callout p { margin: 0; color: var(--ink); font-weight: 600; }
details { background: var(--surface); border-radius: 20px; padding: 16px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 800; color: var(--ink); min-height: 44px; padding-block: 9px; box-sizing: border-box; }
details p { margin: 10px 0 0; }

footer { border-top: 1px solid var(--hairline); padding: 32px 0 48px; color: var(--ink-2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-weight: 700; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; text-align: left; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .premium { grid-template-columns: 1fr; }
  .price { text-align: left; }
  .nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
