/*
 * The public marketing site and docs (layouts/marketing). Plain CSS, no build
 * step. The look follows the App Store listing images (app-store-listing/
 * shell.css): Newsreader headlines with an italic phrase, Inter for text, and
 * app screens framed on a soft pink, lilac and peach gradient.
 */

:root {
  --ink: #121212;
  --text: #45413f;
  --muted: #6f6763;
  --line: #ebe4e0;
  --paper: #ffffff;
  --tinted: #fbf6f3;
  --accent: #a14b6e;
  --link: #8a3a5c;
  --shadow: 110, 36, 60;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* The gradient panel's five colours; .panel--<tint> overrides some. */
  --g0: #eebdd0;
  --g1: #cdd6f7;
  --g2: #f2a9d3;
  --g3: #ee9c84;
  --g4: #f7d2c8;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* ---- Type ---- */

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

.display, .headline {
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 350;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display em, .headline em { font-style: italic; }
.display { font-size: clamp(46px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.035em; }
.display--medium { font-size: clamp(42px, 6vw, 72px); line-height: 1; }
.display--small { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }
.headline { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.05; }

.lede { max-width: 34em; color: var(--text); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; text-wrap: pretty; }
.fineprint { color: var(--muted); font-size: 14px; }
.fineprint a { color: inherit; }

.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.more-link::after { content: "\2192"; transition: transform 0.15s ease; }
.more-link:hover::after { transform: translateX(3px); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 600 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #2e2a29; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--ghost { background: rgba(255, 255, 255, 0.55); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.2); }
.btn--ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.45); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1e9e5; color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

/* ---- Header ---- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.07);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; }
.brand__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.brand--light { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; margin-right: auto; }
.site-nav > a, .site-nav__group > a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none;
}
.site-nav > a:hover, .site-nav__group > a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: rgba(18, 18, 18, 0.05); }

.site-nav__group { position: relative; }
.site-nav__menu {
  position: absolute; left: -12px; top: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 520px; padding: 10px; margin-top: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(var(--shadow), 0.4), 0 6px 18px -8px rgba(var(--shadow), 0.18);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
/* Bridges the gap between the link and the menu so the pointer can cross it. */
.site-nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav__group:hover .site-nav__menu,
.site-nav__group:focus-within .site-nav__menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.site-nav__menu a:hover { background: var(--tinted); }
.site-nav__menu strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.site-nav__menu span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; border-radius: 10px; cursor: pointer; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.15s ease, opacity 0.15s ease; }
.mobile-nav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
.mobile-nav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav__panel {
  position: absolute; left: 0; right: 0; top: var(--header);
  display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - var(--header)); overflow-y: auto;
  padding: 16px var(--gutter) 24px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(var(--shadow), 0.4);
}
.mobile-nav__panel a:not(.btn) { padding: 10px 0; color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; }
.mobile-nav__panel .btn { margin-top: 12px; }
.mobile-nav__panel hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.mobile-nav__label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .site-nav, .site-header__cta { display: none; }
  .mobile-nav { display: block; }
}

/* ---- Gradient panels and framed screens ---- */

.panel, .hero, .cta__panel {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(62% 56% at 94% 0%, var(--g1) 0%, transparent 72%),
    radial-gradient(56% 62% at 0% 28%, var(--g2) 0%, transparent 72%),
    radial-gradient(78% 72% at 72% 100%, var(--g3) 0%, transparent 74%),
    radial-gradient(52% 52% at 0% 100%, var(--g4) 0%, transparent 72%),
    var(--g0);
}
/* Film grain, as on the listing images. */
.panel::after, .hero::after, .cta__panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.16; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(https://notedesk-staging-cae191fdf825.herokuapp.com/%23n)'/%3E%3C/svg%3E");
}

