/* Bough site stylesheet */

/* ----------------------------------------------------------------- tokens */
:root {
  /* paper palette — lab v9 */
  --paper: #faf4e7;
  --surface: #fdf9ef;
  --surface-alt: #f2e8d3;
  --surface-deep: #e0d3b4;
  --ink: #433a2c;
  --ink-caption: #564b3a;
  --muted: #6a604f;        /* AA-safe on paper + surface */
  --sage: #7c8b6f;
  --sage-deep: #5d7253;
  --sage-press: #4c5e44;   /* AA-safe text link on paper */
  --amber: #c98a4b;
  --amber-press: #bd7f42;
  --cta-ink: #30271e;      /* AA-safe text on amber (white + ink both fail) */
  --terracotta: #b0563a;
  --gold: #b9924f;
  --honey: #ecdcb4;
  --line: #9a8a70;
  --hairline: rgba(125, 114, 96, 0.20);
  --hairline-soft: rgba(125, 114, 96, 0.13);
  --shadow-card: 0 3px 14px rgba(67, 58, 44, 0.08);
  --shadow-raised: 0 10px 30px rgba(67, 58, 44, 0.13);
  --shadow-amber: 0 8px 22px rgba(201, 138, 75, 0.28);

  --disc-rim: var(--surface);
  --on-accent: #fcf8ee;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --readw: 44rem;
  --gutter: 24px;          /* 12-col gutter + min outer gutter (desktop) */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  color-scheme: only light;
}

/* --------------------------------------------------------------- base */
* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  /* paper, with a near-imperceptible fine grain baked faint into the tile */
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;           /* comfortable for a broad age range */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--sage-press); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta); }

:focus-visible {
  outline: 2.5px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0; }

/* ------------------------------------------------- container + 12-col grid */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* narrower sections: capped width, left-aligned inside the 1120 zone */
.narrow-920 { max-width: 920px; }
.narrow-800 { max-width: 800px; }

.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 0;
  align-items: start;          /* top-align columns; no dead center */
}
.s1  { grid-column: span 1; }
.s3  { grid-column: span 3; }
.s4  { grid-column: span 4; }
.s5  { grid-column: span 5; }
.s6  { grid-column: span 6; }
.s7  { grid-column: span 7; }
.s8  { grid-column: span 8; }
.s11 { grid-column: span 11; }
.s12 { grid-column: span 12; }

@media (max-width: 1023px) {
  .wrap { padding-inline: 20px; }
  .g12 { grid-template-columns: 1fr; row-gap: 24px; }
  .g12 > * { grid-column: auto; }
}

.section { padding-block: 0; }

/* ------------------------------------------------- type levels (visual) */
/* weight 600 comes from h1,h2,h3. Levels are the three visual sizes. */
.t-l1 { font-size: 42px; line-height: 1.10; }
.t-l2 { font-size: 32px; line-height: 1.18; }
.t-l3 { font-size: 28px; line-height: 1.20; }
@media (min-width: 1024px) {
  .t-l1 { font-size: 56px; line-height: 1.08; }
  .t-l2 { font-size: 44px; line-height: 1.14; }
  .t-l3 { font-size: 34px; line-height: 1.18; }
}
@media (min-width: 1200px) {
  .t-l1 { font-size: 64px; line-height: 1.08; }
}

/* eyebrows: 13px, 12px below */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 12px;
}
.kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0 0 12px;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-caption);
}
.muted { color: var(--muted); }

/* feature / step / thread / trust titles — Karla 18px */
.f-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: var(--cta-ink);
  box-shadow: var(--shadow-amber);
}
.btn-primary:hover { background: var(--amber-press); color: var(--cta-ink); }

.btn-quiet {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--hairline);
}
.btn-quiet:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

