/* ==========================================================================
   PiperStitch — piperstitch.com
   Brand: navy and thread-blue from the wordmark, a caramel accent from the
   sandpiper, and a warm linen ground. Structure carried over from the Amerus
   site stylesheet; only the palette and the app-window mock changed.
   ========================================================================== */

:root {
  /* Shoreline palette: sky and sea from the thread, sand and shell from the
     sandpiper, a touch of sun. Navy is now a text colour, not a backdrop. */
  --navy-900: #17324f;
  --navy-800: #1f3f63;
  --navy-700: #29507b;
  --navy-600: #2f5f96;
  --blue-500: #2b86e8;
  --blue-400: #55a4f0;
  --blue-200: #bfdcf8;
  --sea-500:  #3fb5a8;
  --sea-100:  #e3f5f2;
  --sun-500:  #f2a93b;
  --sun-100:  #fff1d6;
  --shell:    #d99a6a;
  --red-600:  #c9773a;   /* warm accent (kept under the old name so nothing else changes) */
  --red-500:  #d98a3c;

  --paper:    #fdfaf4;   /* sand */
  --paper-2:  #ffffff;
  --sky:      #eef6fd;
  --sand-2:   #f6efe3;
  --ink:      #22303f;
  --ink-2:    #4a5866;
  --muted:    #7b8794;
  --line:     #e9e2d5;
  --line-2:   #f1ece2;

  --max: 1140px;
  --pad: 24px;
  --r: 18px;
  --r-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(31,63,99,.04), 0 6px 18px rgba(31,63,99,.06);
  --shadow-md: 0 2px 6px rgba(31,63,99,.05), 0 20px 48px rgba(31,63,99,.10);
  --shadow-lg: 0 8px 24px rgba(31,63,99,.10), 0 40px 90px rgba(31,63,99,.14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.14;
  letter-spacing: -0.018em;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--navy-800);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.24rem; letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 800px; }
.center { text-align: center; }
.lede { font-size: clamp(1.08rem, 1.9vw, 1.32rem); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .93rem; }
.tiny  { font-size: .84rem; }
.nowrap { white-space: nowrap; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea-500);
  background: var(--sea-100);
  padding: 6px 13px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.sky .eyebrow, .on-dark .eyebrow { color: var(--sea-500); background: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease,
              border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-500) 100%);
  color: #fff;
  box-shadow: 0 2px 5px rgba(43,134,232,.22), 0 12px 26px rgba(43,134,232,.22);
}
.btn-primary:hover { color: #fff; box-shadow: 0 4px 10px rgba(43,134,232,.26), 0 18px 36px rgba(43,134,232,.28); }

.btn-secondary { background: #fff; color: var(--navy-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { color: var(--navy-800); border-color: var(--blue-200); background: #fff; }

.btn-light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--navy-900); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .cta-row { justify-content: center; }

.cta-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }


/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253,250,244,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.brand-link { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-link img { width: 34px; height: auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  line-height: 1;
}
.brand-word .blue { color: var(--blue-500); }
.brand-sub {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .17em;
  color: var(--sea-500);
  margin-top: 4px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: .96rem;
  font-weight: 550;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy-800); }
.site-nav a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--sea-500); }
.site-nav a.btn { padding: 10px 20px; font-size: .95rem; border-bottom: none; }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 17px; height: 1.8px; background: var(--navy-800); border-radius: 2px; }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.section-sm { padding: 62px 0; }
.section-tight { padding-top: 0; }
.bg-white { background: var(--paper-2); }
.bg-line-top { border-top: 1px solid var(--line); }

