/* The website's own pages (landing, pricing, account, admin, policies), on the dashboard's
   theme tokens (theme.css). */
.s-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.s-nav { border-bottom: 1px solid var(--color-border-line); background: var(--color-bg); position: sticky; top: 0; z-index: 5; }
.s-nav .s-wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.s-brand { font-family: var(--font-anthropic-serif); font-size: 20px; color: var(--color-fg); text-decoration: none; margin-right: auto; }
.s-brand small { font-family: var(--font-anthropic-sans); font-size: 12px; color: var(--color-fg-muted); margin-left: 6px; }
.s-brand { position: relative; display: inline-block; white-space: nowrap; }
.s-brand .s-word { position: relative; display: inline-block; line-height: 1.25; }
.s-brand .s-word.s-fixed { height: 1.25em; vertical-align: bottom; }
.s-brand .s-fixed .s-ch { position: absolute; top: 0; will-change: transform; }
.s-brand .s-probe { position: absolute; left: 0; top: 0; visibility: hidden; }
.s-brand-note { position: absolute; left: 0; top: calc(100% + 1px); font-family: var(--font-anthropic-sans); font-size: 11px;
  color: var(--color-fg-muted); white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.s-brand.s-flipped .s-brand-note { opacity: 1; }
.s-nav a.s-link { color: var(--color-fg); text-decoration: none; font-size: 14px; }
.s-nav a.s-link:hover { text-decoration: underline; }
.s-user { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.s-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.s-menu { display: none; font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--color-border-line); border-radius: 8px;
  background: var(--color-bg); color: var(--color-fg); cursor: pointer; }
/* phones: the links fold behind the Menu button (only when site.js has run, so they never vanish) */
@media (max-width: 640px) {
  .s-js .s-menu { display: inline-flex; }
  .s-js .s-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 0 12px; }
  .s-js .s-nav.s-open .s-links { display: flex; }
  .s-js .s-links .s-link { padding: 8px 0; font-size: 15px; }
}

.s-btn { font: inherit; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--color-fg); background: var(--color-fg); color: var(--color-bg); cursor: pointer; text-decoration: none; }
.s-btn.s-ghost { background: transparent; color: var(--color-fg); }
.s-btn:disabled { opacity: .45; cursor: not-allowed; }
.s-btn:focus-visible, .s-chip:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; }

.s-hero { padding: 56px 0 32px; display: grid; gap: 18px; }
.s-hero h1 { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0; max-width: 22ch; }
.s-hero p { font-size: 18px; margin: 0; max-width: 62ch; color: var(--color-fg-muted); }
.s-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.s-section { scroll-margin-top: 64px; padding: 36px 0; border-top: 1px solid var(--color-border-line); }
.s-section h2 { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.s-lead { color: var(--color-fg-muted); margin: 0 0 20px; max-width: 70ch; }
.s-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.s-card { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: 12px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.s-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.s-card p { margin: 0; color: var(--color-fg-muted); font-size: 14px; }

.s-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.s-chip { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--color-border-line); background: var(--color-bg); color: var(--color-fg); cursor: pointer; }
.s-chip[aria-pressed="true"] { background: var(--color-fg); color: var(--color-bg); border-color: var(--color-fg); }

.s-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.s-plan { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.s-plan .s-btn { margin-top: auto; }
.s-slides-plan { margin: 0 0 18px; }
.s-plan.s-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; align-items: center; gap: 12px 28px; }
.s-plan.s-wide .s-btn { margin-top: 0; min-width: 160px; }
.s-wide-head { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .s-plan.s-wide { grid-template-columns: 1fr; } }
.s-plan > span:empty { display: none; }
.s-plan.s-best { border-color: var(--color-fg); box-shadow: 0 0 0 1px var(--color-fg) inset; }
.s-plan h3 { margin: 0; font-size: 16px; }
.s-tag { align-self: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--color-fg); color: var(--color-bg); }
.s-price { font-family: var(--font-anthropic-serif); font-size: 34px; line-height: 1; }
.s-price small { font-family: var(--font-anthropic-sans); font-size: 13px; color: var(--color-fg-muted); }
.s-gst { font-size: 13px; color: var(--color-fg-muted); margin: 0; }
.s-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.s-attrs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.s-attrs small { width: 100%; }
.s-attrs span { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--color-border-line); }
.s-note { font-size: 13px; color: var(--color-fg-muted); }

.s-faq details { border-bottom: 1px solid var(--color-border-line); padding: 12px 0; }
.s-faq summary { cursor: pointer; font-weight: 600; }
.s-faq p { color: var(--color-fg-muted); margin: 8px 0 0; }

