/* =====================================================================
   agenura.com. From the design canvas (design/styles/site.css) with the
   owner's picks: palette P4-7 (Aqua + Blanc + Carmin), light only;
   Clash Display + Satoshi; the "Delta, low cut" mark; the delta spiral.
   System: one flat background, 1px rails at the 1088px content edges,
   full-width 1px rules between sections, no shadows, radii 2/4/6/12,
   one accent, weights 400 and 500.
   Contrast on #FFFFFF: text 17.4:1, muted 5.4:1 (4.8:1 on surface),
   accent as text 5.2:1, white on the accent 5.2:1.
   ===================================================================== */

/* Fonts: official Fontshare WOFF2 files, unmodified, self-hosted as the
   ITF Free Font License 2.0 allows (fonts/FFL.txt, section 01). The licence
   forbids subsetting, so only the weights in use are shipped. */
@font-face { font-family: "Clash Display"; src: url("/assets/fonts/ClashDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #FFFFFF; --surface: #F1F1F1; --border: #E4E4E4; --border-2: #CDCDCD;
  --text: #1A1A1A; --muted: #6A6A6A;
  --accent: #D41F26; --accent-2: #95D9C0; --on-accent: #FFFFFF;
  --accent-text: #D41F26; --focus: #D41F26; --bar: #D41F26; --tint: #F8DBDC; --chip-text: #1A1A1A;
  --signal: #95D9C0; --pal-mode: light;
  --font-display: "Clash Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 500; --display-track: -0.01em;
  --wrap: 1088px; --gut: 48px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 500; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-wrap { position: relative; max-width: var(--wrap); margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.ag-skip { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 8px 12px; border-radius: 4px; background: var(--text); color: var(--bg); font-weight: 500; text-decoration: none; }
.ag-skip:focus { top: 12px; }

/* ---------- Logo ---------- */
.ag-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); border-radius: 4px; }
.ag-mark { flex: none; color: var(--bar); }
.ag-word { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 22px; line-height: 1; }

/* ---------- Buttons, chips, links ---------- */
.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 4px; font: 500 14px/16px var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .1s var(--ease), border-color .1s var(--ease), color .1s var(--ease);
}
.ag-btn .ic { opacity: .6; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.ag-btn:hover .ic { opacity: 1; transform: translateX(2px); }
.ag-btn--pri { background: var(--accent); color: var(--on-accent); }
.ag-btn--pri:hover { background: color-mix(in srgb, var(--accent) 85%, var(--text)); }
.ag-btn--pri:active { background: color-mix(in srgb, var(--accent) 72%, var(--text)); }
.ag-btn--sec { background: var(--bg); color: var(--text); border-color: var(--border-2); }
.ag-btn--sec:hover { background: var(--surface); }
.ag-btn--sec:active { background: color-mix(in srgb, var(--surface) 80%, var(--text)); }
.ag-btn--sm { height: 34px; padding: 0 14px; }
.ag-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 2px; background: var(--tint); color: var(--chip-text);
  font: 500 12px/16px var(--mono); letter-spacing: .02em; white-space: nowrap;
}
.ag-link { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ag-link:hover { text-decoration-color: currentColor; }
.ag-ctas { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Nav ---------- */
.ag-nav { position: relative; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--border); }
.ag-nav .ag-wrap { border: 0; }
.ag-nav-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ag-nav-links { display: flex; gap: 4px; }
.ag-nav-links a { padding: 8px 12px; border-radius: 4px; font: 500 14px/16px var(--font-text); text-decoration: none; transition: background-color .3s var(--ease); }
.ag-nav-links a:hover { background: var(--surface); }
.ag-nav-end { display: flex; align-items: center; gap: 8px; }
.ag-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border-2); border-radius: 4px; background: var(--bg); color: var(--text); cursor: pointer; }
.ag-burger:hover { background: var(--surface); }
.ag-burger .ic { width: 20px; height: 20px; }
.ag-sheet { border-top: 1px solid var(--border); padding: 8px 16px 16px; display: flex; flex-direction: column; }
.ag-sheet[hidden] { display: none; }
.ag-sheet a:not(.ag-btn) { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border); font: 500 16px/24px var(--font-text); text-decoration: none; }
.ag-sheet .ag-btn { margin-top: 16px; height: 48px; }