.sky {
  position: relative;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(255,241,214,.9), transparent 60%),
    radial-gradient(1000px 520px at 95% 110%, rgba(227,245,242,.95), transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, #f7fbff 55%, var(--paper) 100%);
  color: var(--ink-2);
}
/* A single loop of thread, echoing the logo, drifting behind the hero copy. */
.sky::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='420' viewBox='0 0 1400 420'%3E%3Cpath d='M-40 330 C 220 300, 380 250, 560 300 S 900 400, 1040 280 c 60-52 120-30 96 20 c-30 62-130 40-96-20' fill='none' stroke='%232b86e8' stroke-width='2.2' stroke-linecap='round' opacity='.22'/%3E%3C/svg%3E") center bottom / 1400px 420px no-repeat;
}
.sky > * { position: relative; z-index: 1; }
/* Interior page heroes are short: keep the thread low and faint so it never runs through the copy. */
.page-hero.sky::before { background-position: center 130%; opacity: .55; }
.sky h1, .sky h2, .sky h3 { color: var(--navy-800); }
.sky .lede { color: var(--ink-2); }
.sky .muted { color: var(--muted); }
.sky a { color: var(--blue-500); }
.sky a:hover { color: var(--navy-800); }
.sky a.btn-primary, .sky a.btn-primary:hover { color: #fff; }
.sky a.btn-secondary { color: var(--navy-700); }
.sky a.btn-secondary:hover { color: var(--navy-800); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 0;
  text-align: center;
}
.hero-mark { width: 118px; margin: 0 auto 22px; filter: drop-shadow(0 10px 18px rgba(31,63,99,.14)); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.35rem);
  letter-spacing: -0.032em;
  margin-bottom: 6px;
}
.hero h1 .accent {
  display: block;
  background: linear-gradient(96deg, var(--blue-500) 0%, var(--sea-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  font-weight: 550;
  color: var(--navy-700);
  margin: 20px auto 0;
  max-width: 660px;
  letter-spacing: -0.01em;
}
.hero-body { max-width: 640px; margin: 18px auto 0; color: var(--ink-2); font-size: 1.05rem; }
.hero .cta-row { margin-top: 34px; justify-content: center; }

.hero-rule {
  width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sun-500), var(--sea-500));
  margin: 30px auto 0;
}
.hero-motto {
  margin-top: 18px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* trust strip */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 14px;
  margin: 40px auto 0;
  max-width: 900px;
  padding: 0;
}
.trust li {
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.trust svg { flex: none; }

/* ---------- app window mock (PiperStitch, the web editor) ---------- */
.mock-stage { padding: 62px 0 84px; margin-top: 46px; }
.mock {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  background: #fbfaf7;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: left;
  font-size: 13px;
  color: var(--ink);
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 15px;
  background: #f0eee9;
  border-bottom: 1px solid #e2dfd8;
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-url { margin-left: 14px; flex: 1; max-width: 360px; font-size: 11.5px; color: #5d6472; background: #fff; border: 1px solid #e2dfd8; border-radius: 7px; padding: 4px 10px; }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: #fffffe; border-bottom: 1px solid #eae7e0; }
.mock-top img { width: 22px; height: 22px; border-radius: 6px; }
.mock-top b { font-size: 13px; color: var(--navy-800); }
.mock-doc { color: #5d6472; font-size: 12px; }
.mock-account { margin-left: auto; font-size: 11.5px; color: #a8621f; }
.mock-toolbar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 12px; background: #fff; border-bottom: 1px solid #f0ede6;
}
.mock-toolbar.edit { background: #fbfaf7; }
.mock-toolbar u {
  text-decoration: none; font-size: 11px; padding: 4px 10px; white-space: nowrap;
  border-radius: 999px; border: 1px solid #e6e0d4; color: #3a424e; background: #fff;
}
.mock-toolbar u b { color: var(--navy-800); }
.mock-toolbar u.go { background: var(--blue-500); border-color: var(--blue-500); color: #fff; font-weight: 650; }
.mock-toolbar u.on { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.mock-spacer { flex: 1; }
.mock-sep { width: 1px; height: 18px; background: #e6e0d4; margin: 0 3px; }
.mock-body { display: flex; min-height: 340px; }
.mock-canvas {
  flex: 1; min-width: 0;
  background: #f7f3ec;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.mock-canvas svg { width: 62%; max-width: 330px; height: auto; position: relative; }
.mock-hoopframe { position: absolute; left: 50%; top: 50%; width: 78%; height: 84%; transform: translate(-50%, -50%); border: 1.5px dashed rgba(26,111,209,.4); border-radius: 3px; }
.mock-hooplabel { position: absolute; left: 6px; top: -16px; font-size: 10.5px; color: rgba(26,111,209,.8); }
.mock-insp {
  width: 232px; flex: none;
  background: #fffffe; border-left: 1px solid #e6e0d4;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.mock-panel { border: 1px solid #eae7e0; border-radius: 9px; padding: 9px 10px; }
.mock-panel.selected { border-color: #b9d4f3; background: #f7faff; }
.mock-panel h5 { margin: 0 0 6px; font-size: 11.5px; color: var(--navy-800); display: flex; gap: 6px; align-items: baseline; }
.mock-panel h5 small { color: #8b9099; font-weight: 500; }
.mock-row { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 0; border-bottom: 1px solid #f0ede6; color: #4c5361; }
.mock-row:last-child { border-bottom: none; }
.mock-row b { color: var(--navy-800); font-weight: 600; }
.mock-status { display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: #fffffe; border-top: 1px solid #e6e0d4; font-size: 11px; color: #3a424e; }
.mock-hint { color: #8b9099; }
.mock-score { padding: 2px 9px; border-radius: 999px; background: #e9f3ec; border: 1px solid #cfe5d5; color: #2f6b41; font-weight: 600; }

/* ---------- pillars ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .99rem; }
.card-num {
  font-size: .74rem; font-weight: 800; letter-spacing: .16em;
  color: var(--sun-500); text-transform: uppercase; margin-bottom: 14px;
}
.grid-3 .card:nth-child(3n+1) { border-top: 4px solid var(--blue-400); }
.grid-3 .card:nth-child(3n+2) { border-top: 4px solid var(--sea-500); }
.grid-3 .card:nth-child(3n+3) { border-top: 4px solid var(--sun-500); }
.sky .card { background: #fff; }

.icon-badge {
  width: 50px; height: 50px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sky);
  border: 1px solid var(--blue-200);
  margin-bottom: 18px;
}

/* ---------- feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 62px;
  align-items: center;
  padding: 46px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-visual { order: -1; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); letter-spacing: -0.02em; }
.feature p { color: var(--ink-2); }
.feature-visual { display: flex; justify-content: center; }
.feature-visual svg { width: 100%; max-width: 420px; height: auto; }

/* ---------- checklist ---------- */
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; color: var(--ink-2); }
.checks svg { flex: none; margin-top: 4px; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.chip {
  padding: 9px 19px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: .95rem; font-weight: 550; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.chip { background: #fff; }

/* ---------- pull quote / statement band ---------- */
.statement { text-align: center; }
.statement p {
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  line-height: 1.28;
  font-weight: 650;
  letter-spacing: -0.022em;
  color: var(--navy-800);
  max-width: 820px; margin: 0 auto;
}
.statement .sig {
  margin-top: 22px; font-size: .8rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sea-500);
}

/* ---------- diagram ---------- */
.diagram { max-width: 880px; margin: 0 auto; }
.diagram svg { width: 100%; height: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq details[open] { background: transparent; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 44px 21px 0;
  position: relative;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -7px;
  border-right: 2px solid var(--sea-500);
  border-bottom: 2px solid var(--sea-500);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 30px 24px 0; color: var(--ink-2); }


/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; max-width: 760px; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 20px; align-items: start;
}
.step-n {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-500)); color: #fff;
  font-family: var(--font-display);
  font-weight: 750; font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(43,134,232,.25);
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 1rem; }

/* ---------- specs table ---------- */
.specs { width: 100%; border-collapse: collapse; margin-top: 8px; }
.specs th, .specs td {
  text-align: left; padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem; vertical-align: top;
}
.specs th { width: 210px; font-weight: 650; color: var(--navy-800); }
.specs td { color: var(--ink-2); }

/* ---------- callout ---------- */
.callout {
  background: var(--sun-100);
  border: 1px solid #f5dfb0;
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 30px 0;
  color: var(--ink-2);
}
.callout strong { color: var(--navy-800); }

/* ---------- final CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.cta-band .lede { max-width: 620px; margin: 0 auto 30px; }
.cta-band .cta-row { justify-content: center; }
.statement .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--sand-2);
  color: var(--ink-2);
  padding: 62px 0 34px;
  font-size: .94rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { width: 202px; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; color: var(--ink-2); font-size: .93rem; }
.site-footer h4 {
  font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy-800); margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--blue-500); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: .86rem; color: var(--muted);
}
.footer-motto { font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .74rem; color: var(--sea-500); }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: 78px 0 62px; text-align: center; }
.page-hero .lede { max-width: 700px; margin-left: auto; margin-right: auto; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-visual { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 66px 0; }
  .hero { padding-top: 74px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 20px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line-2); color: var(--red-600); }
  .site-nav .btn { margin-top: 14px; border-bottom: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .mock-insp, .mock-hint, .mock-toolbar.edit { display: none; }
  .mock-stage { padding-top: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .specs th { width: auto; display: block; padding-bottom: 2px; border: none; }
  .specs td { display: block; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ==========================================================================
   Pricing
   ========================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.price.featured {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #fff 0%, var(--sky) 100%);
}
.price-flag {
  position: absolute; top: -13px; left: 30px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--sun-500); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.price-name {
  font-size: .76rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.price-amount {
  font-size: 2.9rem; font-weight: 750; letter-spacing: -0.035em;
  color: var(--navy-800); line-height: 1; margin-bottom: 6px;
}
.price-amount small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-terms { font-size: .95rem; color: var(--ink-2); margin-bottom: 18px; }
.price .checks { padding-top: 14px; }
.price .checks li { font-size: .95rem; }

.price-note {
  margin-top: 30px; padding: 22px 26px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 4px solid var(--sea-500);
  border-radius: 4px var(--r) var(--r) 4px;
  color: var(--ink-2); font-size: .98rem;
}
.price-note strong { color: var(--navy-800); }

/* ==========================================================================
   Registration form
   ========================================================================== */
.form-shell {
  max-width: 760px; margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 40px 34px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* A two-column row must line its inputs up even when one label wraps to a
   second line and the other doesn't. Making the field a column and pushing
   the control to the bottom aligns them on the input, not the label. */
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field > label { flex: none; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select { margin-top: auto; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: .9rem; font-weight: 650; color: var(--navy-800);
  letter-spacing: -0.005em;
}
.field .hint { font-weight: 400; color: var(--muted); }
/* Every control except the checkboxes. Listing types individually meant a
   type="tel" or type="url" field silently fell through unstyled — which is
   exactly what happened to the buy form's phone field. */
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235d6472' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(43,134,232,.14);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--red-600); }

.consent {
  display: grid; grid-template-columns: 22px 1fr; gap: 13px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
  font-size: .95rem; color: var(--ink-2); line-height: 1.55;
}
.consent input[type="checkbox"] {
  width: 20px; height: 20px; margin: 2px 0 0;
  accent-color: var(--blue-500);
  cursor: pointer;
}
.consent label { cursor: pointer; }
.consent a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-actions .btn { padding: 15px 32px; }
.form-foot {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: .86rem; color: var(--muted); line-height: 1.6;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin: 0 0 26px;
  padding: 15px 18px;
  border-radius: 14px;
  background: #fdf1ee;
  border: 1px solid #f0cabe;
  color: #8f2f1a;
  font-size: .95rem;
}
.form-error ul { margin: 8px 0 0; padding-left: 20px; }

/* ==========================================================================
   System specification table
   ========================================================================== */
.spec-block { max-width: 880px; margin: 0 auto; }
.spec-group { margin-bottom: 44px; }
.spec-group > h3 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy-800);
  margin-bottom: 0;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left; padding: 16px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: 1rem;
}
.spec-table th { width: 240px; font-weight: 650; color: var(--navy-800); }
.spec-table td { color: var(--ink-2); }
.spec-table td b { color: var(--navy-800); font-weight: 650; }
.yes, .no {
  display: inline-block; font-size: .78rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.yes { background: #e9f3ec; color: #2f6b41; }
.no  { background: #fbeceb; color: #a53324; }

/* ==========================================================================
   Legal documents
   ========================================================================== */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 {
  font-size: 1.28rem;
  letter-spacing: .01em;
  margin: 52px 0 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-800);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-size: 1.04rem; margin: 30px 0 10px; color: var(--navy-700);
}
.legal p { font-size: 1rem; line-height: 1.72; color: var(--ink-2); margin-bottom: 1em; }
.legal p strong { color: var(--navy-800); }
.legal ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.legal .legal-alpha li, .legal .legal-list li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 1rem; line-height: 1.7; color: var(--ink-2);
}
.legal .legal-list li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sea-500);
}
.legal-meta {
  display: inline-block;
  margin-bottom: 34px; padding: 7px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--muted);
}
.legal-toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  margin-bottom: 46px;
}
.legal-toc h4 {
  margin: 0 0 14px; font-size: .74rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sea-500);
}
.legal-toc ol {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 34px;
  font-size: .93rem; line-height: 1.9;
}
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--navy-700); }

/* ==========================================================================
   Thank-you / confirmation
   ========================================================================== */
.confirm { max-width: 660px; margin: 0 auto; text-align: center; }
.confirm-mark {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--sea-500), #2f9e93);
  box-shadow: 0 10px 24px rgba(63,181,168,.3);
}
.download-card {
  max-width: 620px; margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.download-card .btn { margin-top: 8px; }

@media (max-width: 960px) {
  .price-grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
}
@media (max-width: 760px) {
  .form-shell { padding: 28px 22px 24px; border-radius: var(--r); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .spec-table th { width: auto; display: block; padding-bottom: 2px; border: none; }
  .spec-table td { display: block; padding-top: 0; }
  .price-amount { font-size: 2.5rem; }
}


/* ==========================================================================
   Ownership pricing — trial / buy-once / optional upgrades
   ========================================================================== */
.price-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.price-amount .per { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-sub {
  font-size: .78rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--sea-500); margin: 0 0 16px;
}
.price-optional { border-style: dashed; }
.price-keeps {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: .95rem; font-weight: 600; color: var(--navy-800);
}

/* ---------- comparison table ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; min-width: 560px;
  border-collapse: collapse;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-size: .98rem;
  vertical-align: middle;
}
.compare thead th {
  background: var(--navy-700);
  color: #fff;
  font-size: .8rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  border-bottom: none;
}
.compare thead th:first-child { background: var(--navy-900); }
.compare tbody th {
  font-weight: 600; color: var(--navy-800);
  width: 44%;
}
.compare td { text-align: center; color: var(--ink-2); width: 28%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:nth-child(even) { background: rgba(26,79,143,.022); }
.compare .tick { color: #2f6b41; font-weight: 800; font-size: 1.1rem; }
.compare .dash { color: #b9b5ab; font-weight: 700; }
.compare .em { font-weight: 650; color: var(--navy-800); }
.compare-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* ---------- big closing statement ---------- */
.keepline {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 650; letter-spacing: -0.02em;
  color: var(--navy-800); line-height: 1.35;
}

@media (max-width: 960px) {
  .price-grid.two { grid-template-columns: 1fr; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .cta-row, .nav-toggle, .form-shell { display: none !important; }
  .legal-toc { display: none !important; }
  .sky { background: #fff !important; }
}