.s-foot { border-top: 1px solid var(--color-border-line); padding: 24px 0 40px; color: var(--color-fg-muted); font-size: 13px; display: grid; gap: 8px; }
.s-foot a { color: inherit; }

.s-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.s-table th, .s-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--color-border-line); vertical-align: top; }
.s-table th { font-weight: 600; color: var(--color-fg-muted); font-size: 12px; }
.s-scroll { overflow-x: auto; }

.s-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.s-form label { display: grid; gap: 4px; font-size: 13px; color: var(--color-fg-muted); }
.s-form input, .s-form select, .s-input { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--color-border-line); border-radius: 8px; background: var(--color-bg); color: var(--color-fg); }

.s-msg { padding: 12px 14px; border-radius: 10px; background: var(--color-panel); border: 1px solid var(--color-border-line); }
.s-msg.s-bad { border-color: var(--color-bad); }
.s-msg.s-good { border-color: var(--color-ok); }
.s-pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--color-border-line); }
.s-pill.s-on { border-color: var(--color-ok); color: var(--color-ok); }
.s-doc { max-width: 760px; padding: 32px 16px 56px; margin: 0 auto; }
.s-doc h1 { font-family: var(--font-anthropic-serif); font-weight: 400; }
.s-doc h2 { font-size: 18px; margin-top: 28px; }
.s-draft { font-size: 13px; color: var(--color-warn); }

/* the free dashboard: what stays for buyers */
.tier-free .ar-dl, .tier-free .ar-dl-off, .tier-free #view-mtd, .tier-free #view-outlook,
.tier-free .ar-filter, .tier-free #states, .tier-free [data-teaser-hide] { display: none !important; }
.s-upsell { margin: 0 0 20px; }

@media print {
  .s-nav, .s-foot, .s-noprint { display: none !important; }
}

/* dashboard pages: the header lines up with the dashboard's own width */
.tier-free .s-wrap, .tier-paid .s-wrap { max-width: 1280px; }

/* watermark and blanking for free and trial views (site.js IAR.protect) */
.s-wm { position: fixed; inset: 0; pointer-events: none; z-index: 40; background-repeat: repeat; }
.s-blank { position: fixed; inset: 0; z-index: 60; background: var(--color-bg); display: grid; place-items: center;
  padding: 24px; text-align: center; color: var(--color-fg-muted); font-size: 16px; cursor: pointer; }
.ar-slide[data-wm] { position: relative; }
.ar-slide[data-wm]::after { content: attr(data-wm); position: absolute; right: 18px; bottom: 6px; font-size: 11px;
  color: rgba(120, 120, 120, .75); letter-spacing: .02em; pointer-events: none; }
.s-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 0; }
@media print { .s-wm { position: fixed; } .s-blank, .s-share { display: none !important; } }

/* "stay ahead": the deck for the category on screen */
.s-offer { margin: 0 0 16px; padding: 16px 18px; border-radius: 12px; background: var(--color-panel); border: 1px solid var(--color-fg); display: grid; gap: 12px; }
.s-offer .s-actions { margin: 0; }
.s-offer-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; width: min(760px, calc(100% - 24px));
  display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 16px; border-radius: 12px; font-size: 14px;
  background: var(--color-fg); color: var(--color-bg); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.s-offer-bar span { flex: 1; min-width: 0; }
.s-offer-bar .s-btn { background: var(--color-bg); color: var(--color-fg); border-color: var(--color-bg); white-space: nowrap; padding: 6px 14px; }
.s-offer-x { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (max-width: 560px) { .s-offer-bar { font-size: 13px; } .s-offer-bar span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
@media print { .s-offer, .s-offer-bar { display: none !important; } }
body:has(.s-offer-bar:not([hidden])) .s-foot { padding-bottom: 84px; }
.s-compare th, .s-compare td { text-align: center; }
.s-compare th:first-child, .s-compare td:first-child { text-align: left; }
.s-compare td:nth-child(4), .s-compare th:nth-child(4) { background: color-mix(in srgb, var(--color-fg) 6%, transparent); font-weight: 600; }
/* the paid dashboard shows once the visitor's plan is known (app_top.html) */
.tier-paid #dash-root { visibility: hidden; }
.tier-paid.s-open #dash-root { visibility: visible; }
/* the year-ahead outlook stays in-house: hidden unless the viewer is an admin or holds a
   forecast grant (app_top.html removes the class) */
.no-outlook #view-outlook, .no-outlook [data-view-panel="outlook"] { display: none !important; }