/* ---------- Hero ---------- */
.ag-hero { position: relative; overflow: hidden; }
.ag-hero-motif { position: absolute; inset: 0; width: 100%; height: 100%; display: block; --motif-fade: .48 .74 .94 1 0 .1 .86 1; }
.ag-hero .ag-wrap { border: 0; }
.ag-hero-in { position: relative; padding: 112px 0 128px; }
.ag-hero-in > * { max-width: 560px; }
.ag-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 10px; border: 1px solid var(--border-2); border-radius: 2px;
  font: 500 12px/16px var(--font-text); letter-spacing: .02em; color: var(--muted); text-decoration: none; background: var(--bg); transition: border-color .15s var(--ease);
}
.ag-badge:hover { border-color: var(--muted); }
.ag-badge .ic { width: 14px; height: 14px; margin-left: -4px; color: var(--chip-text); }
.ag-hero h1 {
  margin-top: 16px; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  font-size: 56px; line-height: 60px; color: var(--text); text-wrap: balance;
}
.ag-lede { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--muted); }
.ag-lede b { color: var(--text); }
.ag-hero .ag-ctas { margin-top: 32px; }

/* ---------- Sections ---------- */
.ag-sec { border-top: 1px solid var(--border); scroll-margin-top: 0; }
.ag-sh { position: relative; padding: 40px var(--gut); }
.ag-sh::before { content: ""; position: absolute; left: -1px; top: 48px; width: 2px; height: 24px; background: var(--bar); }
.ag-sh h2 { max-width: 680px; font: 500 36px/40px var(--font-text); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.ag-sh h2 span { display: block; color: var(--muted); }
.ag-sh--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ag-end { height: 96px; }
.ag-pad { padding: 0 16px; display: grid; gap: 16px; }
.ag-cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ag-cols--2 { grid-template-columns: 1fr 1fr; }
.ag-cell { padding: 32px var(--gut) 40px; }
.ag-cell + .ag-cell { border-left: 1px solid var(--border); }
.ag-cell h3, .ag-soon h3 { font: 500 16px/24px var(--font-text); color: var(--text); }
.ag-cell p, .ag-soon p { margin-top: 8px; color: var(--muted); }
.ag-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font: 500 16px/24px var(--font-text); color: var(--accent-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); padding-bottom: 2px; transition: border-color .2s; }
.ag-mail:hover { border-bottom-color: currentColor; }