/* quiet inline text link (hero secondary action) */
.text-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--sage-press);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--terracotta); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline-soft);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  min-height: 48px;
  padding-block: 12px;
}
.brand {
  grid-column: span 4;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { display: block; }
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-header .wordmark { font-size: 28px; }
.nav {
  grid-column: span 8;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}
.nav-links a:hover { color: var(--ink); }
/* header CTA: compact, no glow */
.site-header .btn-primary { box-shadow: none; }
.site-header .btn {
  min-height: 48px;
  padding: 0 1.2rem;
  font-size: 16px;
}
@media (max-width: 1023px) {
  .site-header .wrap { min-height: 40px; }
  .site-header .wordmark { font-size: 26px; }
  .site-header .btn { min-height: 40px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* --------------------------------------------------------------- hero */
.hero { padding: 40px 0 24px; }
.hero-inner { align-items: start; }
.hero-copy { grid-column: span 6; }
.hero h1 { max-width: 16ch; }
.hero .lead {
  margin-top: 24px;
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.6;
}
.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.hero-note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-inner { align-items: center; }
.hero-visual { grid-column: span 6; display: flex; justify-content: center; }
/* the one prominent framed phone: a tighter bezel + a crop so a real memory
   shows sooner instead of a mostly-empty screen */
.hero .phone { --phone-w: 296px; padding: 6px; border-radius: 42px; }
.hero .phone img { aspect-ratio: 296 / 470; object-fit: cover; object-position: top center; border-radius: 36px; }

@media (min-width: 1024px) {
  .hero .lead { font-size: 19px; line-height: 1.5; }
}
@media (max-width: 1023px) {
  .hero { padding: 28px 0 16px; }
  .hero-inner { row-gap: 32px; align-items: start; }
}

/* --------------------------------------- phone frame (real product screens) */
/* honest to the app UI: a warm bezel + soft shadow, screenshot clipped inside */
.phone {
  --phone-w: 300px;
  width: 100%;
  max-width: var(--phone-w);
  margin-inline: auto;
  background: #2b2419;
  border-radius: 46px;
  padding: 7px;
  box-shadow: 0 20px 44px rgba(67, 58, 44, 0.20), 0 4px 12px rgba(67, 58, 44, 0.12);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 40px; }
.phone.small { --phone-w: 208px; }

/* ----------------------------------- screenshot crop (unframed preview card) */
/* used everywhere except the one hero phone: reads as a memory/preview crop,
   not a full device. */
.shot {
  --shot-w: 300px;
  width: 100%;
  max-width: var(--shot-w);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--surface);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot.shot-sm { --shot-w: 150px; }

/* --------------------------------------- the group-chat problem + privacy */
.problem { padding: 36px 0; }
.problem h2 { max-width: 20ch; }
.problem .lead { margin-top: 20px; max-width: 56ch; }
@media (max-width: 1023px) {
  .problem { padding: 24px 0; }
}

/* --------------------------------------- feature demos (copy + a visual) */
.split { align-items: center; }
.split-copy { grid-column: span 5; }
.split-copy h2 { max-width: 18ch; }
.split-copy p { color: var(--ink-caption); margin-top: 20px; max-width: 42ch; }
.feed-nod { color: var(--muted); font-size: 15px; line-height: 1.55; }
.split-visual { grid-column: span 7; overflow: visible; }
.split-visual svg { width: 100%; max-width: 440px; height: auto; display: block; margin-inline: auto; }

.feature { padding: 36px 0; }
.feature .split-copy h2 { max-width: 22ch; }
.feature .split-visual { display: flex; align-items: center; justify-content: center; }
.feature-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* embedded product animations sit in the visual column. Height is fixed to the
   animation's own content height (measured) so the content fits with no second
   scrolling surface inside the iframe; the animation centers within it. */
.anim-frame {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  height: 560px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

@media (min-width: 1024px) {
  /* alternate which side the visual sits on */
  .feature.reverse .split-copy { order: 2; }
  .feature.reverse .split-visual { order: 1; }
}
@media (max-width: 1023px) {
  .feature { padding: 24px 0; }
  .split-visual svg { max-width: 400px; }
  .anim-frame { max-width: 400px; }
}

/* --------------------------------------- inline format list (family feed) */
.type-row {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-caption);
}
.type-chip svg { width: 18px; height: 18px; color: var(--sage-deep); flex: none; }

/* --------------------------------------- person page: tree + search sub-beats */
.subbeats {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline-soft);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 28px;
}
.subbeat-item {
  display: flex;
  align-items: center;
  gap: 18px;
}
.subbeat-item h3 { font-size: 20px; line-height: 1.25; }
.subbeat-item p { color: var(--ink-caption); margin-top: 8px; font-size: 15px; }
@media (max-width: 1023px) {
  .subbeats { margin-top: 28px; padding-top: 24px; grid-template-columns: 1fr; }
}

/* --------------------------------------- make something together (keepsakes) */
.keepsakes { padding: 40px 0; }
.keepsakes-head { margin-bottom: 28px; }
.keepsakes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}
.keepsake {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.keepsake-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.keepsake .badge { margin-bottom: 12px; }
.keepsake h3 { max-width: 22ch; }
.keepsake p { color: var(--ink-caption); margin-top: 12px; max-width: 44ch; }
.keepsake .shot { --shot-w: 260px; }
@media (max-width: 1023px) {
  .keepsakes { padding: 24px 0; }
  .keepsakes-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --------------------------------------- plan labels */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge-premium {
  background: var(--honey);
  color: var(--cta-ink);
  border-color: rgba(185, 146, 79, 0.45);
}
.badge-free {
  background: var(--surface);
  color: var(--sage-press);
  border-color: var(--hairline);
}

/* --------------------------------------------------------------- the ending field */
.ending { background: var(--surface-alt); }

/* --------------------------------------- 8. pricing */
.pricing { padding: 56px 0 24px; }
.pricing h2 { max-width: 18ch; }
.pricing .price-intro .lead { margin-top: 12px; max-width: 52ch; }

.price-body { margin-top: 32px; align-items: center; }
.plans {
  grid-column: span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
}
.plan-premium { background: var(--surface); border-color: rgba(185, 146, 79, 0.45); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.plan-name { font-family: var(--sans); font-weight: 600; font-size: 17px; }
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink-caption);
}
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--sage-deep); margin-top: 2px; }
.price-visual { grid-column: span 4; display: flex; justify-content: center; }
.price-cta { margin-top: 28px; }
@media (max-width: 1023px) {
  .pricing { padding: 32px 0 16px; }
  .price-body { row-gap: 28px; }
  .plans { grid-template-columns: 1fr; }
}

