/* Public site: landing page and feature pages. The app has its own stylesheet (app.css). */
:root {
  --bg: #f4f4f1; --surface: #ffffff; --surface-2: #f7f7f4; --surface-3: #ecece8;
  --border: #dddcd6; --border-strong: #b8b7af;
  --text: #1b1b19; --text-2: #585853; --text-3: #767670;
  --primary: #1f5f8b; --primary-hover: #184d72; --primary-soft: #e6eef4; --link: var(--primary);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --serif: Charter, "Iowan Old Style", "Bitstream Charter", Georgia, "Times New Roman", serif;
  /* Finish colors used as accents: copper, gold, anodize blue, chromate green. */
  --copper: #b86a3c; --copper-soft: #fbe9dd; --gold: #c99a2e; --gold-soft: #fbf1d6; --anodize: #2f7fb0; --anodize-soft: #e0eff8; --chromate: #3a8a5a; --chromate-soft: #e1f2e7;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.55 var(--font); font-variant-numeric: tabular-nums; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
h1, h2 { font-family: var(--serif); font-weight: 700; margin: 0; }
h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 26px; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { text-align: right; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.measure { max-width: 760px; }

/* Header */
header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--border); }
.hdr { display: flex; align-items: center; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.brand .mark { color: var(--primary); flex: none; }
.brand:hover { color: var(--text); }
nav a { text-decoration: none; }
.nav-main { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-main a { color: var(--text-2); white-space: nowrap; }
.nav-main a:hover { color: var(--text); }
.nav-main a.btn { color: var(--text); }
.nav-compact { display: none; margin-left: auto; align-items: center; gap: 12px; font-size: 14px; }
.nav-compact > a { color: var(--text-2); white-space: nowrap; }
.nav-compact details { position: relative; }
.nav-compact summary { list-style: none; cursor: pointer; color: var(--text-2); padding: 6px 0; }
.nav-compact summary::-webkit-details-marker { display: none; }
.nav-compact details[open] summary { color: var(--text); }
.nav-compact details > div { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: #fff; border: 1px solid var(--border-strong); border-radius: 4px; padding: 6px 0; display: grid; }
.nav-compact details > div a { display: block; padding: 8px 16px; color: var(--text); }
.nav-compact details > div a:hover { background: var(--surface-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 3px; background: #fff; color: var(--text); font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; transition: background-color 80ms, border-color 80ms; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section.hero { border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.hero .wrap > * { min-width: 0; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { font-size: 18px; color: var(--text-2); }
.hero .note { font-size: 14px; color: var(--text-2); }

/* Screenshots: real captures of the sample shop, 1440x900 light, cropped to content */
figure { margin: 0; min-width: 0; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--border-strong); border-radius: 3px; }
figcaption { font-size: 14px; color: var(--text-2); margin-top: 8px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 6px 8px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.tw { overflow-x: auto; }

/* Product rows: text 5/12, screenshot 7/12, image side alternating */
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: start; padding: 40px 0; border-top: 1px solid var(--border); }
.row > * { min-width: 0; }
.row:first-of-type { border-top: 0; padding-top: 16px; }
.row.flip .shot { order: -1; }
.row h3 { margin: 0 0 8px; }
.more { padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-2); }

/* Pricing */
.plans { font-size: 15px; max-width: 880px; }
.plans thead th { background: var(--surface-2); }
.plans td:first-child { font-weight: 600; }
.plans td, .plans th { padding: 10px 12px; }
.plans tr:last-child td { border-bottom: 1px solid var(--border); }
.fine { font-size: 14px; color: var(--text-2); max-width: 760px; margin-top: 16px; }


/* Footer */
footer { border-top: 1px solid var(--border); padding: 48px 0; font-size: 14px; color: var(--text-2); }
.cols { display: grid; grid-template-columns: 1fr repeat(3, minmax(140px, max-content)); gap: 32px 48px; }
.cols h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { padding: 3px 0; }
.cols a { color: var(--text-2); text-decoration: none; }
.cols a:hover { color: var(--text); text-decoration: underline; }
.cols address { font-style: normal; line-height: 1.6; margin-top: 12px; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); }

@media (min-width: 1100px) { body { font-size: 17px; } }
@media (max-width: 860px) {
  .hdr { gap: 12px; }
  .nav-main { display: none; }
  .nav-compact { display: flex; gap: 10px; }
  .nav-compact .btn.sm { padding: 0 10px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .row.flip .shot { order: 0; }
  .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 40px 0; }
  h1 { font-size: 30px; }
  .plans thead { display: none; }
  .plans, .plans tbody, .plans tr, .plans td { display: block; }
  .plans tr { border-top: 1px solid var(--border); padding: 10px 0; }
  .plans tr:first-child { border-top: 0; }
  .plans td, .plans tr:last-child td { padding: 2px 0; border: 0; text-align: left; }
  .plans td:first-child { font-size: 16px; }
  .plans td[data-label]::before { content: attr(data-label) ": "; color: var(--text-2); }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .hdr { padding: 0 12px; gap: 10px; }
  .nav-compact { font-size: 13px; gap: 8px; }
  .nav-compact .btn.sm { font-size: 13px; padding: 0 8px; }
}

/* Feature pages (/features/*): one article, 760px measure, screenshots full width of the measure */
.crumbs { font-size: 14px; color: var(--text-2); margin: 24px 0 8px; } .crumbs a { color: var(--text-2); text-decoration: none; } .crumbs a:hover { color: var(--text); text-decoration: underline; }
.article { padding: 16px 0 64px; }
.article .wrap { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 48px; align-items: start; }
.article h1 { font-size: 34px; margin-bottom: 12px; }
.article .lead { font-size: 18px; color: var(--text-2); margin-bottom: 32px; }
.article h2 { font-size: 22px; margin: 40px 0 12px; } .article h2:first-of-type { margin-top: 24px; }
.article h3 { margin-top: 24px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; } .article li { margin: 4px 0; }
.article figure { margin: 24px 0; } .article figure.shot img { width: 100%; }
.article table { font-size: 15px; margin: 16px 0 24px; }
.article dl { margin: 0 0 16px; } .article dt { font-weight: 600; } .article dd { margin: 0 0 10px; color: var(--text-2); }
.aside { position: sticky; top: 72px; font-size: 14px; }
.aside h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.aside ul { list-style: none; margin: 0 0 24px; padding: 0; } .aside li { padding: 3px 0; } .aside a { color: var(--text-2); text-decoration: none; } .aside a:hover { color: var(--text); text-decoration: underline; } .aside a.current { color: var(--text); font-weight: 600; }
.aside .try { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 16px; display: grid; gap: 8px; margin: 32px 0 28px; }
.aside .try h4 { margin: 0; color: var(--text); } .aside .try p { font-size: 14px; color: var(--text-2); margin: 0 0 4px; } .aside .try .btn { width: 100%; height: 36px; font-size: 14px; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: var(--border-strong); cursor: help; } abbr[title]:hover { text-decoration-color: var(--primary); text-decoration-style: solid; }
.next { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }

/* Landing: feature index (what is in it) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; margin-top: 24px; }
.features h3 { font-size: 16px; margin: 0 0 4px; } .features h3 a { color: var(--text); text-decoration: none; } .features h3 a:hover { text-decoration: underline; }
.features p { font-size: 15px; color: var(--text-2); margin: 0; }
.features .more-link { font-size: 14px; }
@media (max-width: 1000px) { .article .wrap { grid-template-columns: 1fr; gap: 24px; } .aside { position: static; } .aside ul { display: flex; flex-wrap: wrap; gap: 4px 16px; } }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .article h1 { font-size: 28px; } }

/* ---------- Color on the home page ---------- */
section.hero { position: relative; overflow: hidden; }
section.hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 8% 18%, var(--anodize-soft) 0%, transparent 60%), radial-gradient(50% 45% at 92% 12%, var(--copper-soft) 0%, transparent 60%), radial-gradient(40% 40% at 60% 100%, var(--gold-soft) 0%, transparent 60%); }
.hero .wrap { position: relative; }
.hero .shot img { box-shadow: 0 14px 40px rgba(31, 95, 139, .14), 0 2px 6px rgba(0, 0, 0, .06); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--anodize); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--copper), var(--gold)); }
.hl { background: linear-gradient(transparent 58%, var(--gold-soft) 58%); padding: 0 2px; border-radius: 2px; }
.hl.blue { background: linear-gradient(transparent 58%, var(--anodize-soft) 58%); } .hl.copper { background: linear-gradient(transparent 58%, var(--copper-soft) 58%); } .hl.green { background: linear-gradient(transparent 58%, var(--chromate-soft) 58%); }
.btn.primary { box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 6px 16px rgba(31, 95, 139, .22); }
h2 .rule, .rule { display: block; width: 44px; height: 4px; border-radius: 2px; margin-bottom: 12px; background: linear-gradient(90deg, var(--anodize), var(--copper) 55%, var(--gold)); }
/* Product rows: a colored tile with a number beside each heading */
.row h3 { display: flex; align-items: center; gap: 10px; }
.tag { flex: none; width: 30px; height: 30px; border-radius: 7px; display: inline-grid; place-items: center; font: 700 14px/1 var(--font); color: #fff; }
.tag.blue { background: var(--anodize); } .tag.copper { background: var(--copper); } .tag.gold { background: var(--gold); } .tag.green { background: var(--chromate); }
/* Feature index: a colored left edge per group, rotating through the four finishes */
.features > div { padding-left: 14px; border-left: 3px solid var(--anodize); }
.features > div:nth-child(4n+2) { border-left-color: var(--copper); } .features > div:nth-child(4n+3) { border-left-color: var(--gold); } .features > div:nth-child(4n+4) { border-left-color: var(--chromate); }
/* Pricing: the plan the trial runs on is picked out */
.plans tr.pick td { background: var(--anodize-soft); } .plans tr.pick td:first-child { border-left: 3px solid var(--anodize); }
.plans .pill { display: inline-block; margin-left: 8px; font: 600 11px/18px var(--font); padding: 0 7px; border-radius: 9px; background: var(--anodize); color: #fff; vertical-align: middle; }
/* Support: a soft band */
section#support { background: linear-gradient(180deg, var(--surface-2), #fff); }
@media (max-width: 640px) { .plans tr.pick td { background: none; } .plans tr.pick { border-left: 3px solid var(--anodize); padding-left: 10px; } }
