/* ============================================================
   Feedlock shared styles
   Tokens mirror tailwind.config.js / constants/theme.ts exactly.
   ============================================================ */

@font-face {
  font-family: "Gambetta";
  src: url("fonts/Gambetta-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Gambetta";
  src: url("fonts/Gambetta-Semibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Gambetta";
  src: url("fonts/Gambetta-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --coral: #ff7a66;
  --coral-pressed: #f0604b;
  --coral-tint: #ff9e8d;
  --coral-pale: #ffb3a5;

  --bg: #fff7f3;
  --surface: #ffffff;
  --ink: #2b2320;
  --secondary: #8a7e77;
  --body: #6e625b;
  --chip-bg: #fff3ef;
  --chip-border: #ffcfc5;
  --icon-bg: #ffebe5;
  --border-soft: #e7ddd6;
  --divider: #f5ebe4;
  --faint: #b3a79e;

  --success: #3bb273;
  --dawn-1: #fff7f3;
  --dawn-2: #ffede6;
  --dawn-3: #ffd9ce;

  --shadow-card: 0 6px 18px rgba(43, 35, 32, 0.06);
  --shadow-subtle: 0 4px 14px rgba(43, 35, 32, 0.05);
  --shadow-coral: 0 10px 24px rgba(255, 122, 102, 0.35);

  --r-card: 20px;
  --r-button: 16px;

  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191512;
    --surface: #241e1a;
    --ink: #f7f0eb;
    --secondary: #a89b92;
    --body: #a89b92;
    --chip-bg: #3a2c26;
    --chip-border: #5a4238;
    --icon-bg: #3a2c26;
    --border-soft: #3a322c;
    --divider: #3a322c;
    --faint: #6b5f57;

    --dawn-1: #191512;
    --dawn-2: #221a16;
    --dawn-3: #33211b;

    --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.34);
    --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.28);
  }
}

/* ── base ─────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Satoshi",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Gambetta", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(44px, 7.4vw, 76px);
  letter-spacing: -0.032em;
}
h2 {
  font-size: clamp(31px, 4.2vw, 44px);
}
h3 {
  font-size: clamp(20px, 2.2vw, 23px);
  letter-spacing: -0.012em;
}

p {
  margin: 0;
  color: var(--body);
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-pressed);
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.62;
  max-width: 46ch;
}

section {
  padding-block: clamp(72px, 10vw, 130px);
}

/* ── header ───────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-head.is-stuck {
  border-bottom-color: var(--divider);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
}
.brand-name {
  font-family: "Gambetta", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--secondary);
  transition: color 0.18s;
}
.nav a:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

/* ── buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding-inline: 30px;
  border-radius: var(--r-button);
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: var(--shadow-coral);
  transition:
    transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
    background 0.18s;
}
.btn:hover {
  background: var(--coral-pressed);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--sm {
  height: 44px;
  padding-inline: 20px;
  font-size: 15px;
  box-shadow: none;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-soft);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--chip-bg);
  border-color: var(--chip-border);
}

/* ── hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--dawn-1) 0%,
    var(--dawn-2) 56%,
    var(--dawn-3) 100%
  );
  padding-block: clamp(70px, 11vw, 128px) clamp(88px, 12vw, 150px);
  text-align: center;
}
.hero .wrap {
  position: relative;
  z-index: 2;
}

/* soft dawn glow behind the mark mirrors the app's welcome cover */
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 130vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(255, 158, 141, 0.42) 0%,
    rgba(255, 247, 243, 0) 66%
  );
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::before {
    background: radial-gradient(
      circle,
      rgba(255, 122, 102, 0.22) 0%,
      rgba(25, 21, 18, 0) 66%
    );
  }
}

.hero-mark {
  margin-inline: auto;
  width: 88px;
  filter: drop-shadow(0 12px 26px rgba(255, 122, 102, 0.32));
}