.panel--violet { --g1: #c9d3fa; --g2: #e9b0e0; --g3: #f0a591; }
.panel--peach  { --g1: #d6d2f8; --g2: #f4b3cf; --g3: #f2a98a; }
.panel--amber  { --g1: #d3d9f6; --g2: #f3b5c9; --g3: #f3ab7e; --g4: #f9dcc0; }
.panel--lilac  { --g0: #e6bfe0; --g1: #c8cdfa; --g2: #e7b1ea; --g3: #f0a3a0; }
.panel--sky    { --g1: #cfe0f5; --g2: #f1b4d6; --g3: #ee9f8f; }
.panel--mint   { --g0: #ecc3cf; --g1: #c9e6ea; --g2: #f0b8d4; --g3: #f1a78b; }

.panel {
  border-radius: clamp(22px, 3vw, 36px);
  overflow: hidden;
  padding: clamp(22px, 4.5vw, 52px) 0 0 clamp(22px, 4.5vw, 52px);
}
/* The screen runs off the panel's right and bottom edges. */
.panel .frame { width: 118%; max-height: 560px; border-bottom-left-radius: 0; }

.frame {
  overflow: hidden;
  border-radius: 14px;
  background: #f7f7f7;
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.4),
    0 44px 90px -28px rgba(var(--shadow), 0.5),
    0 10px 28px -10px rgba(var(--shadow), 0.28);
}
.frame img { display: block; width: 100%; height: auto; }

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

.hero { overflow: hidden; --g2: #f6c3df; }
/* Lightened behind the copy so the headline keeps its contrast. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 32%, rgba(255, 255, 255, 0) 64%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px);
}
.hero__copy .lede { margin-top: 26px; }
.hero__copy .actions { margin-top: 34px; }
.hero__copy .fineprint { margin-top: 18px; }

.hero__visual { position: relative; }
.hero__screen { width: 128%; }
.hero__float {
  position: absolute; z-index: 2;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.46),
    0 34px 70px -22px rgba(96, 30, 54, 0.5),
    0 8px 22px -8px rgba(96, 30, 54, 0.26);
}
.hero__float img { display: block; width: 100%; height: auto; }
.hero__float--card { left: -9%; bottom: -7%; width: 40%; transform: rotate(-4deg); }
.hero__float--contact { right: -22%; top: 46%; width: 38%; transform: rotate(3deg); }

@media (max-width: 960px) {
  .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0) 72%); }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero__screen { width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .hero__float--card { left: -3%; bottom: 8%; width: 44%; }
  .hero__float--contact { display: none; }
}

/* ---- Fact strip ---- */

.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.facts h2 { margin-bottom: 6px; color: var(--ink); font-size: 17px; font-weight: 600; }
.facts p { font-size: 15.5px; }
@media (max-width: 760px) { .facts__grid { grid-template-columns: 1fr; } }

/* ---- Sections ---- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tinted { background: var(--tinted); }
.section--flush { padding-top: 0; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p:not(.eyebrow) { margin-top: 18px; font-size: 19px; }
.section__foot { margin-top: 32px; }
.container--narrow .section__head { margin-left: auto; margin-right: auto; text-align: center; }
.container--narrow .section__foot { text-align: center; }

/* ---- Feature rows ---- */

.features { padding: clamp(24px, 4vw, 48px) 0; }
.feature { padding: clamp(40px, 6vw, 76px) 0; }
.feature__inner { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.feature--flip .feature__inner { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.feature--flip .feature__copy { order: 2; }
.feature__summary { margin-top: 20px; font-size: 19px; line-height: 1.5; }
.feature__copy .checks { margin-top: 24px; }
.feature__copy .more-link { margin-top: 28px; }

.feature--wide .feature__inner { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.feature--wide .feature__copy { order: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 88px); align-items: end; }
.feature--wide .feature__copy > .eyebrow, .feature--wide .feature__copy > .headline, .feature--wide .feature__copy > .feature__summary { grid-column: 1; }
.feature--wide .feature__copy > .checks { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: end; }
.feature--wide .feature__copy > .more-link { grid-column: 1; }
.feature--wide .panel .frame { width: 108%; max-height: 600px; }

@media (max-width: 900px) {
  .feature__inner, .feature--wide .feature__copy { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
  .feature--wide .feature__copy > .checks { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .panel .frame, .feature--wide .panel .frame { width: 135%; max-height: 420px; }
}

.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---- Cards ---- */

.cards { display: grid; gap: 20px; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards--three { grid-template-columns: 1fr; } }

.card { display: block; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: inherit; text-decoration: none; }
.card h3 { margin-bottom: 8px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 15.5px; line-height: 1.55; }
.card--plain { background: var(--tinted); border-color: transparent; }
.card--link { transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.card--link:hover { color: inherit; border-color: rgba(18, 18, 18, 0.28); box-shadow: 0 18px 40px -24px rgba(var(--shadow), 0.45); transform: translateY(-2px); }
.card--link h3::after { content: " \2192"; color: var(--accent); }

/* ---- Feature page ---- */

.page-hero { padding-top: clamp(56px, 8vw, 104px); }
.page-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero .lede { margin-top: 24px; }
.page-hero .actions { margin-top: 32px; }
.page-hero .fineprint { margin-top: 18px; }
.page-hero--plain { padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero--tall { padding-bottom: clamp(96px, 14vw, 180px); }

.panel--hero { margin-top: clamp(40px, 6vw, 72px); padding: clamp(22px, 5vw, 64px) clamp(22px, 5vw, 64px) 0; }
.panel--hero .frame { width: 100%; max-width: 980px; max-height: 620px; margin: 0 auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px); }
.detail { padding-top: 22px; border-top: 1px solid var(--ink); }
.detail h2 { margin-bottom: 10px; color: var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
.detail p { font-size: 16px; }
@media (max-width: 900px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .details { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.split p:not(.eyebrow) { margin-top: 18px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

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

.plan-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan-strip__plan { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: inherit; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.plan-strip__plan:hover { color: inherit; border-color: rgba(18, 18, 18, 0.28); transform: translateY(-2px); }
.plan-strip__name { color: var(--ink); font-weight: 600; }
.plan-strip__price { margin: 10px 0 6px; color: var(--ink); font-family: var(--serif); font-size: 44px; font-weight: 350; line-height: 1; letter-spacing: -0.03em; }
.plan-strip__price small { margin-left: 4px; color: var(--muted); font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.plan-strip__tagline { font-size: 14.5px; line-height: 1.45; }
@media (max-width: 900px) { .plan-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plan-strip { grid-template-columns: 1fr; } }

.billing-toggle { display: flex; width: max-content; margin: 0 auto clamp(28px, 4vw, 44px); padding: 4px; border-radius: 999px; background: var(--tinted); box-shadow: inset 0 0 0 1px var(--line); }
.billing-toggle label { padding: 9px 20px; border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
.billing-toggle label span { margin-left: 4px; color: var(--accent); font-weight: 500; }
#billing-monthly:checked ~ .billing-toggle label[for="billing-monthly"],
#billing-annual:checked ~ .billing-toggle label[for="billing-annual"] { background: var(--ink); color: #fff; }
#billing-annual:checked ~ .billing-toggle label[for="billing-annual"] span { color: #f3c6d8; }
#billing-monthly:focus-visible ~ .billing-toggle label[for="billing-monthly"],
#billing-annual:focus-visible ~ .billing-toggle label[for="billing-annual"] { outline: 2px solid var(--ink); outline-offset: 3px; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.plan--popular { border-color: var(--ink); box-shadow: 0 30px 60px -36px rgba(var(--shadow), 0.55); }
.plan__flag { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.plan h2 { color: var(--ink); font-size: 18px; font-weight: 600; }
.plan__tagline { min-height: 3em; margin-top: 4px; font-size: 14.5px; line-height: 1.45; }
.plan__price { margin-top: 18px; color: var(--muted); font-size: 14px; }
.plan__price strong { color: var(--ink); font-family: var(--serif); font-size: 52px; font-weight: 350; line-height: 1; letter-spacing: -0.03em; }
.plan__price--annual { display: none; }
#billing-annual:checked ~ .plans .plan__price--annual { display: block; }
#billing-annual:checked ~ .plans .plan__price--monthly { display: none; }
.plan__note { margin-top: 6px; color: var(--muted); font-size: 14px; }
.plan .btn { margin: 22px 0 24px; }
.plan .checks { gap: 10px; }
.plan .checks li { font-size: 15px; color: var(--text); }
.pricing__note { margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .plan__tagline { min-height: 0; } }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.table th, .table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.table td { color: var(--ink); }
.table td:last-child, .table th:last-child { text-align: right; }
.table tr:last-child td { border-bottom: 0; }

/* ---- FAQ ---- */

.faqs { border-top: 1px solid var(--line); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { position: relative; padding: 22px 44px 22px 0; color: var(--ink); font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 26px; font-weight: 400; line-height: 1; }
.faqs details[open] summary::after { content: "\2212"; }
.faqs details p { max-width: 42em; padding: 0 0 24px; }

/* ---- Closing call to action ---- */

.cta { padding: 0 0 clamp(56px, 8vw, 104px); }
.cta__panel { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: clamp(48px, 8vw, 104px) clamp(24px, 5vw, 64px); border-radius: clamp(22px, 3vw, 36px); overflow: hidden; text-align: center; }
.cta__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 45%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 100%); }
.cta__panel p:not(.fineprint) { max-width: 30em; color: var(--ink); font-size: 19px; }
.cta__panel .fineprint { color: var(--text); }

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

.site-footer { padding: clamp(48px, 7vw, 80px) 0 32px; background: var(--ink); color: #b9b1ad; font-size: 15px; }
.site-footer a:not(.btn) { color: #b9b1ad; text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__about p { max-width: 22em; margin: 16px 0 22px; }
.site-footer h2 { margin-bottom: 14px; color: #fff; font-size: 14px; font-weight: 600; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #2c2827; font-size: 13.5px; }
.site-footer__legal ul { display: flex; gap: 24px; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

/* ---- Docs ---- */

.docs { display: grid; grid-template-columns: 232px minmax(0, 1fr) 190px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 44px; padding-bottom: clamp(56px, 8vw, 96px); }
.docs__sidebar, .docs__toc { position: sticky; top: calc(var(--header) + 24px); max-height: calc(100vh - var(--header) - 48px); overflow-y: auto; }

.docs__menu { display: none; }
.docs-nav__title { margin: 22px 0 6px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.docs-nav a { display: block; margin-left: -10px; padding: 5px 10px; border-radius: 8px; color: var(--text); font-size: 15px; line-height: 1.4; text-decoration: none; }
.docs-nav a:hover { color: var(--ink); background: var(--tinted); }
.docs-nav a[aria-current="page"] { color: var(--ink); background: #f4eae6; font-weight: 600; }

.docs__toc { font-size: 14px; }
.docs__toc p { margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.docs__toc ul { display: grid; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.docs__toc a { color: var(--muted); text-decoration: none; line-height: 1.35; }
.docs__toc a:hover { color: var(--ink); }

.docs__article { min-width: 0; max-width: 760px; }
.docs__crumbs { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.docs__crumbs a { color: inherit; }
.docs__article > h1 { margin-bottom: 24px; color: var(--ink); font-family: var(--serif); font-size: clamp(38px, 5vw, 54px); font-weight: 350; line-height: 1.02; letter-spacing: -0.03em; }

.prose { font-size: 16.5px; line-height: 1.7; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; padding-top: 0.2em; color: var(--ink); font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.prose h3 { margin-top: 1.7em; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.3; }
.prose h4 { margin: 1.5em 0 0; color: var(--ink); font-size: 16.5px; font-weight: 600; }
.prose .anchor { color: inherit; text-decoration: none; }
.prose .anchor:hover::after { content: " #"; color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: 0.4em; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { padding: 0.12em 0.4em; border-radius: 6px; background: #f5eeea; color: var(--ink); font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: #1c1918; }
.prose pre code { padding: 0; background: none; color: #f3ebe7; font-size: 14px; line-height: 1.6; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 18px; border-left: 3px solid var(--line); color: var(--muted); }

.prose .table-scroll { margin-top: 1.4em; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--tinted); color: var(--ink); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.callout { padding: 16px 20px; border-radius: 14px; background: var(--tinted); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; }
.callout > * + * { margin-top: 0.7em; }
.callout-label { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; }
.callout--plan { background: #f6ecf1; border-color: #ecd6e0; }
.callout--plan .callout-label { background: var(--accent); }
.callout--important { background: #fdf1e7; border-color: #f4dcc6; }
.callout--important .callout-label { background: #a8501c; }

.shot { margin-top: 1.8em; margin-bottom: 1.8em; padding: clamp(12px, 2.4vw, 22px); border-radius: 18px; background: linear-gradient(135deg, #f4e3ea 0%, #efe4f6 48%, #f9e4da 100%); }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(18, 18, 18, 0.06), 0 22px 44px -26px rgba(var(--shadow), 0.55); }

.docs-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin-top: 1.2em; }
.docs-index h3 { margin-top: 1.2em; }
.docs-index ul { margin-top: 0.6em; padding-left: 0; list-style: none; }
.docs-index li + li { margin-top: 0.7em; }
.docs-index a { display: block; color: var(--ink); font-weight: 600; text-decoration: none; }
.docs-index a:hover { text-decoration: underline; }
.docs-index span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 640px) { .docs-index { grid-template-columns: 1fr; } }

.docs__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.docs__pager-link { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; }
.docs__pager-link:hover { border-color: rgba(18, 18, 18, 0.3); color: inherit; }
.docs__pager-link span { display: block; color: var(--muted); font-size: 13px; }
.docs__pager-link strong { color: var(--ink); font-weight: 600; }
.docs__pager-link--next { grid-column: 2; text-align: right; }

.docs__help { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 20px 24px; border-radius: 16px; background: var(--tinted); font-size: 15.5px; }
.docs__help strong { color: var(--ink); }
@media (max-width: 560px) { .docs__help { flex-direction: column; align-items: flex-start; } }

@media (max-width: 1100px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .docs__toc { display: none; }
}
@media (max-width: 820px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .docs__sidebar { display: none; }
  .docs__menu { display: block; border: 1px solid var(--line); border-radius: 14px; }
  .docs__menu summary { padding: 13px 18px; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
  .docs__menu nav { padding: 0 18px 18px 28px; }
}

/* ---- Blog ---- */

.post-meta { color: var(--muted); font-size: 14.5px; }

.post-feature {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(40px, 6vw, 72px);
  color: inherit; text-decoration: none;
}
.post-feature:hover { color: inherit; }
.post-feature__cover, .post-card__cover, .post__cover img {
  overflow: hidden; border-radius: clamp(16px, 2vw, 24px); background: var(--tinted);
}
.post-feature__cover img, .post-card__cover img { display: block; width: 100%; height: auto; transition: transform 0.3s ease; }
.post-feature:hover .post-feature__cover img, .post-card:hover .post-card__cover img { transform: scale(1.02); }
.post-feature__copy .headline { font-size: clamp(30px, 3.6vw, 44px); }
.post-feature__copy p:not(.eyebrow):not(.post-meta) { margin: 16px 0; font-size: 18px; line-height: 1.5; }
@media (max-width: 860px) { .post-feature { grid-template-columns: 1fr; } }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 32px); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { display: block; color: inherit; text-decoration: none; }
.post-card:hover { color: inherit; }
.post-card__cover { margin-bottom: 18px; border-radius: 16px; }
.post-card__category { margin-bottom: 8px; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.post-card h2 { margin-bottom: 8px; color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.post-card:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-card p:not(.post-card__category):not(.post-meta) { margin-bottom: 10px; font-size: 15.5px; line-height: 1.55; }

.post { padding-top: clamp(48px, 7vw, 88px); }
.post__header { text-align: center; }
.post__header .eyebrow a { color: inherit; text-decoration: none; }
.post__header .eyebrow a:hover { text-decoration: underline; }
.post__header .display { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; }
.post__header .post-meta { margin-top: 20px; }
.post__cover { margin-top: clamp(32px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px); }
.post__cover img { display: block; width: 100%; max-width: 1040px; height: auto; margin: 0 auto; }
.post__body { font-size: 17.5px; }
.post__body > p:first-child { color: var(--ink); font-size: 20px; line-height: 1.6; }

.post__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 96px);
  padding: clamp(24px, 4vw, 36px); border-radius: 22px; background: var(--tinted);
}
.post__cta h2 { margin-bottom: 6px; color: var(--ink); font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.02em; }
.post__cta p { font-size: 16px; }
@media (max-width: 640px) { .post__cta { flex-direction: column; align-items: flex-start; } }
