/* goldberry.ai. Brand: gold #C9A45C on ink blue #1E2745. Fraunces for display, Inter for text. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fraunces.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fraunces-italic.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/inter.woff2') format('woff2-variations');
}

:root {
  --ink: #1e2745;
  --brand: #1e2745;
  --gold: #c9a45c;
  --gold-deep: #8a6a2c;
  --gold-soft: #f6efe1;
  --bg: #ffffff;
  --surface: #f7f7f9;
  --text: #22283a;
  --text-2: #5b6070;
  --line: rgba(30, 39, 69, 0.12);
  --link: #1e2745;
  --btn-text: #17150f;
  --cta-bg: #1e2745;
  --cta-text: #ffffff;
  --cta-text-2: rgba(255, 255, 255, 0.78);
  --radius: 14px;
  --font: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2efe8;
    --gold-deep: #d8b878;
    --gold-soft: rgba(201, 164, 92, 0.12);
    --bg: #12172a;
    --surface: #1a2035;
    --text: #dfe2ea;
    --text-2: #a3a9b8;
    --line: rgba(255, 255, 255, 0.12);
    --link: #f2efe8;
    --cta-bg: #1e2745;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-deep);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

/* ---------- header and footer ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.bar,
.topics,
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.topics {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.topics::-webkit-scrollbar {
  display: none;
}

.topics a {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}

.topics a[aria-current='page'] {
  background: var(--ink);
  color: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--btn-text);
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  color: var(--btn-text);
  filter: brightness(1.05);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.site-footer {
  margin-top: 64px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  color: var(--text-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
}

.site-footer nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer nav {
  margin: 18px 0;
}

/* ---------- article ---------- */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.post,
.more,
.hero,
.featured,
.topic,
main > .cta {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.crumbs {
  display: flex;
  gap: 8px;
  margin: 28px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.crumbs a {
  color: var(--gold-deep);
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 7vw, 46px);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.dek {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
}

.byline {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}

.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: 28px;
  font-weight: 700;
  scroll-margin-top: 16px;
}

.prose h3 {
  margin: 1.6em 0 0.4em;
  font-size: 21px;
  font-weight: 650;
  scroll-margin-top: 16px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--gold-deep);
  font-weight: 700;
}

.prose strong {
  color: var(--ink);
}

.summary {
  margin: 28px 0;
  padding: 18px 22px 8px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--gold-soft);
}

.summary-title,
.toc-title {
  margin: 0 0 8px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.summary ul {
  padding-left: 1.2em;
}

.toc {
  margin: 0 0 32px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc li {
  margin: 4px 0;
}

.toc a {
  text-decoration: none;
}

.table-wrap {
  margin: 0 0 1.4em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}

tr:last-child td {
  border-bottom: 0;
}

.faq h3 {
  font-size: 19px;
}

/* ---------- app callout ---------- */

.cta {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px 16px;
  align-items: start;
  margin: 36px 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--cta-bg);
  color: var(--cta-text);
}

.cta img {
  border-radius: 11px;
}

.cta-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cta-text-2);
}

.cta-copy .cta-title {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--cta-text);
}

.cta .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (min-width: 640px) {
  .cta {
    grid-template-columns: 44px 1fr auto;
    align-items: center;
  }
  .cta .btn {
    grid-column: auto;
  }
}

.cta-end {
  padding: 28px;
}

/* ---------- share and pin ---------- */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.share span {
  color: var(--text-2);
  font-weight: 600;
}

.pin {
  max-width: 360px;
  margin: 40px auto 0;
  text-align: center;
}

.pin img {
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(20, 24, 40, 0.14);
}

.pin figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- lists of articles ---------- */

.hero {
  padding: 8px 0 4px;
}

.hero h1 {
  margin-top: 36px;
}

.hero p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
}

.featured h2,
.more h2,
.topic-head h2 {
  margin: 44px 0 16px;
  font-size: 24px;
}

.topic-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.topic-head a {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--gold-deep);
}

.cards {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.card a:hover {
  border-color: var(--gold);
  color: var(--text);
}

.card-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.card-meta {
  margin-top: auto;
  font-size: 13px;
  color: var(--text-2);
}

@media (min-width: 720px) {
  .cards-featured {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured,
  main > .cta {
    max-width: 1080px;
  }
}

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

@media (max-width: 480px) {
  table {
    font-size: 15px;
  }
  th,
  td {
    padding: 9px 10px;
  }
}

/* Front page and topic pages use the full width on desktop. */
.page-wide .hero,
.page-wide .topic {
  max-width: 1080px;
}

.page-wide .hero p {
  max-width: 720px;
}

@media (min-width: 720px) {
  .page-wide .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-wide .cards-featured {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- header nav and footer columns ---------- */

.bar {
  gap: 16px;
}

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
}

.main-nav a[aria-current='page'] {
  color: var(--gold-deep);
}

@media (max-width: 719px) {
  .main-nav a:not(.keep) {
    display: none;
  }
}

.footer-inner {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.footer-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-deep);
}

/* ---------- print: a guide becomes a clean checklist ---------- */

@media print {
  .site-header,
  .site-footer,
  .cta,
  .share,
  .pin,
  .more,
  .toc {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: none;
  }
}

/* ---------- type ---------- */

h1,
h2 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.015em;
}

.sr-only,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- waitlist form ---------- */

.waitlist {
  max-width: 480px;
}

.waitlist-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 14, 30, 0.18);
}