/* Products */
.ag-dp { display: grid; grid-template-columns: 5fr 7fr; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.ag-dp-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.ag-dp-head { display: flex; align-items: center; gap: 12px; }
.ag-dp-head h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 28px; line-height: 32px; }
.ag-dp-body > p { color: var(--muted); }
.ag-facts { display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.ag-facts li, .ag-feats li { display: flex; gap: 8px; }
.ag-facts .ic, .ag-feats .ic { margin-top: 2px; color: var(--accent-text); }
.ag-dp-body .ag-ctas { margin-top: auto; padding-top: 8px; }
/* The screenshot runs off the right and bottom edges of the card. */
.ag-shot { position: relative; min-height: 360px; overflow: hidden; border-left: 1px solid var(--border); background: var(--bg); }
.ag-shot img { position: absolute; left: 32px; top: 32px; display: block; width: 760px; max-width: none; height: auto; border: 1px solid var(--border-2); border-radius: 6px 0 0 0; }
.ag-soon { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 32px; border: 1px dashed var(--border-2); border-radius: 12px; }
.ag-soon p { max-width: 560px; }

/* Pricing */
.ag-bill { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); flex: none; }
.ag-bill button { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 500 14px/16px var(--font-text); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.ag-bill button:hover { color: var(--text); }
.ag-bill button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
/* Each card spans seven rows of the parent grid (subgrid), so names, prices, buttons and lists line up across the cards. */
.ag-tiers { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 16px; row-gap: 0; padding: 0 16px; }
.ag-tier { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 16px; align-content: start; padding: 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.ag-tier.is-trial { border-color: var(--bar); }
.ag-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.ag-tier h3 { font: 500 16px/24px var(--font-text); }
.ag-who { font-size: 14px; line-height: 20px; color: var(--muted); }
.ag-price { display: flex; align-items: baseline; gap: 4px; }
.ag-price > span { display: inline-flex; align-items: baseline; gap: 4px; }
.ag-amt { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 40px; line-height: 44px; color: var(--text); font-variant-numeric: tabular-nums lining-nums; }
.ag-amt--sm { font-size: 28px; line-height: 44px; }
.ag-per { font-size: 14px; color: var(--muted); }
.ag-eq { margin-top: -8px; font-size: 13px; line-height: 20px; color: var(--muted); }
.ag-tier .ag-btn { width: 100%; }
.ag-seats { font: 500 13px/20px var(--font-text); color: var(--text); padding-top: 16px; border-top: 1px solid var(--border); }
.ag-feats { font-size: 14px; line-height: 20px; color: var(--muted); }
.ag-feats ul { display: grid; gap: 8px; margin-top: 8px; color: var(--text); }
.ag-pricing:not(.is-monthly) .is-m, .ag-pricing.is-monthly .is-a { display: none !important; }
.ag-under { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 16px 0; padding: 16px 24px; border: 1px solid var(--border); border-radius: 6px; }
.ag-under p { display: flex; align-items: center; gap: 10px; }
.ag-under .ic { color: var(--accent-text); }
.ag-fine { margin: 16px var(--gut) 0; font-size: 14px; line-height: 20px; color: var(--muted); }

/* Footer */
.ag-foot { border-top: 1px solid var(--border); }
.ag-foot-top { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; padding: 64px var(--gut); }
.ag-foot-brand p { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); max-width: 280px; }
.ag-foot-brand p:first-of-type { margin-top: 16px; }
.ag-foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ag-fh { font: 400 14px/20px var(--font-text); color: var(--muted); }
.ag-foot-nav ul { margin-top: 12px; }
.ag-foot-nav a { display: inline-flex; align-items: center; min-height: 36px; font: 500 14px/16px var(--font-text); text-decoration: none; transition: color .2s; }
.ag-foot-nav a:hover { color: var(--accent-text); }
.ag-foot-bot { display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--gut) 24px; border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; color: var(--muted); }
.ag-foot-bot a { text-decoration: none; }
.ag-foot-bot a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.ag-lg-head { padding: 48px var(--gut) 40px; }
.ag-lg-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 40px; }
.ag-lg-tabs a { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 4px; font: 500 14px/16px var(--font-text); color: var(--muted); text-decoration: none; transition: color .15s var(--ease), background-color .15s var(--ease); }
.ag-lg-tabs a:hover { color: var(--text); background: var(--surface); }
.ag-lg-tabs a[aria-current="page"] { color: var(--text); background: var(--surface); border-color: var(--border-2); }
.ag-lg-head h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 48px; line-height: 52px; }
.ag-lg-date { margin-top: 12px; font: 400 13px/20px var(--mono); color: var(--muted); }
.ag-lg-sum { margin-top: 16px; max-width: 640px; font-size: 18px; line-height: 28px; color: var(--muted); }
.ag-lg-grid { display: grid; grid-template-columns: 256px minmax(0, 1fr); border-top: 1px solid var(--border); }
.ag-toc { padding: 32px 24px 32px var(--gut); border-right: 1px solid var(--border); font-size: 14px; line-height: 20px; }
.ag-toc-in { position: sticky; top: 24px; }
.ag-toc-in > p { font: 500 12px/16px var(--font-text); letter-spacing: .02em; color: var(--muted); margin-bottom: 12px; }
.ag-toc a { display: flex; gap: 8px; padding: 6px 0; color: var(--muted); text-decoration: none; transition: color .15s var(--ease); }
.ag-toc a span { min-width: 20px; font-family: var(--mono); font-size: 12px; }
.ag-toc a:hover { color: var(--text); }
.ag-lg-body { padding: 32px var(--gut) 96px; }
.ag-lg-body section { max-width: 34em; scroll-margin-top: 24px; } /* 70-80 characters a line */
.ag-lg-body section + section { margin-top: 40px; }
.ag-lg-body h2 { font: 500 20px/28px var(--font-text); letter-spacing: -.01em; color: var(--text); }
.ag-lg-body h2 span { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-right: 4px; }
.ag-lg-body p, .ag-lg-body li { font-size: 16px; line-height: 28px; color: var(--text); }
.ag-lg-body p { margin-top: 12px; }
.ag-lg-body ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.ag-lg-body li + li { margin-top: 4px; }
.ag-lg-body li::marker { color: var(--muted); }
.ag-lg-body a { color: var(--accent-text); text-underline-offset: 3px; }

