/* shiplon.com: shared styles for every page. Light, product-led layout. */

/* Self-hosted, SIL Open Font License: no third-party requests. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --tint: #F6F7FB;          /* alternate sections */
  --ink: #0B1020;           /* headings and body */
  --ink-2: #3D4559;         /* body copy */
  --muted: #646C82;         /* secondary text */
  --line: #E4E7EF;
  --line-2: #D3D8E4;
  --accent: #4F46E5;        /* Shiplon indigo, same as the console */
  --accent-hi: #4338CA;
  --accent-soft: #EEF0FF;
  --navy: #0B1233;          /* dark bands */
  --sail: #FFC72C;
  --ok: #0F8A4F;
  --ok-soft: #E7F6EE;
  --warn: #B45309;
  --warn-soft: #FEF3E2;
  --bad: #C2312B;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 12px 32px -12px rgba(11, 16, 32, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.025em; }
h1 { font-weight: 750; font-stretch: 102%; font-size: clamp(40px, 6vw, 68px); line-height: 1.03; }
h2 { font-weight: 720; font-stretch: 102%; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; }
h3 { font-weight: 650; font-size: 20px; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0; }
.lead { margin-top: 18px; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 62ch; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--accent); font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.tint { background: var(--tint); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .15s, box-shadow .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262C40; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; }

