/*
 * Marketing site.
 *
 * A quiet, centred, editorial look: near-white ground, a serif display face for
 * headings against a plain sans for everything else, generous vertical rhythm,
 * and soft rounded cards with almost no shadow.
 *
 * Fonts are system stacks on purpose. A webfont would mean an external request
 * and loosening the content security policy, and the serif/sans contrast is
 * what carries the look rather than any one typeface.
 */

:root {
  --ink: #14110f;
  --body: #5c5854;
  --muted: #8b8681;
  --line: #e8e6e3;
  --ground: #f6f5f3;
  --card: #ffffff;
  --card-soft: #efedea;
  --dark: #17150f;
  --accent: #004bff;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Helvetica, Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- site chrome ---- */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
/* The nav carries the whole lockup — mark and wordmark in one vector — so the
   anchor holds an image and no text. `height` alone; the width follows the
   aspect ratio rather than being asserted twice and drifting. */
.wordmark img { height: 25px; width: auto; display: block; }

/* The hero shows the mark on its own. */
.mark { display: block; }
.topbar nav a { text-decoration: none; color: var(--body); font-size: 15px; margin-left: 22px; }
.topbar nav a:hover { color: var(--ink); }

/* ---- hero ---- */

.hero { text-align: center; padding: 56px 0 40px; }
.hero .mark { width: 72px; height: 72px; margin: 0 auto 30px; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.lede { color: var(--body); font-size: 16px; margin: 0 auto 30px; max-width: 430px; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
  text-align: center;
}

.section { padding: 74px 0; }
/* Centred sections. A class rather than a style attribute: the content policy
   is style-src 'self', so an inline style would silently not apply. */
.section.center { text-align: center; }
.section-lede { color: var(--body); text-align: center; max-width: 460px; margin: 0 auto 38px; }

/* ---- buttons ---- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff;
  border: 0; border-radius: var(--r-pill);
  padding: 13px 24px;
  font: 500 15px/1 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #000; }
.btn.ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: #d8d5d1; }
.btn.wide { width: 100%; justify-content: center; }

/* ---- the join bar, as one pill ---- */

.joinbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 6px 6px 20px;
  max-width: 420px; margin: 0 auto 22px;
}
.joinbar input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 15px var(--sans); color: var(--ink); min-width: 0;
}
.joinbar input::placeholder { color: var(--muted); }


.joinbar input:-webkit-autofill,
.joinbar input:-webkit-autofill:hover,
.joinbar input:-webkit-autofill:focus,
.joinbar input:-webkit-autofill:active {
  -webkit-text-fill-color: inherit !important;
  caret-color: inherit !important;

  -webkit-background-clip: text !important;
  background-clip: text !important;

  box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;

  transition: background-color 999999s ease-in-out 0s;
}

.social { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--body); font-size: 14px; }
.faces { display: flex; }
.face {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--ground); margin-left: -9px;
  background: #d9d5d0; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: #6b6560;
}
.face:first-child { margin-left: 0; }

/* ---- stat strip (the countdown shape from the reference) ---- */

