/* ==========================================================================
   Assistom — light editorial theme
   Newsreader (display) + IBM Plex Sans (text) + IBM Plex Mono (code)
   ========================================================================== */

:root {
  --paper:      #FBFAF7;
  --paper-2:    #F3F1EC;
  --ink:        #16191C;
  --ink-2:      #3D454D;
  --muted:      #6B7580;
  --rule:       #E2DED6;
  --rule-soft:  #EDEAE3;
  /* Straight off the logo: mint #2FD98A on the near-black tile #0E1A15.
     Buttons reuse that pairing, so the CTA and the mark are the same green. */
  --mint:       #2FD98A;
  --mint-hi:    #5DF2A6;
  --on-mint:    #06231A;
  --forest:     #0B6442;   /* text-on-paper green: links, badges */
  --forest-hi:  #0D774E;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --wrap: 1080px;
}

* { box-sizing: border-box; }

/* The [hidden] attribute only sets display:none in the UA stylesheet, so any
   author rule that sets display beats it — .account-form{display:grid} was
   leaving the password form on screen behind its own error message. Every
   view here is toggled with .hidden, so make the attribute authoritative. */
[hidden] { display: none !important; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  margin: 0;
  /* The full-bleed pricing band is drawn with a pseudo-element that reaches
     past the viewport; clip it so phones get no sideways scroll. */
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: #BFF3D8; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; }

/* --------------------------------- nav ---------------------------------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.brand span { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* .nav-links a is more specific than .btn, so restate the button colours here. */
.nav-links a.btn { color: var(--on-mint); }
.nav-links a.btn:hover { color: var(--on-mint); text-decoration: none; }

/* ------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 15px; font-weight: 550;
  padding: 12px 22px; border: 1px solid var(--mint); border-radius: 4px;
  background: var(--mint); color: var(--on-mint); text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--mint-hi); border-color: var(--mint-hi); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--muted); }
.btn.block { width: 100%; }

/* --------------------------------- hero --------------------------------- */
.hero { padding-block: 52px 12px; }
.hero .kicker {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px;
}
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.06; max-width: 16ch; }
.hero h1 em { font-style: italic; }
.hero .sub { margin: 24px 0 0; max-width: 52ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.hero .cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .terms { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ---------------- the two-screen proof (yours vs. theirs) ---------------- */
.proof { margin: 60px 0 0; }
.proof-head { display: flex; justify-content: center; margin-bottom: 18px; }
.proof-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 0 14px; position: relative;
}
.proof-eyebrow::before, .proof-eyebrow::after {
  content: ""; position: absolute; top: 50%; width: 46px; height: 1px; background: var(--rule);
}
.proof-eyebrow::before { right: 100%; }
.proof-eyebrow::after  { left: 100%; }

.proof-grid { display: grid; grid-template-columns: 1.32fr 1fr; gap: 20px; align-items: stretch; }

.screen { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #fff; }
.screen figcaption {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border-bottom: 1px solid var(--rule-soft); background: var(--paper-2);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2);
}
.screen .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.screen .dot.live { background: var(--mint); box-shadow: 0 0 0 3px rgba(47,217,138,.2); }
.screen .dot.rec  { background: #C9C4B8; }
.screen-body { flex: 1; position: relative; padding: 16px; background: #12171A; min-height: 300px; }
.screen.theirs .screen-body { display: flex; flex-direction: column; }
.screen.theirs .call { flex: 0 0 auto; }

/* An abstract stand-in for the call behind the overlay — no real branding. */
.call { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; aspect-ratio: 16 / 8; border-radius: 9px;
  background: linear-gradient(150deg, #1E2A2C, #16201F);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.tile span {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); color: #9FB0A8;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
}
.tile b {
  position: absolute; left: 9px; bottom: 8px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; color: #B9C6C0;
}
.tile.self { background: linear-gradient(150deg, #1B2422, #141B1A); }

/* Overlay floats over the call, the way it actually does. */
.screen.mine .ov { margin: -46px 0 0; position: relative; z-index: 2; }
.screen.theirs .nothing {
  flex: 1; display: flex; align-items: center; justify-content: center;
  margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; color: #46524E;
}

.demo-note { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }

/* The overlay itself — same structure and values as the shipping app. */
/* Grid and flex children default to min-width:auto, so the wide code sample
   was forcing the whole overlay past the viewport on phones. */
.ov, .ov-bar, .ov-tools, .ov-panel, .ov-ai, .ov-code, .ov-code pre { min-width: 0; }

.ov { display: grid; gap: 8px; font-size: 14px; }
.ov-bar, .ov-tools, .ov-panel {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  background: rgba(20,23,26,0.94); box-shadow: 0 18px 46px rgba(0,0,0,0.28);
}
.ov-bar { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 15px; }
.ov-bar .ph { flex: 1; min-width: 0; color: #7F938B; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-bar .go {
  border: 0; border-radius: 10px; padding: 9px 16px; background: var(--mint);
  color: #0D211B; font-family: var(--sans); font-size: 13px; font-weight: 650;
}
.ov-tools { display: flex; align-items: center; gap: 9px; padding: 7px 11px; color: #C3D3CB; }
.ov-tools svg { opacity: .85; }
.ov-tools .mode { font-size: 12.5px; font-weight: 600; }
.ov-tools .seg { border-radius: 8px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.ov-tools .seg.on { background: var(--mint); color: #0D211B; }
.ov-tools .spacer { flex: 1; }
.ov-tools .time { font-family: var(--mono); font-size: 12px; color: #9FB0A8; }
.ov-panel { padding: 13px; }
.ov-you {
  width: max-content; max-width: 80%; margin-left: auto; margin-bottom: 11px;
  padding: 9px 13px; border-radius: 13px 13px 4px 13px;
  background: rgba(120,198,168,0.16); border: 1px solid rgba(120,198,168,0.24); color: #EEF6F2;
}
.ov-ai {
  padding: 11px 13px; border-radius: 13px 13px 13px 4px;
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08); color: #F2F6F4;
}
.ov-ai > p { margin: 0 0 10px; line-height: 1.5; }
.ov-tag {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: #8BB6A8;
}
.ov-code { border: 1px solid rgba(255,255,255,0.1); border-radius: 9px; overflow: hidden; background: #0B0F0E; }
.ov-code-head {
  display: flex; justify-content: space-between; padding: 6px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
}
.ov-code-head b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: #8BB6A8; font-weight: 600; }
.ov-code-head i { font-style: normal; font-size: 11px; color: #9FB0A8; }
.ov-code pre { margin: 0; padding: 10px 0; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.45; color: #E8F2EC; }
.ov-code .ln { display: flex; gap: 12px; white-space: pre; }
.ov-code .ln b { width: 22px; padding-left: 10px; text-align: right; color: #55665E; font-weight: 400; }

/* ------------------------------- sections ------------------------------- */
.section { padding-block: 76px; border-top: 1px solid var(--rule-soft); }
.section-label {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px;
}
.section h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; max-width: 20ch; }
.section .lede { margin: 18px 0 0; max-width: 58ch; color: var(--ink-2); }

.steps { margin: 40px 0 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--rule-soft); }
.step:last-child { border-bottom: 1px solid var(--rule-soft); }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 4px; }
.step h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 7px 0 0; color: var(--ink-2); max-width: 56ch; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 38px; }
.cols > div { padding: 24px 26px; border: 1px solid var(--rule-soft); border-radius: 11px; background: #fff; }
.cols h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; }
.cols p { margin: 8px 0 0; color: var(--ink-2); }

/* -------------------------------- pricing -------------------------------- */
/* The pricing block is set on its own tinted band so it reads as the decision
   point of the page rather than one more section. */
.pricing-section { position: relative; }
.pricing-section::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: linear-gradient(180deg, var(--paper) 0%, #F2F5F1 22%, #F2F5F1 100%);
}

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 34px; }

.anchor { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 34px 0 0; }
.anchor div { border-top: 2px solid var(--ink); padding-top: 12px; }
.anchor dt { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.anchor dd { margin: 7px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.anchor-note { margin: 24px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }

/* The trial timeline sits opposite the card: it answers "when am I charged?"
   at the exact moment the question occurs. */
.timeline { margin: 34px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--forest);
}
.timeline li::after {
  content: ""; position: absolute; left: 5.5px; top: 18px; bottom: 0;
  width: 1px; background: var(--rule);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; font-size: 14px; font-weight: 600; }
.timeline span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.price {
  position: relative; border: 1px solid var(--rule); border-radius: 14px;
  padding: 34px 32px 30px; background: #fff;
  box-shadow: 0 1px 2px rgba(22,25,28,.04), 0 18px 44px -22px rgba(22,25,28,.28);
}
.price::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--forest), var(--mint));
}
.price-ribbon {
  position: absolute; top: -12px; right: 26px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
.price-name { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--forest); }
.price .amt { font-family: var(--serif); font-size: 62px; line-height: 1; letter-spacing: -0.03em; }
.price .amt small { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-billed { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.price ul { margin: 24px 0 26px; padding: 0; list-style: none; border-top: 1px solid var(--rule-soft); }
.price li {
  position: relative; padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); font-size: 15.5px;
}
.price li::before {
  content: ""; position: absolute; left: 4px; top: 18px;
  width: 9px; height: 5px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg);
}

.assurances {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  margin: 52px 0 0; padding: 30px 0 0; border-top: 1px solid var(--rule); list-style: none;
}
.assurances li { display: grid; gap: 6px; }
.assurances b { font-size: 15px; font-weight: 600; }
.assurances span { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------------------------------- faq ---------------------------------- */
.faq { margin-top: 34px; }
.faq details { border-top: 1px solid var(--rule-soft); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 550; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); max-width: 68ch; }

/* -------------------------------- footer --------------------------------- */
footer { border-top: 1px solid var(--rule); margin-top: 20px; }
.foot { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding-block: 30px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------- responsive ------------------------------ */
@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; gap: 14px; }
  .proof-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; gap: 34px; }
  .assurances { grid-template-columns: 1fr; gap: 22px; }
  .screen.theirs .screen-body { min-height: 220px; }
  .nav-links .hide-sm { display: none; }
  .hero { padding-top: 34px; }
  .step { grid-template-columns: 34px 1fr; gap: 14px; }
  .demo-stage { padding: 18px 12px 22px; }
}

/* --------------------------- legal + account ----------------------------- */
.legal { padding-block: 48px 70px; max-width: 760px; }
.legal h1 { font-size: 42px; margin-bottom: 8px; }
.legal h2 { font-family: var(--sans); font-size: 19px; font-weight: 600; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.account-page { padding-block: 46px 80px; max-width: 560px; margin: 0 auto; }
.account-card { border: 1px solid var(--rule); border-radius: 10px; background: #fff; padding: 32px; margin-bottom: 18px; }
.account-card h1 { font-size: 34px; }
.account-card h2 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.account-sub { color: var(--muted); margin: 8px 0 0; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.account-form { display: grid; gap: 15px; margin-top: 24px; }
.account-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.account-form input {
  width: 100%; padding: 12px 13px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; outline: none;
}
.account-form input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(11,100,66,.12); }
.account-alt { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-size: 14.5px; color: var(--forest); cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.account-status { margin: 18px 0 0; line-height: 1.55; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.account-fine { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.account-steps { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.8; }
.account-steps code { font-family: var(--mono); font-size: 13px; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.plan-badge {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 4px; border: 1px solid var(--rule); color: var(--muted);
}
.plan-badge.pro, .plan-badge.admin { color: var(--forest); border-color: #B6E4CD; background: #E9F8F0; }
.plan-badge.trial { color: #8A5A12; border-color: #E8D5B0; background: #FBF3E4; }
.error { color: #A3301F; font-size: 14.5px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