.hero h1 {
  margin-top: 30px;
}
.hero .lede {
  margin: 22px auto 0;
  max-width: 34ch;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.hero-note {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 500;
}

/* drifting petals the welcome screen's motif */
.petal {
  position: absolute;
  z-index: 1;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 100% 12% 100% 12%;
  background: var(--coral-pale);
  opacity: 0.34;
  animation: drift linear infinite;
}
@keyframes drift {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.4;
  }
  88% {
    opacity: 0.34;
  }
  100% {
    transform: translate3d(34px, 105vh, 0) rotate(190deg);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .petal {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── cards & grids ────────────────────────────────────── */

.grid {
  display: grid;
  gap: 20px;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 30px 28px;
  box-shadow: var(--shadow-subtle);
}
.card h3 {
  margin-bottom: 9px;
}
.card p {
  font-size: 15.5px;
  line-height: 1.58;
}

.step-no {
  font-family: "Gambetta", Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--coral-pressed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--icon-bg);
  margin-bottom: 18px;
}

/* dark inset panel same treatment as the app's ink cards */
.panel {
  background: var(--ink);
  border-radius: 28px;
  padding: clamp(38px, 5.6vw, 68px);
  color: #f7f0eb;
}
@media (prefers-color-scheme: dark) {
  .panel {
    background: #0f0c0a;
  }
}
.panel h2 {
  color: #fff;
}
.panel p {
  color: #cfc3bb;
}
.panel .eyebrow {
  color: var(--coral-tint);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

/* the nudge mock */
.mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-row {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}
.mock-row strong {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  display: block;
}
.mock-row span {
  font-size: 13px;
  color: #a89b92;
}
.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}
.mock-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #f7f0eb;
}

/* ── comparison table ─────────────────────────────────── */

.plans {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}
.plans-row {
  display: grid;
  grid-template-columns: 1fr 92px 92px;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
}
.plans-row + .plans-row {
  border-top: 1px solid var(--divider);
}
.plans-head {
  background: var(--chip-bg);
  border-bottom: 1px solid var(--border-soft);
}
.plans-head span {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  text-align: center;
}
.plans-head span:first-child {
  text-align: left;
}
.plans-head .pro {
  color: var(--coral-pressed);
}
.plans-row strong {
  font-weight: 700;
  font-size: 15.5px;
  display: block;
}
.plans-row small {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.45;
  display: block;
  margin-top: 2px;
}
.plans-cell {
  text-align: center;
  font-size: 16px;
}
.tick {
  color: var(--success);
  font-weight: 900;
}
.dash {
  color: var(--faint);
}
@media (max-width: 620px) {
  .plans-row {
    grid-template-columns: 1fr 58px 58px;
    padding-inline: 16px;
  }
}

/* ── faq ──────────────────────────────────────────────── */

.faq {
  border-top: 1px solid var(--divider);
}
.faq details {
  border-bottom: 1px solid var(--divider);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 17.5px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: "Gambetta", serif;
  font-size: 25px;
  color: var(--coral);
  line-height: 1;
  transition: transform 0.25s;
  flex: none;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin-top: 13px;
  font-size: 16px;
  max-width: 66ch;
}

/* ── prose (privacy / support) ────────────────────────── */

.page-head {
  background: linear-gradient(180deg, var(--dawn-1) 0%, var(--dawn-2) 100%);
  padding-block: clamp(56px, 8vw, 92px) clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--divider);
}
.page-head h1 {
  font-size: clamp(38px, 5.6vw, 58px);
}
.page-head .meta {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--secondary);
  font-weight: 500;
}

.prose {
  max-width: 76ch;
  padding-block: clamp(48px, 7vw, 76px);
}
.prose h2 {
  font-size: clamp(24px, 3vw, 31px);
  margin-top: 54px;
  margin-bottom: 15px;
}
.prose h2:first-of-type {
  margin-top: 0;
}
.prose h3 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 8px;
}
.prose p {
  margin-bottom: 17px;
  font-size: 16.5px;
}
.prose ul {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--body);
  font-size: 16.5px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral-pale);
}
.prose a {
  color: var(--coral-pressed);
  text-decoration-color: var(--chip-border);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--coral);
}
.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.callout {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: var(--r-card);
  padding: 26px 28px;
  margin: 30px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout strong {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 26px 0 30px;
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15.5px;
}
thead th {
  text-align: left;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 12px 16px;
  background: var(--chip-bg);
  border-bottom: 1px solid var(--border-soft);
}
thead th:first-child {
  border-top-left-radius: 12px;
}
thead th:last-child {
  border-top-right-radius: 12px;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
  color: var(--body);
}
tbody td:first-child {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

/* ── footer ───────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--divider);
  padding-block: 52px 44px;
  background: var(--bg);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 60px;
  align-items: flex-start;
}
.foot-brand {
  margin-right: auto;
  max-width: 30ch;
}
.foot-brand p {
  font-size: 14.5px;
  margin-top: 12px;
  color: var(--secondary);
}
.foot-col h4 {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-family: "Satoshi", sans-serif;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.foot-col a {
  text-decoration: none;
  font-size: 15px;
  color: var(--secondary);
  font-weight: 500;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-legal {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--faint);
}

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