.stats { display: flex; justify-content: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.stat {
  background: var(--card-soft); border-radius: var(--r-md);
  padding: 14px 20px; min-width: 92px; text-align: center;
}
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.stat span { display: block; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

/* ---- steps ---- */

.steps { display: grid; gap: 12px; max-width: 620px; margin: 0 auto; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start;
}
.step .n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  background: var(--card-soft); color: var(--ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.step h3 { margin: 0 0 3px; font-size: 16px; font-weight: 600; }
.step p { margin: 0; color: var(--body); font-size: 15px; }

/* ---- pricing ---- */

/* ---- billing switch ---- */

/* The checkbox is the state. It is visually hidden rather than display:none so
   it stays reachable by keyboard and by assistive technology. */
.switch-state {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden;
}

.switch {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 0 auto 22px; padding: 4px;
  background: var(--card-soft); border-radius: var(--r-pill);
  cursor: pointer;
}
.billing-switch { display: flex; flex-direction: column; align-items: center; }

.switch .opt {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 18px; border-radius: var(--r-pill);
  font-size: 14px; color: var(--body); white-space: nowrap;
}
.switch .opt em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* Monthly is selected until the box is checked. */
.switch .opt.m { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(20,17,15,.06); }
.switch-state:checked + .switch .opt.m { background: transparent; color: var(--body); font-weight: 400; box-shadow: none; }
.switch-state:checked + .switch .opt.y { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(20,17,15,.06); }

/* A visible focus ring, since the input itself is hidden. */
.switch-state:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

/* One price at a time. Both are in the markup so the switch costs no request. */
.plan .price.yearly, .plan .save { display: none; }
.switch-state:checked ~ .plans-frame .plan .price.monthly { display: none; }
.switch-state:checked ~ .plans-frame .plan .price.yearly { display: flex; }
.switch-state:checked ~ .plans-frame .plan .save { display: block; }

.plan .save { margin: -6px 0 10px; font-size: 12.5px; color: var(--ok, #157a44); }

.plans-frame {
  background: #eceaf5; border-radius: 28px; padding: 14px;
  margin-top: 8px;
}
.plans { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(2, 1fr); } }

.plan {
  background: #f8f8fb; border-radius: 20px; padding: 26px 24px;
  display: flex; flex-direction: column;
}
/* The middle plan lifts, as in the reference. */
.plan.featured { background: #fff; box-shadow: 0 1px 2px rgba(20,17,15,.05), 0 12px 34px rgba(20,17,15,.07); }

.plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.plan-badge {
  width: 40px; height: 40px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
}
/* These were the unicode geometric characters ◈ and ◆, which render as an empty
   box wherever the font lacks them — the same defect the dashboard sidebar was
   fixed for. Drawn instead, so the badge is there on every device. */
.plan-badge svg {
  width: 19px; height: 19px; fill: none; stroke: var(--body);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.plan.featured .plan-badge { background: #f4f4f8; border-color: #e6e6ee; }
.plan-name { font-size: 17px; font-weight: 600; }

.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.price .amount { font-size: 46px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.price .sign { font-size: 30px; color: #b8b6c2; font-weight: 400; }
.price .per { color: var(--body); font-size: 14px; }

/* The second half of a two-part price. Empty on the plans that have one price,
   and :empty keeps it from reserving space on those cards. */
.plan-extra { color: var(--muted, #6b7280); font-size: 12.5px; margin: -4px 0 12px; line-height: 1.4; }
.plan-extra:empty { display: none; }

.plan-note { color: var(--body); font-size: 14px; margin: 0 0 20px; min-height: 42px; }

.features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.features li::before {
  content: ''; flex: 0 0 auto; margin-top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid #c9c7d6;
}
.plan .btn { margin-top: auto; width: max-content; }

/* ---- faq ---- */

.faq { max-width: 620px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--card-soft); border-radius: var(--r-lg); padding: 18px 20px;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--dark); color: #fff;
  display: grid; place-items: center; font-size: 17px; line-height: 1;
}
.faq details[open] summary::after { content: '\00d7'; }
.faq p { margin: 12px 0 0; color: var(--body); font-size: 15px; }

/* ---- long-form pages ---- */

.article { max-width: 640px; margin: 0 auto; padding: 34px 0 20px; }
.article h1 { text-align: left; margin-bottom: 10px; }
.article .lede { text-align: left; margin: 0 0 30px; max-width: none; }
.article h2 { text-align: left; font-size: 22px; margin: 34px 0 10px; }
.article p, .article li { color: var(--body); }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 7px; }
.article .updated { color: var(--muted); font-size: 14px; }

/* ---- footer ---- */

.foot {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 26px 0 46px; color: var(--muted); font-size: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot a { color: var(--body); text-decoration: none; margin-left: 18px; }

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .joinbar { flex-wrap: wrap; border-radius: var(--r-lg); padding: 14px; }
  .joinbar input { width: 100%; padding: 6px 4px; }
  .joinbar .btn { width: 100%; justify-content: center; }
}
