:root {
  --ink: #1a1a1a;
  --muted: #666666;
  --rule: #e5e5e5;
  --accent: #2d6a3f;
  --accent-bg: #e8f5ee;
  --paper: #ffffff;
  --wash: #f8f7f5;
  --gutter: clamp(20px, 5vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Arial, Helvetica, sans-serif; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent-bg); }
.page { width: calc(100% - 2 * var(--gutter)); max-width: 1120px; margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; left: 12px; top: 12px; transform: translateY(-200%); padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand img { display: block; object-fit: contain; }
.header-inner nav, .site-footer nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.header-inner nav a, .site-footer nav a { font-size: 14px; text-decoration: none; white-space: nowrap; }
.header-inner nav a:hover, .site-footer a:hover { text-decoration: underline; }
.header-inner nav .sign-in { font-weight: 700; }

.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(230px, .86fr); align-items: end; gap: clamp(30px, 5vw, 70px); padding-block: clamp(48px, 6.6vw, 94px) 42px; }
h1 { max-width: 15ch; font-size: clamp(46px, 5.6vw, 82px); line-height: .99; letter-spacing: -.065em; font-weight: 700; text-wrap: balance; }
.hero-aside { padding-bottom: 2px; }
.hero-aside p { color: var(--muted); max-width: 34ch; line-height: 1.6; }
.primary-link { margin-top: 22px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 15px; min-height: 44px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-link:hover { background: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.text-link:hover { color: var(--accent); }

.product-preview { border: 1px solid var(--rule); }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 6px 14px 6px 17px; border-bottom: 1px solid var(--rule); background: var(--wash); }
.preview-bar > p { font-weight: 700; font-size: 13px; }
.preview-controls, .billing-toggle { display: inline-flex; gap: 2px; }
.preview-controls button, .billing-toggle button { border: 0; background: transparent; min-height: 36px; padding: 7px 11px; color: var(--muted); font-size: 13px; }
.preview-controls button:hover, .billing-toggle button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.preview-controls button[aria-pressed="true"], .billing-toggle button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); font-weight: 700; }
.preview-window {
  --crop-x: 0;
  --crop-y: 0;
  --crop-width: 3433;
  --crop-height: 958;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--crop-width) / var(--crop-height);
  background: var(--paper);
}
.preview-window[data-view="campaigns"] { --crop-x: 420; --crop-y: 950; --crop-width: 1840; --crop-height: 516; }
.preview-window img { display: block; position: absolute; height: auto; width: calc(100% * 3433 / var(--crop-width)); left: calc(-100% * var(--crop-x) / var(--crop-width)); top: calc(-100% * var(--crop-y) / var(--crop-height)); }
.preview-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 17px; border-top: 1px solid var(--rule); font-size: 13px; }
.preview-caption p { color: var(--muted); }
.demo-label { color: var(--accent); margin-right: 10px; font-weight: 700; white-space: nowrap; }
.preview-caption a { flex-shrink: 0; }

.section-layout { display: grid; grid-template-columns: minmax(180px, .68fr) minmax(0, 1.62fr); gap: clamp(28px, 5vw, 76px); margin-top: clamp(53px, 7vw, 92px); padding-top: 23px; border-top: 1px solid var(--ink); }
.section-layout h2 { font-weight: 700; font-size: clamp(27px, 3.25vw, 43px); line-height: 1.05; letter-spacing: -.055em; }
.feature-list > div, .plan-list > li { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.feature-list > div:first-child, .plan-list > li:first-child { padding-top: 0; }
.feature-list > div { display: grid; grid-template-columns: minmax(145px, .95fr) minmax(0, 1.8fr); gap: 20px; }
.feature-list dt, .plan-list h3 { font-size: 15px; font-weight: 700; }
.feature-list dd, .plan-list > li > p, .pricing-note, .question-list details > p { font-size: 15px; color: var(--muted); }
.billing-toggle { margin-top: 15px; border: 1px solid var(--rule); padding: 3px; }
.billing-toggle button { min-width: 72px; }
.plan-list { padding: 0; margin: 0; list-style: none; }
.plan-list > li { display: grid; grid-template-columns: .63fr minmax(110px, 1.08fr) minmax(0, 2.4fr); align-items: baseline; gap: 14px; }
.plan-price { font-size: clamp(23px, 2.6vw, 33px); font-weight: 700; line-height: 1.12; letter-spacing: -.05em; white-space: nowrap; }
.plan-price span:not([data-price]) { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan-note, .pricing-note { font-size: 13px; color: var(--muted); }
.plan-note { margin-top: 5px; }
.pricing-note { margin-block: 16px 10px; }
.pricing-content > a { font-size: 14px; }
.question-list details { border-bottom: 1px solid var(--rule); }
.question-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding-block: 13px; font-weight: 700; font-size: 15px; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; line-height: 1; }
.question-list details[open] summary::after { content: "−"; }
.question-list details > p { padding: 0 24px 15px 0; }
.site-footer { margin-top: 64px; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 1px solid var(--rule); padding-block: 20px 34px; }
.site-footer p, .site-footer nav a { color: var(--muted); font-size: 13px; }

#dashboard-dialog { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--ink); border: 1px solid var(--rule); background: var(--paper); }
#dashboard-dialog[open] { display: flex; flex-direction: column; }
#dashboard-dialog::backdrop { background: #1a1a1ab8; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); background: var(--wash); }
.dialog-header h2 { font-size: 19px; }
.dialog-header p { font-size: 13px; color: var(--muted); }
.dialog-header button { padding: 8px 13px; border: 1px solid var(--rule); background: var(--paper); font-size: 14px; }
.full-dashboard { min-height: 0; overflow: auto; }
.full-dashboard img { display: block; width: 100%; min-width: 730px; height: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 21px; padding-block: 48px 28px; }
  h1 { font-size: clamp(42px, 8vw, 62px); }
  .hero-aside p { max-width: 45ch; }
  .primary-link { margin-top: 16px; }
  .section-layout { grid-template-columns: 1fr; gap: 22px; }
  .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .billing-toggle { margin-top: 0; }
}
@media (max-width: 480px) {
  .header-inner { min-height: 60px; }
  .header-inner nav { gap: 17px; }
  .header-inner nav .wide-link { display: none; }
  .preview-bar { padding-inline: 10px; gap: 5px; }
  .preview-bar > p, .preview-controls button { font-size: 12px; }
  .preview-controls button { min-height: 40px; padding-inline: 7px; }
  .preview-window[data-view="overview"] { --crop-x: 420; --crop-y: 145; --crop-width: 1315; --crop-height: 800; }
  .preview-caption { flex-wrap: wrap; gap: 7px 12px; padding-inline: 11px; font-size: 12px; }
  .feature-list > div { grid-template-columns: 1fr; gap: 4px; padding-block: 12px; }
  .plan-list > li { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .plan-list > li > p { grid-column: 1 / -1; }
  .plan-list > li > div { text-align: right; }
  .site-footer { flex-wrap: wrap; margin-top: 48px; }
}