/* 404 */
.ag-404 { padding: 112px var(--gut) 128px; }
.ag-404 h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 48px; line-height: 52px; }
.ag-404 p { margin-top: 16px; max-width: 520px; font-size: 18px; line-height: 28px; color: var(--muted); }
.ag-404 .ag-ctas { margin-top: 32px; }

/* ---------- Phone (up to 720px) ---------- */
@media (max-width: 720px) {
  .ag-wrap, .ag-nav .ag-wrap, .ag-hero .ag-wrap { margin: 0 16px; }
  .ag-nav-links, .ag-nav-end > .ag-btn { display: none; }
  .ag-burger { display: inline-flex; }
  .ag-hero { display: flex; flex-direction: column; }
  .ag-hero-in { padding: 40px 0 8px; }
  .ag-hero-motif { position: relative; order: 2; height: 280px; --motif-fade: 0 .12 .88 1 0 .18 .82 1; --motif-zoom: 1.6; --motif-cx: 860; }
  .ag-hero h1 { font-size: 40px; line-height: 44px; }
  .ag-sh { padding: 32px 16px; }
  .ag-sh::before { top: 36px; }
  .ag-sh h2 { font-size: 28px; line-height: 32px; }
  .ag-sh--row { flex-direction: column; align-items: flex-start; }
  .ag-end { height: 64px; }
  .ag-pad, .ag-tiers { padding: 0 12px; gap: 12px; }
  .ag-cols, .ag-cols--2 { grid-template-columns: 1fr; }
  .ag-cell { padding: 24px 16px 32px; }
  .ag-cell + .ag-cell { border-left: 0; border-top: 1px solid var(--border); }
  .ag-dp { grid-template-columns: 1fr; }
  .ag-dp-body { padding: 24px 20px; }
  .ag-shot { min-height: 240px; border-left: 0; border-top: 1px solid var(--border); }
  .ag-shot img { left: 20px; top: 20px; width: 560px; }
  .ag-soon { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .ag-tiers { grid-template-columns: 1fr; }
  .ag-tier + .ag-tier { margin-top: 12px; }
  .ag-under { flex-direction: column; align-items: flex-start; margin: 12px 12px 0; padding: 16px; }
  .ag-fine { margin: 16px 16px 0; }
  .ag-foot-top { grid-template-columns: 1fr; padding: 48px 16px 32px; }
  .ag-foot-nav { grid-template-columns: 1fr 1fr; }
  .ag-foot-bot { flex-direction: column; padding: 16px; }
  .ag-btn { height: 48px; }
  .ag-btn--sm { height: 40px; }
  .ag-lg-grid { grid-template-columns: 1fr; }
  .ag-toc { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px 16px; }
  .ag-lg-head, .ag-lg-body, .ag-404 { padding-left: 16px; padding-right: 16px; }
  .ag-lg-head h1, .ag-404 h1 { font-size: 36px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
