/* KullaCAD website: product page. White, structured, system fonts, no external requests. */

:root {
  --ink: #111;
  --text: #3c3c3c;
  --muted: #666;
  --line: #e2e2e2;
  --grey: #f5f5f5;
  --dark: #111418;
  --blue: #1b3a8a;
  --blue-hover: #142c6b;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 880px; }

/* ---- buttons ---------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  border: 2px solid transparent; border-radius: 2px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9e9; color: var(--ink); }
.btn-outline-light { color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---- header ----------------------------------------------------------------------------- */

.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.top-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .22em; color: var(--ink); }
.brand-name b { color: var(--blue); font-weight: 700; }
.main-nav { display: flex; gap: 28px; }
.main-nav a, .link-quiet { color: var(--ink); text-decoration: none; font-size: 15px; }
.main-nav a:hover, .link-quiet:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }

/* signed in / signed out (set by the script at the end of index.html) */
.when-in { display: none !important; }
[data-auth="in"] .when-in { display: inline-flex !important; }
[data-auth="in"] .when-out { display: none !important; }
.account { align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 14px; max-width: 240px; }
.account:hover .account-email { text-decoration: underline; text-underline-offset: 4px; }
.account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; }


/* ---- hero ------------------------------------------------------------------------------- */

.hero { background: var(--grey); padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.lead { margin: 20px 0 0; font-size: 18px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid #d8d8d8; display: grid; gap: 6px; font-size: 15px; }
.hero-points li { padding-left: 22px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.hero-shot img { box-shadow: 0 12px 40px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .1); }

/* ---- band ------------------------------------------------------------------------------- */

.band { border-bottom: 1px solid var(--line); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.band p { margin: 0; font-size: 14px; color: var(--muted); }
.band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.band li { font-weight: 600; color: var(--ink); font-size: 16px; }

/* ---- sections --------------------------------------------------------------------------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--grey); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
.section-head p { margin: 14px 0 0; font-size: 18px; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 700; }
.feature-copy p { margin: 14px 0 0; }
.feature-shot { margin: 0; }
.feature-shot img { border: 1px solid var(--line); }
.feature-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile svg { width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tile .tile-h { margin-top: 14px; font-size: 18px; line-height: 1.3; }
.tile p { margin: 8px 0 0; font-size: 15px; }

/* ---- formats ---------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.formats { width: 100%; border-collapse: collapse; font-size: 16px; }
.formats th, .formats td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.formats thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: #fafafa; }
.formats tbody th { color: var(--ink); font-size: 18px; white-space: nowrap; }
.formats tbody tr:last-child th, .formats tbody tr:last-child td { border-bottom: 0; }

/* ---- pricing ---------------------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 840px; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); background: #fff; }
.plan.featured { border: 2px solid var(--ink); }
.price { margin: 18px 0 0; color: var(--muted); }
.amt { font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.min { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.plan ul { margin: 20px 0 28px; padding: 18px 0 0 18px; border-top: 1px solid var(--line); flex: 1; }
.plan li { margin-bottom: 6px; }
.plan .btn { width: 100%; }
.fineprint { margin: 24px 0 0; font-size: 14px; color: var(--muted); max-width: 760px; }

/* ---- FAQ -------------------------------------------------------------------------------- */

.faq { border-top: 1px solid #d8d8d8; }
.faq details { border-bottom: 1px solid #d8d8d8; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 22px; max-width: 720px; }

/* ---- closing band ----------------------------------------------------------------------- */

.cta-band { background: var(--dark); color: #d0d4da; padding: clamp(48px, 6vw, 72px) 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 8px 0 0; font-size: 18px; }
.cta-band .actions { margin-top: 0; }

/* ---- footer ----------------------------------------------------------------------------- */

.footer { background: #0b0d10; color: #a7adb6; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer .brand-name { color: #fff; }
.footer .brand-name b { color: #8fb1ff; }
.footer-note { margin: 14px 0 0; max-width: 320px; }
.footer-h { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.footer-h2 { margin-top: 24px; }
.fineprint a { color: inherit; }
.footer-grid a:not(.brand) { display: block; color: #a7adb6; text-decoration: none; padding: 4px 0; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #23272e; }

/* ---- responsive ------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .hero-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .top-actions .link-quiet { display: none; }
  .account-email { display: none; }
  .top-row { gap: 12px; }
  .actions .btn { flex: 1 1 100%; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .lead, .section-head p { font-size: 17px; }
  .formats th, .formats td { padding: 14px; font-size: 15px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- legal pages ------------------------------------------------------------------------ */

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.legal-side { position: sticky; top: 88px; align-self: start; }
.legal-side-h { margin: 0 0 12px; font-weight: 700; }
.legal-side-h a { color: var(--ink); text-decoration: none; }
.legal-side nav a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: 15px; }
.legal-side nav a:hover { color: var(--ink); }
.legal-side nav a[aria-current="page"] { border-left-color: var(--ink); color: var(--ink); font-weight: 600; }
.legal-doc { max-width: 780px; font-size: 16px; line-height: 1.65; }
.legal-doc h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em; }
.legal-meta { margin: 8px 0 28px; color: var(--muted); font-size: 14px; }
.legal-doc section { scroll-margin-top: 88px; padding-top: 8px; }
.legal-doc h2 { font-size: 21px; margin: 32px 0 10px; }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 0 0 14px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: #1b3a8a; }
.legal-toc { margin: 0 0 24px; padding: 18px 22px; background: var(--grey); border: 1px solid var(--line); }
.legal-toc-h { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 14px; }
.legal-toc li { margin: 0 0 4px; break-inside: avoid; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-defs { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 20px; margin: 0 0 14px; }
.legal-defs dt { font-weight: 700; color: var(--ink); }
.legal-defs dd { margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--grey); color: var(--ink); }
.legal-list { list-style: none; padding: 0; margin: 0 0 24px; }
.legal-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal-list a { font-weight: 700; font-size: 18px; }
.legal-list span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.legal-doc .table-wrap { margin: 0 0 14px; }
.legal-doc .legal-table { margin: 0; }
@media (max-width: 860px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .legal-side { position: static; }
  .legal-side nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .legal-side nav a { border-left: 0; padding: 4px 0; }
  .legal-toc ol { columns: 1; }
  .legal-defs { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-defs dd { margin-bottom: 10px; }
}
