/* ZonkPress site styles. Colours come from the logo (brand/zonkpress-logo-original.png). */
:root {
  --navy: #2c3447;        /* logo background: header, footer, dark bands */
  --navy-deep: #232a3a;
  --teal: #3ca2b4;        /* "press" in the logo: accents on dark backgrounds */
  --teal-ink: #1d6f7e;    /* teal dark enough for text and buttons on white (5.6:1) */
  --blue: #3096d2;
  --violet: #6660c6;
  --ink: #1d2230;
  --muted: #4f586b;
  --line: #dde2ea;
  --paper: #ffffff;
  --mist: #f3f6f9;
  --on-dark: #e9edf3;
  --on-dark-muted: #b6bfcc;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Header: the same navy as the logo so the image blends in */
.site-header { background: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 64px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.main-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.main-nav .nav-cta { background: var(--teal); color: #0f1a24; margin-left: 6px; }
.main-nav .nav-cta:hover { background: #57b6c6; color: #0f1a24; }
.main-nav .nav-cta[aria-current="page"] { box-shadow: none; border-radius: 8px; }
@media (max-width: 760px) {
  .brand img { height: 44px; }
  .header-inner { justify-content: center; }
  .main-nav ul { justify-content: center; }
  .main-nav a { padding: 6px 9px; font-size: 0.93rem; }
  .main-nav .nav-cta { margin-left: 0; }
}

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark a { color: var(--teal); }
.section-dark .lede, .section-dark .muted { color: var(--on-dark-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--teal-ink); margin-bottom: 0.6em; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--teal); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Hero: continues the header's navy, with the logo's gradient as a thin rule */
.hero { background: var(--navy); color: #fff; padding: 64px 0 80px; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--violet), var(--blue), var(--teal)); }
.hero h1 { max-width: 18em; }
.hero .lede { color: var(--on-dark-muted); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-shot { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); background: #fff; }
.hero-shot img { width: 100%; max-height: 470px; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--teal-ink); color: #fff; }
.btn-primary:hover { background: #175a66; color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--teal-ink); }
.hero .btn-primary, .section-dark .btn-primary { background: var(--teal); color: #0f1a24; }
.hero .btn-primary:hover, .section-dark .btn-primary:hover { background: #57b6c6; }
.hero .btn-ghost, .section-dark .btn-ghost { color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 0.4em; }
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--teal-ink); }
a.card h3 { color: var(--teal-ink); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { margin: 0.4em 0 1em; }
.product-card { display: flex; flex-direction: column; gap: 4px; border-top: 4px solid var(--teal); }
.product-card .actions { margin-top: auto; padding-top: 12px; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: #e3f2f5; color: #155563; vertical-align: middle; }
.badge-soon { background: #ece9fb; color: #463f9e; }

/* Feature rows: text beside a screenshot */
.feature-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip > :first-child { order: 2; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 28px rgba(29, 34, 48, 0.1); }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.flip > :first-child { order: 0; }
}
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6em; margin-bottom: 0.45em; }
.ticks li::before { content: ""; position: absolute; left: 0.1em; top: 0.5em; width: 0.7em; height: 0.38em; border-left: 3px solid var(--teal-ink); border-bottom: 3px solid var(--teal-ink); transform: rotate(-45deg); }
.section-dark .ticks li::before { border-color: var(--teal); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; background: var(--paper); }
.plan.featured { border: 2px solid var(--teal-ink); box-shadow: 0 12px 36px rgba(29, 111, 126, 0.15); }
.plan h3 { font-size: 1.35rem; }
.price { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-later { color: var(--muted); font-size: 0.92rem; }
.plan .actions { margin-top: auto; padding-top: 16px; }
.plan .btn { width: 100%; text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--mist); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:last-child td { border-bottom: 0; }
td.yes, td.no { text-align: center; font-weight: 700; }
td.yes { color: var(--teal-ink); }
td.no { color: #9aa3b2; }

/* Prose pages: docs, legal, changelog */
.page-head { background: var(--navy); color: #fff; padding: 44px 0 40px; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--violet), var(--blue), var(--teal)); }
.page-head .lede { color: var(--on-dark-muted); margin-bottom: 0; }
.page-head .eyebrow { color: var(--teal); }
.prose { padding-top: 48px; padding-bottom: 72px; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: 0.35em; }
.prose code { background: var(--mist); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; overflow-wrap: anywhere; }
.toc { background: var(--mist); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.toc ol { margin: 0; }
.note { border-left: 4px solid var(--teal-ink); background: #eef7f9; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4em 0; }
.release { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.release h3 { margin-top: 0; }

/* Sub navigation for a product's pages */
.subnav { background: var(--navy-deep); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 11px 14px; color: var(--on-dark-muted); text-decoration: none; font-size: 0.93rem; font-weight: 600; white-space: nowrap; }
.subnav a:hover { color: #fff; }
.subnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--teal); }
.subnav .subnav-name { color: #fff; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-muted); font-size: 0.95rem; padding-top: 48px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 0.8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.45em; }
.footer-name { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4em; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 36px; padding-top: 18px; padding-bottom: 28px; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