/* Announcement */
.notice { background: var(--navy); color: #DDE2F2; font-size: 14px; }
.notice .wrap { display: flex; justify-content: center; padding-block: 9px; text-align: center; }
.notice a { color: #fff; text-decoration: none; }
.notice a:hover span { text-decoration: underline; }
.notice b { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--sail); color: var(--navy); font-size: 12px; font-weight: 700; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(170%) blur(12px); -webkit-backdrop-filter: saturate(170%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-stretch: 106%; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-size: 15.5px; font-weight: 500; text-decoration: none; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-end .login { color: var(--ink-2); font-weight: 500; font-size: 15.5px; text-decoration: none; padding: 0 10px; }
.nav-end .login:hover { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: var(--tint); }
.menu .panel { position: absolute; right: 0; top: 48px; width: min(280px, calc(100vw - 32px)); padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.menu .panel a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu .panel a:hover { background: var(--tint); }
.menu .panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (max-width: 860px) {
  .links, .nav-end .login, .nav-end .docs { display: none; }
  .menu { display: block; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 0; background:
  radial-gradient(900px 420px at 50% -80px, rgba(79, 70, 229, .14), transparent 70%),
  linear-gradient(#fff, #fff); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(700px 360px at 50% 0, #000, transparent 75%); -webkit-mask-image: radial-gradient(700px 360px at 50% 0, #000, transparent 75%); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lead { margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.fine { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.shot { margin: clamp(44px, 6vw, 64px) auto 0; max-width: 1100px; border-radius: 14px 14px 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: #fff; box-shadow: 0 -2px 0 rgba(255,255,255,.6), 0 30px 80px -30px rgba(30, 27, 107, .35); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #F3F4F8; border-bottom: 1px solid var(--line); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: #D7DBE5; }
.chrome span { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--muted); font: 12.5px/1.4 var(--mono); }
.caption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }

/* Logos / stack row */
.stack { padding: 40px 0; border-bottom: 1px solid var(--line); }
.stack p { text-align: center; color: var(--muted); font-size: 14.5px; }
.stack ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.stack li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; background: #fff; }

/* Cards */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .g3, .g2 { grid-template-columns: 1fr; } }
.card { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { margin-top: 16px; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.card .meta { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.card .meta code { font: 13px var(--mono); color: var(--ink); background: var(--tint); padding: 1px 6px; border-radius: 5px; }
.icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 21px; height: 21px; }
.card.link { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card.link:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

/* Two ways in */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }
.way { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.way h3 { display: flex; align-items: center; gap: 10px; }
.way h3 svg { width: 22px; height: 22px; }
.way p { margin-top: 10px; color: var(--ink-2); }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234F46E5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 112px); }
.feature.flip .copy { order: 2; }
.feature.wide { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.feature.wide.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
@media (max-width: 900px) { .feature, .feature.wide, .feature.wide.flip { grid-template-columns: minmax(0, 1fr); } .feature.flip .copy { order: 0; } }
.feature .lead { font-size: 18px; }
.visual { border-radius: var(--radius); border: 1px solid var(--line); background: var(--tint); padding: clamp(16px, 3vw, 28px); }
.visual.bare { padding: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow); }

/* Mock UI pieces (drawn in HTML, example data) */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.mock-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mock-h small { color: var(--muted); font-weight: 400; font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .sha { font: 13px var(--mono); color: var(--muted); }
.row .msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.build { color: var(--warn); background: var(--warn-soft); }
.pill.off { color: var(--muted); background: var(--tint); }
.pill.plain::before { display: none; }
.mini-btn { padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mini-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.term { background: #0B1020; color: #C9D1E5; border-radius: 12px; padding: 18px 20px; font: 13px/1.75 var(--mono); overflow-x: auto; box-shadow: var(--shadow); }
.term .c { color: #6B7594; }
.term .g { color: #4ADE80; }
.term .y { color: #FACC15; }
.term .b { color: #A5B4FC; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.kv > div { padding: 11px 16px; border-bottom: 1px solid var(--line); }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv .k { font: 13px var(--mono); color: var(--ink); }
.kv .v { font: 13px var(--mono); color: var(--muted); letter-spacing: .15em; }

/* Mini features */
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.mini > div { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini > div:nth-child(3n) { border-right: 0; }
.mini > div:nth-last-child(-n+3) { border-bottom: 0; }
.mini h3 { font-size: 17px; margin-top: 14px; }
.mini p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) {
  .mini { grid-template-columns: 1fr 1fr; }
  .mini > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .mini > div:nth-child(2n) { border-right: 0 !important; }
  .mini > div:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 600px) {
  .mini { grid-template-columns: 1fr; }
  .mini > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .mini > div:last-child { border-bottom: 0 !important; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.steps h3 { margin-top: 16px; font-size: 18px; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.plan.main { border: 2px solid var(--accent); box-shadow: 0 20px 50px -24px rgba(79, 70, 229, .45); }
.plan .tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.plan .tag.grey { background: var(--tint); color: var(--muted); }
.plan h3 { margin-top: 16px; font-size: 22px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.price b { font-size: 48px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.plan > p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.plan .ticks { margin-top: 22px; }
.plan .btn { margin-top: auto; }
.plan .ticks + .btn, .plan .ticks + p + .btn { margin-top: 28px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.table th, .table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table th { width: 42%; color: var(--ink-2); font-weight: 500; }
.table td { color: var(--ink); font-weight: 600; }
.table td small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: 14px; }
.table caption { text-align: left; padding: 0 0 12px; font: 650 18px/1.3 var(--sans); color: var(--ink); }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-items: start; }
@media (max-width: 860px) { .tables { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .table th, .table td { padding: 12px 14px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--tint); color: var(--ink-2); font-size: 20px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); max-width: 70ch; }

/* Final call to action */
.final { background: var(--navy); color: #fff; text-align: center; padding: clamp(72px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 120%, rgba(124, 131, 242, .35), transparent 70%); }
.final .wrap { position: relative; }
.final h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.final p { margin: 16px auto 0; color: #B9C1D9; max-width: 54ch; font-size: 18px; }
.final .btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.final .btn-line:hover { box-shadow: inset 0 0 0 1px #fff; }
.final .btn-white { background: #fff; color: var(--navy); }
.final .btn-white:hover { background: #E8EBF7; }

/* Footer */
footer { background: #fff; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; padding: 56px var(--gutter) 40px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
.foot p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 32ch; }
.foot h4 { font-size: 14px; color: var(--ink); letter-spacing: 0; font-weight: 650; }
.foot ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot ul a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot ul a:hover { color: var(--ink); }
.legal { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); text-align: center; background: radial-gradient(800px 360px at 50% -60px, rgba(79, 70, 229, .12), transparent 70%); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 60px); max-width: 16ch; margin: 0 auto; }
.page-hero .lead { margin-inline: auto; }

.note { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
