@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

* { box-sizing: border-box; }

body.site {
    --text: #16181d;
    --muted: #63666e;
    --soft: #8a8d94;
    --line: #e2e0da;
    --stone: #f3f2ee;
    --accent: #4338ca;
    --accent-deep: #3730a3;
    --accent-soft: #e8e8fb;
    --pop: #8ff0ff;
    --pop-hover: #b0f5ff;
    --night: #0c0e1d;
    --night-2: #151834;
    --night-line: #262a4d;
    --night-bar: #111430;
    --night-dash: #343a66;
    --night-dim: #7b7fa6;
    --night-text: #eceefb;
    --night-muted: #9da1c7;
    --grad-light-end: #0891b2;
    --btn-grad: linear-gradient(95deg, #3730a3 0%, #4338ca 35%, #2563eb 65%, #0891b2 100%);
    --grad-dark-a: #8b8cff;
    --grad-dark-c: #ff9be7;
    --glow-a: rgba(143, 240, 255, 0.45);
    --glow-b: rgba(67, 56, 202, 0.14);
    --ok: #0b7a5c;
    --amber: #a35a00;
    --red: #c42b1c;
    --indigo: #3b4cca;
    --font: "Instrument Sans", system-ui, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    --wide: min(1000px, calc(100% - 48px));
    --xwide: min(1200px, calc(100% - 48px));
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.006em;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.site a { color: var(--accent); text-decoration: none; }
.site a:focus-visible, .site summary:focus-visible, .site input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.site h1, .site h2, .site h3 { font-family: var(--font); margin: 0; color: inherit; }
.site code, .site pre { font-family: var(--mono); letter-spacing: 0; }

/* Global nav */
.ap-globalnav { height: 56px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.ap-globalnav-inner { width: var(--xwide); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site .ap-logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.ap-logo img { width: 26px; height: 26px; display: block; }
.ap-logo i { font-style: normal; background: linear-gradient(180deg, #5ab0ff, #6d4cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-globalnav-links { display: flex; gap: 0.3rem; }
.site .ap-globalnav-links a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.15s ease, background 0.15s ease; }
.site .ap-globalnav-links a:hover { color: var(--text); background: var(--stone); }
.site .ap-globalnav-links a.is-current { color: var(--text); background: var(--stone); }
.ap-globalnav-account { display: flex; align-items: center; gap: 14px; }
.site .ap-globalnav-account a:not(.ap-pill) { color: var(--text); font-size: 14px; font-weight: 600; }
.site .ap-globalnav-account a:not(.ap-pill):hover { color: var(--accent); }

/* Local nav */
.ap-localnav { position: sticky; top: 0; z-index: 19; height: 54px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ap-localnav-inner { width: var(--xwide); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.ap-localnav-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

/* Buttons and links */
.ap-ctas { display: flex; justify-content: center; align-items: center; gap: 1.8rem; flex-wrap: wrap; margin-top: 2rem; }
.site .ap-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 6px 6px 6px 20px;
    border-radius: 12px;
    background: var(--btn-grad);
    background-size: 125% 100%;
    background-position: 0% 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    transition: background-position 0.3s ease, box-shadow 0.2s ease;
}
.ap-pill::after {
    content: "";
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: transform 0.2s ease;
}
.site .ap-pill:hover { background-position: 100% 50%; box-shadow: 0 8px 24px -10px rgba(67, 56, 202, 0.7); }
.ap-pill:hover::after { transform: translateX(3px); }
.site .ap-pill-small { gap: 10px; padding: 4px 4px 4px 14px; border-radius: 10px; font-size: 13px; }
.ap-pill-small::after { width: 26px; height: 26px; border-radius: 7px; background-size: 13px; }
.site .ap-pill-block { display: flex; justify-content: space-between; }
.site .ap-more { position: relative; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 2px; color: var(--accent); font-size: 17px; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.25s ease; }
.ap-more::after { content: "\2192"; transition: transform 0.2s ease; }
.site .ap-more:hover { background-size: 100% 1.5px; }
.ap-more:hover::after { transform: translateX(3px); }
.site .ap-more-light { color: var(--pop); }

/* Hero */
.ap-hero { width: var(--wide); margin: 0 auto; padding: 96px 0 72px; text-align: center; }
.ap-eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--accent); }
.ap-hero h1 { font-size: clamp(46px, 7vw, 78px); line-height: 1.02; font-weight: 600; font-stretch: 92%; letter-spacing: -0.035em; }
.ap-hero-sub { max-width: 720px; margin: 22px auto 0; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.38; letter-spacing: -0.012em; color: var(--muted); }
.ap-hero-home { padding-bottom: 0; width: var(--xwide); }
.ap-hero-home h1 { font-size: clamp(54px, 8.6vw, 98px); }
.ap-hero-visual { position: relative; margin: 64px auto 0; max-width: 1060px; padding-bottom: 104px; }
.ap-hero-visual::before { content: ""; position: absolute; inset: 12% -4% 22%; z-index: -1; border-radius: 40px; background: radial-gradient(60% 60% at 50% 50%, var(--glow-a), var(--glow-b) 60%, transparent 80%); filter: blur(30px); }
.ap-hero-dark { width: 100%; background: var(--night); color: var(--night-text); padding-bottom: 40px; }
.ap-hero-dark h1 { max-width: 1000px; margin: 0 auto; }
.ap-hero-dark .ap-hero-sub { color: var(--night-muted); }
.ap-hero-dark .ap-eyebrow, .ap-dark .ap-eyebrow { color: var(--pop); }

.ap-gradient { background: linear-gradient(95deg, var(--accent-deep) 0%, var(--accent) 45%, var(--grad-light-end) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-dark .ap-gradient, .ap-hero-dark .ap-gradient, .ap-tile-dark .ap-gradient { background-image: linear-gradient(95deg, var(--grad-dark-a) 0%, var(--pop) 55%, var(--grad-dark-c) 100%); }
.ap-muted { color: var(--soft); }

/* Sections */
.ap-section { display: flow-root; padding: 104px max(24px, calc((100% - 1000px) / 2)); }
.ap-gray { background: var(--stone); }
.ap-dark { background: var(--night); color: var(--night-text); text-align: center; }
.ap-center { text-align: center; }
.ap-tight-top { padding-top: 0; }
.site .ap-section-title { max-width: 1000px; margin: 0 auto 56px; font-size: clamp(34px, 4.8vw, 54px); line-height: 1.06; font-weight: 600; font-stretch: 92%; letter-spacing: -0.03em; text-align: center; }
.ap-display { font-size: clamp(42px, 6.6vw, 78px); line-height: 1.03; font-weight: 600; font-stretch: 92%; letter-spacing: -0.035em; }
.ap-lead { max-width: 640px; margin: 22px auto 0; font-size: 20px; line-height: 1.45; color: var(--muted); }
.ap-dark .ap-lead { color: var(--night-muted); }
.ap-lead-left { margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); }
.ap-fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* App window */
.ap-window { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(22, 24, 29, 0.04), 0 30px 60px -24px rgba(22, 24, 29, 0.28); text-align: left; }
.ap-window-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: #fbfaf8; border-bottom: 1px solid var(--line); }
.ap-window-mark { width: 18px; height: 18px; background: url("brand/grantory-mark.png") center / contain no-repeat; }
.ap-window-bar span { font-size: 13px; font-weight: 600; color: var(--text); }
.ap-window-meta { margin-left: auto; padding: 3px 9px; border-radius: 6px; background: var(--stone); font-size: 12px; color: var(--muted); }
.ap-window-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); }
.ap-window-side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; background: #fbfaf8; border-right: 1px solid var(--line); font-size: 13px; }
.ap-window-side b { padding: 0 10px 10px; font-size: 12px; font-weight: 600; color: var(--soft); }
.ap-window-side span { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.ap-window-side span.is-on { background: var(--text); color: #fff; font-weight: 600; }
.ap-window-side em { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 5px; background: #ebe9e3; font-size: 11px; line-height: 18px; text-align: center; color: var(--muted); }
.ap-window-side em.red { background: #e5484d; color: #fff; }
.ap-window-main { padding: 22px 26px 18px; }
.ap-matrix { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.ap-matrix th { font-weight: 500; color: var(--muted); }
.ap-matrix thead th { padding: 0 0 12px; font-size: 12px; text-align: center; }
.ap-matrix thead th:first-child, .ap-matrix tbody th { width: 26%; }
.ap-matrix tbody th { padding: 0; text-align: left; font-weight: 600; color: var(--text); }
.ap-matrix td, .ap-matrix tbody th { height: 50px; border-top: 1px solid #efede8; }
.ap-matrix td { position: relative; text-align: center; }
.ap-matrix i, .ap-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: middle; }
.ap-matrix i.on, .ap-legend i.on { background: var(--accent); }
.ap-matrix i.ask, .ap-legend i.ask { border: 2px solid #c9c7c0; }
.ap-matrix i.check, .ap-legend i.check { background: #f0a020; }
.ap-matrix i.late, .ap-legend i.late { background: #e5484d; }
.ap-matrix i.late { box-shadow: 0 0 0 5px rgba(229, 72, 77, 0.16); animation: ap-pulse 2s ease-in-out infinite; }
@keyframes ap-pulse { 50% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0.05); } }
.ap-tip { position: absolute; left: calc(50% + 22px); top: 50%; z-index: 2; transform: translateY(-50%); padding: 8px 12px; border-radius: 8px; border-left: 3px solid #e5484d; background: var(--text); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: left; white-space: nowrap; box-shadow: 0 10px 24px rgba(22, 24, 29, 0.22); }
.ap-tip small { font-weight: 400; color: #b9bcc2; font-size: 11px; }
.ap-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid #efede8; list-style: none; font-size: 12px; color: var(--muted); }
.ap-legend i { width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

/* Bento */
.ap-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; }
.ap-section.ap-gray:has(.ap-bento) { padding-left: max(24px, calc((100% - 1200px) / 2)); padding-right: max(24px, calc((100% - 1200px) / 2)); }
.site .ap-tile { grid-column: span 5; display: flex; flex-direction: column; gap: 28px; min-height: 460px; padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--text); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.site .ap-tile-wide { grid-column: span 7; }
.site .ap-tile:hover { transform: translateY(-3px); border-color: #cfccc4; box-shadow: 0 22px 44px -26px rgba(22, 24, 29, 0.35); }
.ap-tile-eyebrow { display: inline-block; margin: 0 0 14px; padding: 3px 9px; border-radius: 6px; background: var(--stone); font-size: 13px; font-weight: 600; color: var(--muted); }
.ap-tile h3 { font-size: 30px; line-height: 1.08; font-weight: 600; font-stretch: 92%; letter-spacing: -0.03em; }
.ap-tile-text > p:not(.ap-tile-eyebrow) { max-width: 420px; margin: 10px 0 16px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.ap-tile > .ap-more { margin-top: auto; align-self: flex-start; }
.ap-tile:hover .ap-more { background-size: 100% 1.5px; }
.site .ap-tile-dark { border-color: var(--night); background: var(--night); color: var(--night-text); }
.site .ap-tile-dark:hover { border-color: var(--night); }
.ap-tile-dark .ap-tile-eyebrow { background: var(--night-2); color: var(--night-muted); }
.ap-tile-dark .ap-tile-text > p:not(.ap-tile-eyebrow) { color: var(--night-muted); }
.ap-tile-dark .ap-more { color: var(--pop); }

.ap-boundary { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: stretch; margin-top: auto; }
.ap-boundary-col { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #fbfaf8; border: 1px solid var(--line); }
.ap-boundary-col small { margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--soft); }
.ap-boundary-col span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #fff; border: 1px solid #ecebe6; font-size: 14px; font-weight: 500; color: var(--muted); }
.ap-sys { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; filter: grayscale(1); opacity: 0.55; }
.ap-sys.gcp { background: #4285f4; }
.ap-sys.gh { background: #24292f; }
.ap-sys.ok { background: #1662dd; }
.ap-sys.db { background: #336791; }
.ap-boundary-ours { background: var(--night); border-color: var(--night); }
.ap-boundary-ours small { color: var(--pop); }
.ap-boundary-ours span { flex-direction: column; align-items: flex-start; gap: 1px; background: var(--night-2); border-color: var(--night-line); color: var(--night-text); }
.ap-boundary-ours b { font-size: 11px; font-weight: 600; color: var(--night-muted); }
.ap-boundary-gap { position: relative; display: grid; place-items: center; }
.ap-boundary-gap::before { content: ""; position: absolute; top: 12%; bottom: 12%; left: 50%; border-left: 2px dashed #d3d0c8; }
.ap-boundary-gap em { position: relative; padding: 5px 9px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-style: normal; font-size: 11px; font-weight: 600; color: var(--red); white-space: nowrap; box-shadow: 0 4px 12px rgba(22, 24, 29, 0.06); }

.ap-chat { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.ap-bubble { align-self: flex-start; max-width: 88%; padding: 12px 15px; border-radius: 14px 14px 14px 4px; background: var(--night-2); border: 1px solid var(--night-line); color: var(--night-text); font-size: 15px; line-height: 1.45; }
.ap-bubble b { color: var(--pop); font-weight: 600; }
.ap-toolcall { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-toolcall code { padding: 4px 9px; border-radius: 6px; border: 1px dashed var(--night-dash); font-size: 12px; color: var(--night-muted); }
.ap-toolcall code::before { content: "\2192  "; color: var(--pop); }
.ap-bubble-me { align-self: flex-end; border: 0; border-radius: 14px 14px 4px 14px; background: var(--pop); color: var(--text); font-weight: 500; }

.ap-rule { margin-top: auto; padding: 6px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf8; }
.ap-rule-head { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.ap-rule-head b { display: block; font-size: 16px; }
.ap-rule-head small { color: var(--muted); font-size: 13px; }
.ap-rule-head em { margin-left: auto; }
.ap-rule .ap-app-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 17px; }
.ap-rule-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ap-rule-line b { color: var(--text); font-weight: 600; }
.ap-avatars { display: flex; }
.ap-avatars i { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border: 2px solid #fbfaf8; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; }
.ap-avatars i:nth-child(2) { background: #3b4cca; }
.ap-avatars i.ap-avatar-role { width: auto; padding: 0 9px; border-radius: 14px; background: var(--pop); color: var(--text); }

.ap-mini-report { margin-top: auto; padding: 6px 18px 8px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf8; }
.ap-mini-report header { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--text); }
.ap-mini-report header b { font-size: 15px; }
.ap-mini-report header span { font-size: 12px; color: var(--muted); }
.ap-mini-report > div { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; }
.ap-mini-report > div + div { border-top: 1px solid var(--line); }
.ap-mini-report > div span:nth-child(2) { color: var(--muted); }

/* Status chips */
.site em.green, .site em.orange, .site em.red, .site em.blue, .site em.gray { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; }
.site em.green::before, .site em.orange::before, .site em.red::before, .site em.blue::before, .site em.gray::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.site em.green { background: #e2f3ec; color: var(--ok); }
.site em.orange { background: #fdf0dc; color: var(--amber); }
.site em.red { background: #fde7e4; color: var(--red); }
.site em.blue { background: #e8eafb; color: var(--indigo); }
.site em.gray { background: #eeede8; color: var(--muted); }

/* Terminal */
.ap-terminal { max-width: 860px; margin: 64px auto 0; border: 1px solid var(--night-line); border-radius: 18px; overflow: hidden; background: var(--night-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); text-align: left; }
.ap-terminal .ap-window-bar { background: var(--night-bar); border-bottom-color: var(--night-line); }
.ap-terminal .ap-window-bar span { color: var(--night-muted); }
.ap-terminal pre { margin: 0; padding: 26px 30px 30px; overflow-x: auto; font-size: 14px; line-height: 1.7; color: var(--night-text); }
.ap-terminal .dim { color: var(--night-dim); }
.ap-terminal .blue { color: var(--pop); }
.ap-dark .ap-ctas { margin-top: 24px; }

/* Why */
.ap-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.ap-why > div { padding: 30px 28px; border: 1px solid var(--line); border-radius: 18px; }
.ap-why svg { width: 46px; height: 46px; margin-bottom: 22px; padding: 10px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ap-why h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ap-why p { margin: 10px 0 0; color: var(--muted); }

.ap-price-band { text-align: center; }

/* Cards */
.ap-cards { display: grid; gap: 16px; max-width: 1080px; margin: 0 auto; }
.ap-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site .ap-card { display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--text); }
.ap-section:not(.ap-gray) .ap-card { background: #fbfaf8; }
.ap-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ap-card p { margin: 0; color: var(--muted); font-size: 16px; }
.ap-card-num { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 9px; background: var(--pop); color: var(--text); font-weight: 700; font-size: 15px; }
.site .ap-card-link { min-height: 170px; justify-content: space-between; transition: transform 0.25s ease, border-color 0.25s ease; }
.site .ap-card-link:hover { transform: translateY(-3px); border-color: var(--text); }
.ap-card-link:hover .ap-more { background-size: 100% 1.5px; }

/* Feature split */
.ap-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; max-width: 1080px; margin: 0 auto; }
.ap-feature-flip .ap-feature-text { order: 2; }
.ap-feature-text h2 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.05; font-weight: 600; font-stretch: 92%; letter-spacing: -0.03em; }
.ap-panel { padding: 40px; border-radius: 22px; background: var(--stone); background-image: radial-gradient(circle at 1px 1px, rgba(22, 24, 29, 0.09) 1px, transparent 0); background-size: 18px 18px; }
.ap-sheet { padding: 6px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 16px 34px -18px rgba(22, 24, 29, 0.25); }
.ap-sheet-head { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid #efede8; }
.ap-sheet-head b { display: block; font-size: 17px; }
.ap-sheet-head small { color: var(--muted); font-size: 13px; }
.ap-app-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--text); color: var(--pop); font-weight: 700; font-size: 20px; }
.ap-sheet dl { margin: 0; }
.ap-sheet dl > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 0; font-size: 15px; }
.ap-sheet dl > div + div { border-top: 1px solid #efede8; }
.ap-sheet dt { color: var(--muted); }
.ap-sheet dd { margin: 0; font-weight: 500; text-align: right; }
.ap-row-status { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 18px 0; font-size: 15px; font-weight: 500; }
.ap-row-status + .ap-row-status { border-top: 1px solid #efede8; }

.ap-checks, .ap-crosses { margin: 24px 0 0; padding: 0; list-style: none; }
.ap-checks li, .ap-crosses li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.ap-checks li b { color: var(--text); font-weight: 600; }
.ap-checks li::before, .ap-crosses li::before { content: ""; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.7 2.7L14.3 7.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ap-crosses li::before { background: #d9d6ce url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ap-crosses li { text-decoration: line-through; text-decoration-color: rgba(99, 102, 110, 0.5); }
.ap-checks-panel { margin: 0; padding: 4px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ap-checks-panel li:first-child { border-top: 0; }

/* Flow */
.ap-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; max-width: 1080px; margin: 0 auto; padding: 0; list-style: none; counter-reset: flow; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.ap-flow li { counter-increment: flow; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; }
.ap-flow li + li { border-left: 1px solid var(--line); }
.ap-flow li::before { content: counter(flow, decimal-leading-zero); margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--accent); }
.ap-flow li.is-red::before { color: #e5484d; }
.ap-flow span { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.ap-flow p { margin: 0; flex: 1; color: var(--muted); font-size: 15px; line-height: 1.45; }
.ap-flow small { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--stone); font-size: 12px; font-weight: 600; color: var(--muted); }

/* Agents */
.ap-steps-inline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 56px auto 0; padding: 0; list-style: none; counter-reset: step; text-align: left; }
.ap-steps-inline li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--night-line); border-radius: 16px; background: var(--night-2); }
.ap-steps-inline li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 9px; background: var(--pop); color: var(--text); font-weight: 700; }
.ap-steps-inline b { font-size: 18px; font-weight: 600; }
.ap-steps-inline span { color: var(--night-muted); font-size: 16px; }
.ap-toolgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: 1080px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.ap-toolgrid > div { padding: 24px 24px 22px; background: #fff; }
.ap-toolgrid code { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); font-size: 12.5px; font-weight: 600; color: var(--accent-deep); word-break: break-word; }
.ap-toolgrid p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Reports */
.ap-report-stage { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 820px; margin: 0 auto; }
.ap-prompt { align-self: flex-end; max-width: 70%; padding: 12px 18px; border-radius: 14px 14px 4px 14px; background: var(--pop); color: var(--text); font-size: 17px; font-weight: 500; }
.ap-report { width: 100%; padding: 30px 34px 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -28px rgba(22, 24, 29, 0.35); }
.ap-report header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; }
.ap-report header b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ap-report header small { color: var(--muted); font-size: 14px; }
.ap-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 7px; background: var(--text); color: var(--pop); font-size: 13px; font-weight: 600; }
.ap-badge::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.ap-report table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ap-report th { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600; color: var(--soft); }
.ap-report td { padding: 14px 0; border-bottom: 1px solid #efede8; }
.ap-report footer { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Security compare */
.ap-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1080px; margin: 0 auto; }
.ap-compare-col { padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.ap-compare-never { background: #fbfaf8; }
.ap-compare-col h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
.ap-compare-col .ap-checks li, .ap-compare-col .ap-crosses li { color: var(--text); }

/* Pricing */
.ap-pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; align-items: stretch; }
.ap-plan, .ap-calc { padding: 40px; border-radius: 22px; }
.ap-plan { background: var(--night); color: var(--night-text); }
.ap-plan .ap-eyebrow { color: var(--pop); font-size: 15px; }
.ap-plan-price { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 28px; }
.ap-plan-price span { font-size: 104px; font-weight: 600; font-stretch: 80%; line-height: 0.88; letter-spacing: -0.05em; }
.ap-plan-price small { padding-bottom: 10px; color: var(--night-muted); font-size: 16px; line-height: 1.3; }
.ap-plan .ap-checks li { color: var(--night-text); border-top-color: var(--night-line); }
.ap-plan .ap-checks li:first-child { border-top: 0; }
.ap-calc { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.ap-calc h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 28px; }
.ap-calc label { font-size: 14px; font-weight: 600; color: var(--muted); }
.ap-calc-input { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.ap-calc input[type="range"] { --fill: 8%; flex: 1; height: 8px; border-radius: 4px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, var(--accent) var(--fill), #ebe9e3 var(--fill)); cursor: pointer; }
.ap-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 8px; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(67, 56, 202, 0.35); }
.ap-calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 8px; background: #fff; border: 2px solid var(--accent); }
.ap-calc output { min-width: 64px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 20px; font-weight: 600; text-align: center; }
.ap-calc-lines { margin: 28px 0 0; }
.ap-calc-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.ap-calc-lines dt { color: var(--muted); }
.ap-calc-lines dd { margin: 0; font-weight: 600; }
.ap-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 24px; }
.ap-calc-out > div { padding: 20px; border-radius: 14px; background: var(--stone); }
.ap-calc-out small { display: block; color: var(--muted); font-size: 14px; }
.ap-calc-out b { display: block; margin-top: 4px; font-size: 40px; font-weight: 600; font-stretch: 85%; letter-spacing: -0.035em; line-height: 1.1; }
.ap-faq { max-width: 820px; margin: 0 auto; }
.ap-faq details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 0.2s ease; }
.ap-faq details[open] { border-color: var(--text); }
.ap-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 20px 22px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--stone); font-size: 18px; font-weight: 500; color: var(--text); }
.ap-faq details[open] summary::after { content: "\2212"; background: var(--pop); }
.ap-faq p { margin: 0; padding: 0 22px 22px; max-width: 700px; color: var(--muted); }

/* End */
.ap-end { text-align: center; }
.ap-end h2 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.05; font-weight: 600; font-stretch: 92%; letter-spacing: -0.035em; }
.ap-end p { margin: 18px 0 0; font-size: 20px; color: var(--muted); }

/* Legal */
.ap-legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; width: var(--wide); margin: 0 auto; padding: 72px 0 104px; }
.ap-legal-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; align-self: start; }
.site .ap-legal-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.site .ap-legal-nav a:hover { background: var(--stone); color: var(--text); }
.site .ap-legal-nav a.is-current { background: var(--text); color: #fff; font-weight: 600; }
.gw-doc { max-width: 700px; }
.gw-doc h1 { font-size: 48px; line-height: 1.05; font-weight: 600; font-stretch: 92%; letter-spacing: -0.035em; }
.gw-doc h2 { margin: 44px 0 12px; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.gw-doc a { text-decoration: underline; text-underline-offset: 3px; }
.gw-doc p, .gw-doc li, .gw-doc dd { color: var(--text); line-height: 1.6; }
.gw-doc p { margin: 0 0 16px; }
.gw-doc ul { margin: 0 0 16px; padding-left: 22px; }
.gw-doc li { margin-bottom: 6px; }
.gw-doc li::marker { color: var(--accent); }
.gw-doc-lede { margin-top: 28px !important; font-size: 20px; line-height: 1.45 !important; color: var(--muted) !important; }
.gw-doc-table { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 0 0 16px; }
.gw-doc-table dt, .gw-doc-table dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.gw-doc-table dt { padding-right: 16px; font-weight: 600; }
.gw-doc-grid { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.gw-doc-grid th { padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600; color: var(--soft); }
.gw-doc-grid td { padding: 14px 16px 14px 0; border-bottom: 1px solid #efede8; vertical-align: top; }
.gw-doc-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Footer */
.ap-footer { background: var(--night); font-size: 13px; line-height: 1.45; color: var(--night-muted); }
.ap-footer-inner { width: var(--xwide); margin: 0 auto; padding: 48px 0 28px; }
.ap-footnotes { padding-bottom: 24px; border-bottom: 1px solid var(--night-line); max-width: 760px; }
.ap-footnotes p { margin: 0 0 8px; }
.site .ap-footer a { color: var(--night-text); }
.site .ap-footer a:hover { color: var(--pop); }
.site .ap-footnotes a { color: var(--pop); }
.ap-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 32px 0 36px; }
.ap-footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--night-muted); }
.ap-footer-cols a { display: block; margin-bottom: 10px; font-size: 14px; }
.ap-footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--night-line); }
.ap-footer-base nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 1068px) {
    .ap-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ap-flow li { border-top: 1px solid var(--line); }
    .ap-toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-tip { display: none; }
}

@media (max-width: 834px) {
    .site .ap-tile, .site .ap-tile-wide { grid-column: span 12; }
    .ap-globalnav-links a { padding: 6px 8px; }
    .ap-feature, .ap-compare, .ap-pricing, .ap-legal, .ap-cards-3 { grid-template-columns: 1fr; }
    .ap-feature-flip .ap-feature-text { order: 0; }
    .ap-feature { gap: 36px; }
    .ap-why, .ap-steps-inline { grid-template-columns: 1fr; }
    .ap-window-body { grid-template-columns: 1fr; }
    .ap-window-side { display: none; }
    .ap-legal { gap: 28px; padding-top: 40px; }
    .ap-legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .ap-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-section { padding-top: 76px; padding-bottom: 76px; }
    .ap-tight-top { padding-top: 0; }
}

@media (max-width: 600px) {
    body.site { overflow-x: hidden; }
    .ap-globalnav-links { display: none; }
    .ap-hero { padding: 60px 0 48px; }
    .ap-ctas { gap: 1.4rem; }
    .ap-cards-4, .ap-flow, .ap-toolgrid { grid-template-columns: 1fr; }
    .ap-flow li + li { border-left: 0; }
    .site .ap-tile { padding: 26px 22px; min-height: 0; }
    .ap-tile h3 { font-size: 26px; }
    .ap-boundary { grid-template-columns: 1fr; }
    .ap-boundary-gap { height: 56px; }
    .ap-boundary-gap::before { top: 0; bottom: 0; }
    .ap-window-main { padding: 14px; overflow-x: auto; }
    .ap-window-meta { display: none; }
    .ap-matrix { min-width: 520px; }
    .ap-panel, .ap-compare-col, .ap-plan, .ap-calc { padding: 26px 22px; }
    .ap-report { padding: 22px 18px; overflow-x: auto; }
    .ap-plan-price span { font-size: 84px; }
    .ap-calc-out { grid-template-columns: 1fr; }
    .gw-doc h1 { font-size: 36px; }
    .gw-doc-table { grid-template-columns: 1fr; }
    .gw-doc-table dd { border-top: 0; padding-top: 0; }
    .ap-footer-base { flex-direction: column; }
}
