/* HappyBrand marketing site v2 (professional-services offer).
   Tuned-up brand: ink and paper carry the page; seal yellow is reserved for
   the ownership seal and the primary action. styles.css stays for form/404. */

:root {
  --ink: #15181d;
  --ink-soft: #2a2f37;
  --paper: #fafaf7;
  --stone: #ecece6;
  --rule: #d6d7cf;
  --graphite: #575c64;
  --seal: #ffd60a;
  --seal-deep: #e0b800;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.3rem);
  --text-h3: 1.25rem;
  --text-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem);
  --text-h1: clamp(2.35rem, 1.6rem + 3.2vw, 4.1rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --space-7: 4rem;
  --space-8: 6.5rem;

  --wrap: 72rem;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--space-4); top: -4rem;
  background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-4);
  z-index: 10; text-decoration: none;
}
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.wrap--narrow { max-width: 46rem; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: var(--text-h1); font-weight: 600; max-width: 15ch; }
h2 { font-size: var(--text-h2); max-width: 24ch; }
h3 { font-size: var(--text-h3); }

.lead { font-size: var(--text-lead); color: var(--ink-soft); max-width: 36rem; }
.section-lead { color: var(--graphite); max-width: 40rem; margin-top: var(--space-4); }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-5);
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius);
  transition: background-color .15s ease, color .15s ease;
}
.btn--seal { background: var(--seal); color: var(--ink); }
.btn--seal:hover { background: var(--seal-deep); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--line-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--line-light:hover { background: var(--paper); color: var(--ink); }
.btn--block { width: 100%; }

/* ====== HEADER ====== */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 4.25rem; }
.mark { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.mark__icon { width: 30px; height: 30px; }
.mark__tld { color: var(--graphite); font-weight: 500; }
.nav { display: flex; gap: var(--space-5); margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; padding: var(--space-2) 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.top__phone { font-weight: 600; text-decoration: none; white-space: nowrap; padding: var(--space-2) 0; }

/* ====== HERO ====== */
.hero { padding: var(--space-7) 0 var(--space-8); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-7); align-items: center; }
.hero__copy .lead { margin-top: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__note { margin-top: var(--space-5); color: var(--graphite); font-size: var(--text-small); }

/* The certificate: the one bold element on the page */
.deed {
  background: #fff;
  padding: 10px;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(21, 24, 29, .35);
  transform: rotate(1.2deg);
}
.deed__frame {
  border: 1px solid var(--ink);
  outline: 4px double var(--ink);
  outline-offset: -9px;
  padding: var(--space-6) var(--space-6) var(--space-5);
  font-family: var(--font-display);
}
.deed__title { font-size: 1.6rem; font-style: italic; text-align: center; }
.deed__body { margin-top: var(--space-4); text-align: center; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }
.deed__owner {
  margin: var(--space-4) auto 0; text-align: center;
  border-bottom: 1px solid var(--ink); max-width: 20rem; padding-bottom: var(--space-1);
  min-height: 2.6rem;
}
.deed__name { font-size: 1.65rem; font-weight: 600; display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.deed__name.is-out { opacity: 0; transform: translateY(6px); }
.deed__terms { margin-top: var(--space-5); display: grid; gap: var(--space-2); font-family: var(--font-body); font-size: var(--text-small); }
.deed__terms div { display: flex; justify-content: space-between; gap: var(--space-4); border-bottom: 1px dotted var(--rule); padding-bottom: var(--space-1); }
.deed__terms dt { color: var(--graphite); }
.deed__terms dd { font-weight: 600; text-align: right; }
.deed__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); }
.deed__sign {
  font-style: italic; font-size: 0.95rem; color: var(--ink-soft);
  border-top: 1px solid var(--ink); padding-top: var(--space-1); min-width: 12rem;
}
.seal { width: 104px; height: 104px; flex: none; color: var(--ink); transform: rotate(-8deg); }
.seal__disc { fill: var(--seal); stroke: var(--seal-deep); stroke-width: 2; }
.seal__inner { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.seal__text { font: 600 9.4px var(--font-body); letter-spacing: .14em; fill: var(--ink); }

/* ====== BANDS ====== */
.band { padding: var(--space-8) 0; border-top: 1px solid var(--rule); }
.band--paper { background: var(--stone); }

/* What's included, as a statement of line items */
.ledger { list-style: none; margin-top: var(--space-6); border-top: 2px solid var(--ink); }
.ledger li {
  display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: var(--space-5);
  padding: var(--space-4) 0; border-bottom: 1px solid var(--rule);
}
.ledger__item { font-weight: 600; }
.ledger__detail { color: var(--graphite); }

/* Security note */
.note { background: var(--ink); color: var(--paper); padding: var(--space-7) 0; }
.note__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-6); align-items: start; }
.note p { color: #d9dbd4; max-width: 38rem; }
.note p + p { margin-top: var(--space-4); }

/* Firms */
.firms { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-7); }
.firms div { padding: var(--space-5) 0; border-top: 1px solid var(--rule); }
.firms dt { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 600; }
.firms dd { margin-top: var(--space-2); color: var(--graphite); max-width: 32rem; }