/* --------------------------------------- 5.10 closing */
.closing { padding: 16px 0 32px; }
.closing-inner { align-items: start; }
.closing-text { grid-column: span 8; }
.closing h2 { max-width: 28ch; }
.closing-support { color: var(--ink-caption); margin-top: 12px; max-width: 52ch; font-size: 17px; }
.closing-signin { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.closing-cta { grid-column: span 4; }
.closing-cta .btn { margin-top: 4px; }
@media (max-width: 1023px) {
  .closing { padding: 12px 0 20px; }
  .closing-inner { row-gap: 20px; }
  .closing-cta .btn { margin-top: 0; }
}

/* --------------------------------------------------------------- footer */
.site-footer {
  background: var(--surface-alt);
  padding: 16px 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.footer-grid { align-items: start; }
.footer-brand { grid-column: span 6; }
.footer-brand .wordmark { font-size: 26px; }
.footer-brand p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 12px; max-width: 34ch; }
.footer-col { grid-column: span 3; }
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  color: var(--ink-caption);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--terracotta); }
.footer-legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);   /* organizes the legal line */
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
@media (max-width: 1023px) {
  .site-footer { padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* --------------------------------------- counsel-review block (legal docs) */
.counsel-note {
  margin-top: 3rem;
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--sage-deep);
  border-radius: var(--radius-sm);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.counsel-note h2 { border-top: none; padding-top: 0; margin-top: 0; font-size: 1.25rem; }
.counsel-note h3 { font-size: 1rem; margin-top: 1.25rem; }
.counsel-note p, .counsel-note li { font-size: 0.96rem; }

/* --------------------------------------------------------------- legal pages */
.doc-header {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}
.doc-header h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); }
.doc-meta { margin-top: 0.9rem; color: var(--muted); font-size: 0.98rem; }
.draft-banner {
  margin-top: 1.75rem;
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--ink-caption);
  font-size: 0.98rem;
}
.draft-banner strong { color: var(--terracotta); }

.doc {
  max-width: var(--readw);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.doc h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 2.75rem 0 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-soft);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc h3 { font-size: 1.2rem; margin: 1.75rem 0 0.4rem; }
.doc p, .doc li { color: var(--ink-caption); line-height: 1.72; }
.doc p { margin: 0.85rem 0; }
.doc ul { margin: 0.85rem 0; padding-left: 1.25rem; }
.doc li { margin: 0.5rem 0; }
.doc strong { color: var(--ink); }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.96rem;
}
.doc-table-wrap { overflow-x: auto; }
.doc th, .doc td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink-caption);
}
.doc th { color: var(--ink); font-family: var(--sans); font-weight: 600; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--sage-deep);
}
.back-link:hover { color: var(--terracotta); }

/* support page */
.support-grid {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.support-card svg { width: 40px; height: 40px; color: var(--sage-deep); margin-bottom: 1rem; }
.support-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.support-card p { color: var(--muted); font-size: 1rem; }
.support-card a { font-weight: 600; }
@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage-deep);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 50;
}
.skip-link:focus { left: 0; color: var(--on-accent); }
