/* Content pages: Agent subscribe, sign-in, download, Terms and Privacy.
   Loaded after styles.css, so the nav, footer, type and tokens are the home page's. These pages are
   quiet and readable: one gradient card per task, the same pill buttons as the Get started card. */

/* Classes below set display, which would beat the browser's own [hidden] rule */
[hidden] { display: none !important; }

/* Inside Unlayered Slicer (?host=unlayered-slicer, set in each page's <head>): no site chrome */
html[data-embed] .topbar,
html[data-embed] .footer { display: none; }

.page {
  padding: calc(16px + 58px + clamp(40px, 8vh, 96px)) var(--gutter) 0;
  background: linear-gradient(to bottom, var(--bg), #0b1020 520px, var(--bg) 1100px);
}

html[data-embed] .page { padding-top: 24px; padding-bottom: 32px; }

.page__inner { max-width: 1100px; margin: 0 auto; }

.page__eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  font-size: 13px;
  font-weight: 600;
  color: rgb(245 245 242 / 0.85);
}

.page__eyebrow--accent { border-color: rgb(77 125 255 / 0.45); background: rgb(77 125 255 / 0.14); color: #b9cbff; }

.page__title {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.page__lead {
  max-width: 54ch;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: rgb(245 245 242 / 0.7);
}

.page__muted { color: rgb(245 245 242 / 0.55); }

.page a.link,
.page p a,
.page li a,
.page label a,
.page dd a { color: var(--ink); text-decoration: underline; text-decoration-color: rgb(245 245 242 / 0.35); text-underline-offset: 3px; }

.page p a:hover,
.page li a:hover,
.page label a:hover { text-decoration-color: var(--ink); }

/* Cards: the Get started card's gradient, smaller radius for working panels */
.card {
  position: relative;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: 28px;
  background: linear-gradient(160deg, #13204a, #0b1024 65%);
  border: 1px solid rgb(255 255 255 / 0.07);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.35);
}

.card--quiet { background: rgb(255 255 255 / 0.03); box-shadow: none; }

.card h2 { margin: 0 0 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: rgb(245 245 242 / 0.72); }
.card p:last-child { margin-bottom: 0; }

/* Pill buttons, as in the Get started card */
.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, opacity 0.2s;
}

.pbtn:hover { background: rgb(255 255 255 / 0.14); }
.pbtn--primary { background: var(--ink); color: var(--bg); border-color: transparent; }
.pbtn--primary:hover { background: #fff; transform: translateY(-1px); }
.pbtn--block { width: 100%; }
.pbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pbtn[disabled], .pbtn[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; transform: none; }
.pbtn--primary[disabled]:hover { background: var(--ink); }

.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: rgb(245 245 242 / 0.8);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgb(245 245 242 / 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

.linkbtn:hover { color: var(--ink); }
.linkbtn[disabled] { opacity: 0.5; cursor: default; }
.linkbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Notes: info, success, error */
.note {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  font-size: 15px;
  line-height: 1.5;
  color: rgb(245 245 242 / 0.85);
}

.note--ok { border-color: rgb(77 125 255 / 0.5); background: rgb(77 125 255 / 0.14); }
.note--err { border-color: rgb(255 120 120 / 0.45); background: rgb(255 90 90 / 0.1); color: #ffc9c9; }
.note a { color: inherit; text-decoration: underline; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #b9cbff;
}

.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status--warn { color: #ffd48a; }
.status--warn::before { background: #f0a830; }

/* Forms */
.field { display: block; margin: 0 0 14px; }
.field__label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; color: rgb(245 245 242 / 0.7); }

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-edge);
  background: rgb(255 255 255 / 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, background-color 0.2s;
}

.input::placeholder { color: rgb(245 245 242 / 0.4); }
.input:focus { outline: none; border-color: var(--accent); background: rgb(255 255 255 / 0.08); box-shadow: 0 0 0 3px rgb(77 125 255 / 0.25); }
.input--code { font-size: 22px; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: rgb(245 245 242 / 0.75);
  cursor: pointer;
}

.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(245 245 242 / 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -3px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Agent subscribe ---------- */
.sub__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.sub__price { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 10px; }
.sub__price strong { font-size: clamp(56px, 7vw, 96px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.sub__price span { font-size: 20px; color: rgb(245 245 242 / 0.6); }
.sub__locked { margin: 0 0 6px; font-size: 17px; line-height: 1.5; font-weight: 500; }

.sub__list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.sub__list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: rgb(245 245 242 / 0.82); }
.sub__list li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgb(77 125 255 / 0.7); }

.sub__box { min-height: 220px; }
.sub__legal { margin: 16px 4px 0; font-size: 13px; line-height: 1.55; color: rgb(245 245 242 / 0.5); }
.sub__legal a { color: rgb(245 245 242 / 0.75); }

.sub__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(64px, 10vh, 120px);
}

.sub__section { margin-top: clamp(64px, 10vh, 120px); }

/* Plan details (pre-purchase disclosures) */
.sub__plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sub__plan .card a { color: var(--ink); }
.sub__requirements { max-width: 820px; margin: 20px 4px 0; font-size: 15px; line-height: 1.6; color: rgb(245 245 242 / 0.65); }
.sub__h2 { margin: 0 0 24px; font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }

.faq { max-width: 820px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.faq details { border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; color: rgb(245 245 242 / 0.6); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq p { max-width: 68ch; margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: rgb(245 245 242 / 0.72); }

@media (max-width: 900px) {
  .sub__top { grid-template-columns: 1fr; }
  .sub__cards { grid-template-columns: 1fr; }
}

/* ---------- Sign in ---------- */
.signin {
  display: grid;
  /* minmax(0, …): Google's button can't widen the card past a phone screen */
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: calc(100svh - 160px);
  padding-bottom: clamp(32px, 8vh, 96px);
}

.signin__card { width: 100%; max-width: 440px; }
.signin__card h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.signin__lead { margin: 0 0 20px; }
.signin__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 16px; font-size: 14px; color: rgb(245 245 242 / 0.6); }
.signin__alt { display: block; margin: 16px auto 0; }

/* ---------- Download ---------- */
.dl__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vh, 64px);
}

.dl__card { display: flex; flex-direction: column; gap: 6px; }
.dl__icon { width: 36px; height: 36px; margin-bottom: 14px; color: var(--ink); }
.dl__card .pbtn { margin-top: 18px; align-self: flex-start; }
.dl__notes { display: grid; gap: 10px; max-width: 70ch; margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.55; color: rgb(245 245 242 / 0.65); }
.dl__agent { margin-top: clamp(48px, 8vh, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.dl__agent p { max-width: 56ch; }

@media (max-width: 720px) {
  .dl__grid { grid-template-columns: 1fr; }
  .dl__card .pbtn { align-self: stretch; }
}

/* ---------- Terms and Privacy ---------- */
.legal { max-width: 70ch; margin: 0 auto; font-size: 17px; line-height: 1.7; color: rgb(245 245 242 / 0.82); }
.legal h1 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: rgb(245 245 242 / 0.6); }
.legal h2 { margin: 0 0 12px; font-size: clamp(40px, 5.6vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.legal .terms-doc-date { margin: 0 0 40px; font-size: 15px; color: rgb(245 245 242 / 0.55); }
.legal h3 { margin: 56px 0 14px; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); scroll-margin-top: 104px; }
.legal h4 { margin: 36px 0 10px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); scroll-margin-top: 104px; }
.legal p { margin: 0 0 18px; }
.legal ul { margin: 0 0 18px; padding-left: 1.3em; }
.legal li { margin: 0 0 8px; }
.legal li::marker { color: rgb(245 245 242 / 0.4); }
.legal strong { color: var(--ink); font-weight: 600; }

.legal__anchor { margin-left: 10px; font-weight: 400; color: rgb(245 245 242 / 0.3); opacity: 0; transition: opacity 0.2s; }
.legal h3:hover .legal__anchor, .legal h4:hover .legal__anchor, .legal__anchor:focus-visible { opacity: 1; }
.legal :target { color: #b9cbff; }

.legal__toc { margin: 0 0 8px; padding: 18px 22px; border-radius: 20px; border: 1px solid rgb(255 255 255 / 0.08); background: rgb(255 255 255 / 0.03); font-size: 15px; }
.legal__toc summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.legal__toc ol { margin: 14px 0 0; padding-left: 1.4em; columns: 2 220px; column-gap: 32px; }
.legal__toc li { margin: 0 0 6px; break-inside: avoid; }
.legal__toc a { color: rgb(245 245 242 / 0.75); text-decoration: none; }
.legal__toc a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 480px) {
  .legal { font-size: 16px; }
  .legal h3 { margin-top: 44px; font-size: 21px; }
  .actions { flex-direction: column; }
  .actions .pbtn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}

/* login/: Continue with Google (js/google-signin.js), then "or use your email" */
.login__google { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 2px; max-width: 100%; overflow: hidden; }
.login__google[hidden], .login__or[hidden] { display: none; }
.login__or { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 12.5px; color: rgb(245 245 242 / 0.45); }
.login__or::before, .login__or::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / 0.12); }
