/* divy.law — hub stylesheet. No build step, no external fonts. */

:root {
  --royal: #2f54e0;
  --royal-deep: #2343c0;
  --royal-wash: #eef1fd;
  --ink: #171c30;
  --ink-soft: #4a5068;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e6e4dd;
  --footer-ink: #12162a;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark img { height: 26px; display: block; }
nav.site a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px;
  margin-left: 26px;
}
nav.site a:hover { color: var(--royal); }
nav.site a.cta {
  color: var(--royal); font-weight: 600;
}

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--royal); font-weight: 600; margin-bottom: 18px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 17ch;
}
.hero p.lede {
  margin-top: 22px; font-size: 1.16rem; color: var(--ink-soft);
  max-width: 58ch;
}
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: 15.5px; padding: 13px 24px; border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn.primary { background: var(--royal); color: #fff; }
.btn.primary:hover { background: var(--royal-deep); }
.btn.quiet {
  background: transparent; color: var(--royal);
  border: 1px solid var(--royal);
}
.btn.quiet:hover { background: var(--royal-wash); }

/* Sections */
section { padding: 64px 0; }
section.tinted { background: #f3f2ec; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.section-lede { color: var(--ink-soft); max-width: 62ch; margin-bottom: 36px; }

/* Product cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 26px; display: flex; flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--royal); box-shadow: 0 4px 22px rgba(47, 84, 224, 0.08); }
.card .kicker {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 8px;
}
.card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; flex-grow: 1; }
.card .tag {
  display: inline-block; margin: 0 0 14px; align-self: flex-start;
  background: var(--royal-wash); color: var(--royal-deep);
  font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}
.card a.go {
  margin-top: 20px; color: var(--royal); font-weight: 600; text-decoration: none;
  font-size: 15.5px;
}
.card a.go:hover { text-decoration: underline; }

/* Pro band */
.pro-band { text-align: left; }
.pro-band .price {
  font-family: var(--serif); font-size: 1.35rem; margin: 14px 0 26px;
}
.pro-band .price small { font-family: var(--sans); color: var(--ink-soft); font-size: 0.95rem; }
.teaser { margin-top: 30px; color: var(--ink-soft); font-size: 15px; }

/* Privacy band */
.privacy p { color: var(--ink-soft); max-width: 62ch; }

/* Pro page */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.tier h4 {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px;
}
.tier.pro { border-color: var(--royal); }
.tier.pro h4 { color: var(--royal); }
.tier ul { list-style: none; }
.tier li {
  padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); font-size: 15.5px;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--royal-wash);
}
.tier li::after {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 6px; height: 3px; border-left: 2px solid var(--royal);
  border-bottom: 2px solid var(--royal); transform: rotate(-45deg);
}
.product-block { margin-top: 56px; }
.product-block .motto {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  margin: 6px 0 4px;
}
.note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

.price-card {
  background: var(--card); border: 1px solid var(--royal); border-radius: var(--radius);
  padding: 34px 34px 30px; margin-top: 34px; max-width: 460px;
}
.price-card .amount { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; }
.price-card .amount span { font-size: 1.05rem; font-family: var(--sans); font-weight: 400; color: var(--ink-soft); }
.price-card .alt { color: var(--ink-soft); margin: 6px 0 22px; font-size: 15px; }

/* Pricing plans */
.plans { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 30px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--royal); }
.plan h4 {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 12px;
}
.plan.featured h4 { color: var(--royal); }
.plan .amount { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.plan .amount span { font-size: 0.95rem; font-family: var(--sans); font-weight: 400; color: var(--ink-soft); }
.plan .detail { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 18px; flex-grow: 1; }
.plan .btn { text-align: center; }

/* CTA row (benefits page) */
.cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Post-checkout banner (welcome page) */
.banner {
  display: none; background: var(--royal-wash); border: 1px solid var(--royal);
  color: var(--royal-deep); border-radius: 10px; padding: 14px 18px;
  font-size: 15px; margin-bottom: 30px;
}
.banner.show { display: block; }

/* Tool pages (Moore/Marsden) */
.tool-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tool-form fieldset { border: 0; margin: 0 0 6px; }
.tool-form legend { font-weight: 600; font-size: 15px; margin-bottom: 12px; color: var(--ink); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.field input[type="text"] {
  font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink);
}
.field input[type="text"]:focus { outline: 2px solid var(--royal); outline-offset: 0; border-color: var(--royal); }
.choice-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 10px; }
.choice-row label { font-size: 14.5px; color: var(--ink); display: flex; gap: 7px; align-items: center; }
.math-panel { margin-top: 26px; }
.math-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.math-table th, .math-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.math-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.math-table tr.total td { font-weight: 700; background: var(--royal-wash); }
.math-table td .how { display: block; color: var(--ink-soft); font-size: 12.5px; }
.warnbox { background: #fdf6e7; border: 1px solid #e5c877; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #6a5416; margin-top: 14px; }
.limits { margin-top: 30px; color: var(--ink-soft); font-size: 14px; }
.limits ul { margin: 8px 0 0 18px; }
.limits li { margin: 5px 0; }
.errbox { background: #fdecec; border: 1px solid #e0a1a1; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #7c2323; margin-top: 14px; }

/* Footer */
footer.site {
  background: var(--footer-ink); color: #b9bdd1; padding: 56px 0 44px; margin-top: 40px;
}
footer.site img { height: 22px; margin-bottom: 22px; display: block; }
footer.site p { font-size: 13.5px; max-width: 74ch; line-height: 1.7; }
footer.site .powered { color: #fff; font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
footer.site nav { margin: 20px 0 26px; }
footer.site nav a { color: #dfe2ef; text-decoration: none; margin-right: 22px; font-size: 14.5px; }
footer.site nav a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid #2a3050; padding-top: 22px; margin-top: 8px; }

@media (max-width: 720px) {
  .cards, .tiers, .plans { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
  section { padding: 48px 0; }
  nav.site a { margin-left: 16px; font-size: 14px; }
}