.waitlist input[type='email'] {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #1e2745;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.waitlist input[type='email']::placeholder {
  color: #8a8f9e;
}

.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.waitlist .btn {
  flex-shrink: 0;
  min-height: 48px;
}

.waitlist-light .waitlist-row {
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 6px 20px rgba(10, 14, 30, 0.06);
}

.waitlist-msg {
  min-height: 1.4em;
  margin: 10px 4px 0 !important;
  font-size: 15px;
  font-weight: 550;
}

.waitlist[data-state='done'] .waitlist-msg {
  color: var(--gold);
}

.waitlist[data-state='error'] .waitlist-msg {
  color: #f08a80;
}

.waitlist[data-state='busy'] .btn {
  opacity: 0.6;
}

@media (max-width: 359px) {
  .waitlist-row {
    flex-direction: column;
    padding: 6px;
    border-radius: 22px;
  }
  .waitlist input[type='email'] {
    min-height: 48px;
  }
}

/* ---------- home: header over the hero ---------- */

.is-home .site-header {
  border-bottom: 0;
  background: #141b33;
}

.is-home .brand,
.is-home .main-nav a {
  color: #fff;
}

.is-home .main-nav a {
  opacity: 0.82;
}

.page-home {
  max-width: none;
  padding: 0;
}

/* ---------- home: hero ---------- */

.lp-hero {
  overflow: hidden;
  padding: 48px 0 0;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(201, 164, 92, 0.3), transparent 62%),
    radial-gradient(700px 480px at -10% 100%, rgba(201, 164, 92, 0.12), transparent 60%),
    linear-gradient(180deg, #141b33 0%, #1e2745 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.6);
  color: var(--gold);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 0.98;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.lp-hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 450;
}

.lp-hero .lead {
  max-width: 520px;
  margin: 0 0 30px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.note {
  margin: 4px 4px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-phones {
  position: relative;
  height: 520px;
  margin-bottom: -60px;
}

.phone {
  width: 260px;
  margin: 0;
  padding: 7px;
  border-radius: 40px;
  background: #0d1226;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 70px rgba(5, 8, 20, 0.45);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 33px;
}

.hero-phones .phone {
  position: absolute;
  top: 0;
}

.hero-phones .back {
  left: 50%;
  transform: translate(-82%, 40px) rotate(-7deg);
  opacity: 0.9;
}

.hero-phones .front {
  left: 50%;
  transform: translate(-22%, 0) rotate(4deg);
}

@media (min-width: 900px) {
  .lp-hero {
    padding-top: 72px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .hero-phones {
    height: 600px;
    margin-bottom: -40px;
  }
  .hero-phones .phone {
    width: 290px;
  }
}

@media (max-width: 899px) {
  .hero-phones {
    height: 440px;
  }
  .hero-phones .phone {
    width: 220px;
  }
}

/* ---------- home: showcase ---------- */

.showcase {
  padding: 120px 0 72px;
  background: #fff;
  color: #22283a;
}

.showcase h2,
.home-guides h2 {
  max-width: 720px;
  margin: 0 auto 56px;
  color: #1e2745;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  text-align: center;
}

.shots {
  display: grid;
  gap: 48px;
  margin: 0 0 80px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.shots .phone {
  width: 240px;
  margin: 0 auto 26px;
  box-shadow: 0 24px 50px rgba(20, 24, 40, 0.18);
}

.shots h3 {
  margin: 0 0 8px;
  color: #1e2745;
  font-size: 21px;
}

.shots p {
  max-width: 320px;
  margin: 0 auto;
  font-size: 16px;
  color: #5b6070;
}

@media (min-width: 860px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mini {
  display: grid;
  gap: 28px 40px;
  margin: 0;
  padding: 48px 0 0;
  border-top: 1px solid rgba(30, 39, 69, 0.1);
  list-style: none;
}

.mini h3 {
  margin: 12px 0 4px;
  color: #1e2745;
  font-size: 17px;
}

.mini p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #5b6070;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f6efe1;
  color: #8a6a2c;
}

@media (min-width: 640px) {
  .mini {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .mini {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- home: guides ---------- */

.home-guides {
  padding: 88px 0;
  background: #faf6ee;
}

.home-guides h2 {
  margin-bottom: 14px;
}

.home-guides .section-lead {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 18px;
  color: #5b6070;
}

.home-guides .card a {
  background: #fff;
  border-color: rgba(30, 39, 69, 0.08);
}

.more-link {
  margin: 32px 0 0;
  text-align: center;
  font-weight: 600;
}

@media (min-width: 720px) {
  .home-guides .cards-featured {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- home: final call ---------- */

.final {
  padding: 96px 0;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(201, 164, 92, 0.22), transparent 65%), linear-gradient(180deg, #1e2745, #141b33);
  color: #fff;
  text-align: center;
}

.final-inner img {
  margin-bottom: 18px;
  border-radius: 16px;
}

.final h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(36px, 6vw, 56px);
}

.final p {
  margin: 0 auto 28px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.75);
}

.final .waitlist {
  margin: 0 auto;
  text-align: left;
}

.is-home .site-footer {
  margin-top: 0;
}

.footer-legal {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 0 16px;
  font-size: 13px;
}

/* ---------- article callouts hold the form ---------- */

.cta {
  display: block;
}

.cta-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.cta .waitlist {
  max-width: none;
}

.cta .btn {
  justify-self: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-phones .front {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-phones .back {
    animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
}
