/* A1 API Gateway marketing site. No scripts, no web fonts, no third-party requests (see PAGE_SECURITY_HEADERS). */
:root {
  --ink: #12201d; --ink-2: #2c3b37; --muted: #56645f; --faint: #8a9692;
  --line: #e2e8e5; --soft: #f4f7f6; --bg: #ffffff;
  --accent: #0f6b5c; --accent-600: #0b5245; --accent-soft: #e3f1ee; --mint: #35c4a4;
  --deep: #0b3b33; --deep-2: #072621;
  --danger: #b3261e; --danger-soft: #fdecec;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 32, 29, .06), 0 8px 24px rgba(16, 32, 29, .06);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.12rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--soft); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.lede { font-size: 1.14rem; color: var(--ink-2); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.fine { font-size: .88rem; color: var(--muted); }
.more { font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--sans); padding: .72em 1.1em; border-radius: 10px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn.lg { font-size: 1rem; padding: .9em 1.35em; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px rgba(15, 107, 92, .22); }
.btn.primary:hover { background: var(--accent-600); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #c9d3cf; background: var(--soft); }
.btn.light { background: #fff; color: var(--deep); }
.btn.light:hover { background: var(--accent-soft); }
.btn.outline-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn.outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.cta-row.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; letter-spacing: -.01em; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.links { display: flex; gap: 22px; }
.links a { color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.links a:hover { color: var(--ink); text-decoration: none; }
.links a[aria-current="page"] { color: var(--accent); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.signin { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 650; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; min-width: 220px; display: grid; }
.menu nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 550; }
.menu nav a:hover { background: var(--soft); text-decoration: none; }
.menu nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 88px; background:
  radial-gradient(900px 420px at 88% -10%, rgba(53, 196, 164, .16), transparent 70%),
  radial-gradient(700px 380px at -10% 110%, rgba(15, 107, 92, .10), transparent 70%),
  linear-gradient(#fff, #f7faf9); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 15ch; }
.ticks { list-style: none; padding: 0; margin: 1.8em 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%230f6b5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.code { margin: 0; background: var(--deep-2); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(7, 38, 33, .45), 0 0 0 1px rgba(255,255,255,.04) inset; overflow: hidden; }
.code figcaption { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font: 500 .8rem var(--mono); color: #8fb3aa; border-bottom: 1px solid rgba(255,255,255,.07); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2d4a44; }
.code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; }
.code code { background: none; border: 0; padding: 0; color: #dcebe7; font-size: .86rem; line-height: 1.7; overflow-wrap: normal; }
.code .k { color: #7fd8c3; }
.code .s { color: #f3c98b; }
.code .c { color: #6f8f88; }

/* Sections */
.section { padding: 88px 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 44px; }
.band { padding: 80px 0 72px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.problem { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; background: linear-gradient(#fff, #fbfcfc); position: relative; }
.problem::before { content: ""; position: absolute; left: 22px; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--danger); opacity: .75; }
.problem p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rails { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 16px; }
.rails li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.rails .ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.ic { width: 24px; height: 24px; }

.keycard { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.keycard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.keycard-head b { font-size: 1.02rem; }
.keycard-head code { margin-left: auto; }
.pill { font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.pill.live { background: #e4f5ea; color: #0a7a2f; }
.keycard dl { margin: 6px 0 0; }
.keycard dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.keycard dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.keycard dt .ic { width: 18px; height: 18px; color: var(--accent); }
.keycard dd { margin: 0; font-weight: 600; font-size: .95rem; }
.meter { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding-top: 16px; font-size: .86rem; }
.meter-label { color: var(--muted); font-weight: 600; }
.meter-bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--accent)); border-radius: 99px; }
.meter-bar i.w62 { width: 62%; }
.meter-val { font-weight: 650; font-variant-numeric: tabular-nums; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 10px; transition: box-shadow .2s, border-color .2s; }
.feature:hover { box-shadow: var(--shadow); border-color: #d5dedb; }
.feature .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: .96rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.steps li { position: relative; padding: 26px 24px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); }

.models { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.models p { color: var(--ink-2); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.chips li:nth-child(-n+3) { background: var(--deep); border-color: var(--deep); color: #fff; }

.cta-band { background: radial-gradient(700px 300px at 85% 0%, rgba(53,196,164,.25), transparent 70%), linear-gradient(135deg, var(--deep), var(--deep-2)); color: #d5e7e2; padding: 64px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .cta-row { margin: 0; }

/* Inner pages */
.page-hero { padding: 72px 0 56px; background: linear-gradient(#f7faf9, #fff); border-bottom: 1px solid var(--line); }
.page-hero.compact { padding: 56px 0 72px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6em; }
.toc a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.toc a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.details { padding: 24px 24px 72px; }
.detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.detail:last-child { border-bottom: 0; }
.detail-head > .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.detail-head p:not(.eyebrow) { color: var(--ink-2); }
.detail#api { grid-template-columns: 1fr; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.points .ic { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.points.two { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; overflow-wrap: normal; }
.note { color: var(--muted); font-size: .94rem; margin-top: 1.2em; }

.sec-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 14px; background: #fff; }
.sec-block > .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.sec-block h2 { font-size: 1.3rem; }
.sec-block ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--ink-2); }
.sec-block li { margin: .45em 0; }

.plans .plan { border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.plans .plan:first-child { border-top: 4px solid var(--mint); }
.plans .plan:last-child { border-top: 4px solid var(--accent); }
.plans .plan p { color: var(--ink-2); }
.plans .plan .points { margin: 8px 0 22px; }
.plans .plan .btn { align-self: flex-start; margin-top: auto; }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-right: 32px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 30px; }
.contact-form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.field .opt { color: var(--faint); font-weight: 500; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd8d4; border-radius: 10px; padding: .66em .8em; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15, 107, 92, .14); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; margin: 6px 0 0; }
.form-alert { background: var(--danger-soft); color: #7d1a15; border: 1px solid #f3c7c4; border-radius: 10px; padding: 12px 14px; font-size: .94rem; }
.form-alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-alert a { color: inherit; text-decoration: underline; }
.contact-form .btn { justify-self: start; }
.contact-form .fine { margin: -4px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 28px 8px 8px; }
.sent .ic { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fbfcfc; padding: 56px 0 28px; font-size: .94rem; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.about p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.site-footer nav h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.site-footer nav a { color: var(--ink-2); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .84rem; }

/* Responsive */
@media (max-width: 980px) {
  .links, .actions { display: none; }
  .menu { display: block; }
  .hero { padding: 56px 0 64px; }
  .hero-grid, .split, .models, .detail, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid3, .steps { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* Endpoint table: one stacked block per row instead of a squeezed two-column grid. */
  .table-wrap thead { display: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 2px 0; border: 0; }
  .table-wrap td code { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .trio, .grid3, .grid2, .steps, .row2, .points.two { grid-template-columns: 1fr; }
  .keycard dl div { grid-template-columns: 1fr; gap: 4px; }
  .keycard-head code { margin-left: 0; }
  .meter { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