/* ====== PRICING ====== */
.plans { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.plan {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: flex; flex-direction: column;
}
.plan--pick { border: 2px solid var(--ink); position: relative; background: #fff; }
.plan__flag {
  position: absolute; top: 0; left: var(--space-5); transform: translateY(-50%);
  background: var(--seal); border: 1px solid var(--ink); padding: 2px var(--space-3);
  font-size: var(--text-small); font-weight: 600;
}
.plan h3 { font-size: 1.5rem; }
.plan__for { margin-top: var(--space-2); color: var(--graphite); font-size: 0.97rem; min-height: 4.8em; }
.plan__price { margin-top: var(--space-5); display: flex; align-items: baseline; gap: var(--space-2); }
.plan__amt { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.plan__per { color: var(--graphite); }
.plan__setup { margin-top: var(--space-2); font-size: var(--text-small); color: var(--ink-soft); }
.plan__list { list-style: none; margin: var(--space-5) 0 var(--space-6); flex: 1; }
.plan__list li { padding: var(--space-2) 0 var(--space-2) 1.5rem; border-top: 1px solid var(--rule); position: relative; font-size: 0.97rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 0.95em;
  width: 0.6rem; height: 0.32rem; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.plans__foot { margin-top: var(--space-5); color: var(--graphite); font-size: var(--text-small); max-width: 48rem; }

/* ====== STEPS ====== */
.steps { list-style: none; counter-reset: step; margin-top: var(--space-6); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--space-4); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; margin-bottom: var(--space-3); }
.steps p { margin-top: var(--space-2); color: var(--graphite); font-size: 0.97rem; }

/* ====== QUESTIONS ====== */
#questions h2 { margin-bottom: var(--space-5); }
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; padding: var(--space-4) 2rem var(--space-4) 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { padding-bottom: var(--space-5); color: var(--ink-soft); max-width: 40rem; }

/* ====== REVIEW CTA ====== */
.review { background: var(--ink); color: var(--paper); padding: var(--space-8) 0; }
.review__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-7); align-items: center; }
.review p { margin-top: var(--space-4); color: #d9dbd4; max-width: 36rem; }
.review__actions { display: grid; gap: var(--space-3); }
.review__actions .btn--seal { border-color: var(--seal); }
.review__fine { font-size: var(--text-small); text-align: center; }

/* ====== FOOTER ====== */
.foot { padding: var(--space-6) 0; font-size: var(--text-small); color: var(--graphite); }
.foot__inner { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  .hero__grid, .note__grid, .review__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .deed { max-width: 30rem; }
  .plans { grid-template-columns: 1fr; max-width: 30rem; }
  .plan__for { min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .top__phone { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-4); }
  .hero { padding: var(--space-6) 0 var(--space-7); }
  .band { padding: var(--space-7) 0; }
  .ledger li { grid-template-columns: 1fr; gap: var(--space-1); }
  .firms { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .deed { transform: none; }
  .deed__frame { padding: var(--space-5) var(--space-4) var(--space-4); }
  .deed__foot { flex-direction: column-reverse; align-items: center; }
  .seal { width: 88px; height: 88px; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .deed__name, .btn { transition: none; }
}
