/* SplitSpace — shared styles.
   Aesthetic: warm paper, editorial serif, one hard split down the middle.
   The whole brand is "one house, two shares", so the split is the motif: the
   headline is divided, the cards are divided, the rule under the logo is divided. */

:root {
  --paper: #f7f2e8;
  --paper-deep: #efe7d8;
  --ink: #16130f;
  --ink-soft: #4b433a;
  --ink-faint: #8b8073;
  --blue: #2f5fe0;
  --mint: #35b98a;
  --coral: #e2603c;
  --line: rgba(22, 19, 15, 0.14);
  --radius: 14px;
  --measure: 68ch;
  --shadow: 0 1px 0 rgba(22, 19, 15, 0.06), 0 12px 32px -18px rgba(22, 19, 15, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14120f;
    --paper-deep: #1c1917;
    --ink: #f4efe4;
    --ink-soft: #c3b9a9;
    --ink-faint: #8b8073;
    --blue: #6f96ff;
    --mint: #52d6a3;
    --coral: #ff8663;
    --line: rgba(244, 239, 228, 0.16);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Faint paper grain, drawn rather than fetched — no image request, and it
     survives on a slow connection where a texture file would not. */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(47, 95, 224, 0.06), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(53, 185, 138, 0.07), transparent 38%);
  background-attachment: fixed;
}

h1, h2, h3, .display {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

a { color: inherit; }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow { width: min(var(--measure), 100% - 2.5rem); }

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg { display: block; }

.masthead nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.94rem;
}

.masthead nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--mint); }

@media (max-width: 620px) {
  .masthead nav { display: none; }
}

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

.hero {
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(2.9rem, 7.5vw, 5.1rem);
  margin-bottom: 0.5rem;
}

/* The split itself: two halves of the same word, coloured like the mark. */
.split-word { white-space: nowrap; }
.split-word .a { color: var(--blue); }
.split-word .b { color: var(--mint); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn.ghost { background: transparent; color: var(--ink); }

.note { font-size: 0.86rem; color: var(--ink-faint); margin-top: 0.9rem; }

/* ---------- phone mock ---------- */

.mock {
  justify-self: center;
  width: min(300px, 80%);
  aspect-ratio: 9 / 19;
  border-radius: 38px;
  border: 1.5px solid var(--line);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

.mock::before {
  content: "";
  position: absolute;
  top: 0.6rem; left: 50%; transform: translateX(-50%);
  width: 34%; height: 0.42rem; border-radius: 999px;
  background: var(--line);
}

.mock-title {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  margin: 1.1rem 0 0.2rem;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

.row .who { color: var(--ink-faint); font-size: 0.74rem; }
.owed { color: var(--mint); font-weight: 700; }
.owes { color: var(--coral); font-weight: 700; }

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

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 18ch; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  background: color-mix(in oklab, var(--paper-deep) 60%, transparent);
  position: relative;
}

/* The split motif again: a two-tone rule across the top of every card. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(to right, var(--blue) 0 50%, var(--mint) 50% 100%);
}

.card h3 { font-size: 1.32rem; margin-top: 0.5rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

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

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
  align-items: start;
}

.plan {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  background: var(--paper);
}

.plan.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.plan .amount {
  font-family: "Fraunces", serif;
  font-size: 2.6rem;
  line-height: 1;
  margin: 0.4rem 0 0.15rem;
}

.plan .per { color: var(--ink-faint); font-size: 0.88rem; }

.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }

.plan li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.72rem; height: 0.72rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--mint));
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

/* ---------- faq ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.04rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); margin: 0.7rem 0 0; max-width: var(--measure); }

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

.legal { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--ink-soft); max-width: var(--measure); }
.legal ul { padding-left: 1.1rem; }
.legal li { margin-bottom: 0.4rem; }
.updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 2rem; }

.callout {
  border-left: 3px solid var(--coral);
  background: color-mix(in oklab, var(--coral) 8%, transparent);
  padding: 0.9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  max-width: var(--measure);
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 3rem;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: center;
  justify-content: space-between;
}

footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
