/* Hearth — hearth.tjvex.com
   Night (hero) → snowy day (features) → evening by the fire (pricing). */

@font-face {
  font-family: "Caprasimo";
  src: url("/assets/fonts/caprasimo.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0e1a2b;
  --ink-2: #16294a;
  --frost: #e9eff5;
  --amber: #f2a93b;
  --amber-deep: #d98b1a;
  --pine: #1e3a32;
  --drift: #9db4cc;
  --snow: #ffffff;
  --text-dark: #13213a;
  --text-dark-soft: #4a5d78;

  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 1.333 scale on an 18px base */
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2.2rem, 3.6vw, 2.67rem);
  --step-4: clamp(2.6rem, 5vw, 3.55rem);
  --step-5: clamp(3.1rem, 7.2vw, 5.3rem);

  --measure: 34rem;
  --wrap: 1160px;
  --radius-window: 14px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--frost);
  font: 400 var(--step-0) / 1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
}

h1 {
  font-size: var(--step-5);
  line-height: 1.02;
}

h2 {
  font-size: var(--step-4);
  line-height: 1.08;
}

h3 {
  font: 700 var(--step-1) / 1.25 var(--body);
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 12px;
  font: 700 1.0625rem / 1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px -10px rgba(242, 169, 59, 0.7);
}
.btn-amber:hover {
  background: #f7b852;
}
.btn-amber:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--frost);
  box-shadow: inset 0 0 0 1.5px rgba(233, 239, 245, 0.35);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px rgba(233, 239, 245, 0.75);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

/* ------------------------------------------------------------ nav */

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 400 1.6rem / 1 var(--display);
  text-decoration: none;
  color: var(--frost);
}
.wordmark svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 1rem;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--drift);
}
.nav-links a:hover {
  color: var(--frost);
}

.nav .btn {
  min-height: 2.6rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ hero: a lit window on a winter night */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  min-height: min(100svh, 62rem);
  padding-block: 7.5rem 9rem;
  background:
    radial-gradient(60rem 40rem at 82% 52%, rgba(242, 169, 59, 0.16), transparent 60%),
    radial-gradient(28rem 28rem at 8% 6%, rgba(220, 232, 255, 0.09), transparent 70%),
    linear-gradient(180deg, #0b1524 0%, var(--ink) 45%, var(--ink-2) 100%);
  isolation: isolate;
}

.snowfall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy {
  max-width: var(--measure);
}
.hero h1 {
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}

.lede {
  margin-top: 1.6rem;
  color: #c9d6e6;
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 31rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.fine {
  margin-top: 1.1rem;
  color: var(--drift);
  font-size: 0.9375rem;
}

/* the window pane */
.pane {
  position: relative;
  margin: 0;
  border-radius: var(--radius-window);
  background: #1a2940;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 40px 90px -30px rgba(0, 0, 0, 0.7),
    0 0 120px -20px rgba(242, 169, 59, 0.35);
}

.pane-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 30px;
  padding-inline: 13px;
}
.pane-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.pane-bar span:nth-child(2) {
  background: #febc2e;
}
.pane-bar span:nth-child(3) {
  background: #28c840;
}

.pane-glass {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0 0 var(--radius-window) var(--radius-window);
  touch-action: none;
  cursor: grab;
  background: #0c1626;
}
.pane-glass video,
.pane-glass canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pane-glass video {
  object-fit: cover;
}

.fog-hint {
  position: absolute;
  inset: auto 0 1.4rem;
  text-align: center;
  font: italic 500 1.0625rem / 1 var(--body);
  color: rgba(19, 33, 58, 0.62);
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.fog-hint.gone {
  opacity: 0;
}

/* snowy ground between night and day */
.ground {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: clamp(60px, 9vw, 130px);
  z-index: 3;
  color: var(--frost);
}

/* ------------------------------------------------------------ daylight: features */

.day {
  background: var(--frost);
  color: var(--text-dark);
}

.features {
  padding-block: 4.5rem 6rem;
}

.section-head {
  max-width: 40rem;
}
.section-head p {
  margin-top: 1rem;
  color: var(--text-dark-soft);
  font-size: 1.1875rem;
}

.feature-list {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.feature:nth-child(even) .clip {
  order: 2;
}

.clip {
  border-radius: 12px;
  overflow: hidden;
  background: #cfdae6;
  box-shadow: 0 0 0 1px rgba(19, 33, 58, 0.08), 0 30px 60px -32px rgba(19, 33, 58, 0.45);
  aspect-ratio: 16 / 10;
}
.clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature h3 {
  font-size: var(--step-2);
  line-height: 1.15;
}
.feature p {
  margin-top: 0.9rem;
  color: var(--text-dark-soft);
  max-width: 28rem;
}

.also {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: 2.5rem;
  border-top: 1.5px solid rgba(19, 33, 58, 0.12);
}
.also h3 {
  font-size: var(--step-1);
}
.also ul {
  columns: 3 15rem;
  column-gap: 3rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.also li {
  break-inside: avoid;
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text-dark-soft);
}
.also li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--drift);
}
.also b {
  color: var(--text-dark);
  font-weight: 650;
}

/* steps */
.steps {
  padding-block: 1rem 7rem;
}
.steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 2.8rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 1.5px solid rgba(19, 33, 58, 0.18);
  padding-top: 1.4rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  font: 400 3rem / 1 var(--display);
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.steps p {
  margin-top: 0.5rem;
  color: var(--text-dark-soft);
}

/* ------------------------------------------------------------ evening: pricing + FAQ */

.evening {
  position: relative;
  background:
    radial-gradient(50rem 30rem at 18% 30%, rgba(242, 169, 59, 0.14), transparent 65%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 60%);
}

.dusk-edge {
  display: block;
  width: 100%;
  height: clamp(50px, 7vw, 100px);
  color: var(--frost);
  background: var(--ink-2);
}

.pricing {
  padding-block: 4rem 5rem;
}
.pricing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.price-tag {
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  font-family: var(--display);
  color: var(--amber);
  line-height: 0.9;
}
.price-tag .currency {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  margin-top: 0.35em;
}
.price-tag .amount {
  font-size: clamp(8rem, 18vw, 13rem);
  text-shadow: 0 0 60px rgba(242, 169, 59, 0.35);
}

.pricing h2 {
  margin-top: 1rem;
}
.pricing .lede {
  margin-top: 1rem;
}

.includes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}
.includes li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  color: #d5e0ec;
}
.includes svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(0.18rem);
  color: var(--amber);
}
.pricing .btn {
  margin-top: 2rem;
  width: 100%;
  max-width: 24rem;
  min-height: 3.6rem;
  font-size: 1.15rem;
}

/* FAQ */
.faq {
  padding-block: 3rem 6rem;
}
.faq-list {
  margin-top: 2rem;
  max-width: 46rem;
}
.faq details {
  border-bottom: 1px solid rgba(157, 180, 204, 0.22);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-weight: 650;
  font-size: 1.1875rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font: 400 1.6rem / 1 var(--body);
  color: var(--amber);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 1.4rem;
  color: #c3d0df;
  max-width: 40rem;
}
.faq details p + p {
  margin-top: -0.6rem;
}

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

.footer {
  border-top: 1px solid rgba(157, 180, 204, 0.15);
  padding-block: 2.5rem 3rem;
  color: var(--drift);
  font-size: 0.95rem;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer a {
  color: var(--drift);
}
.footer a:hover {
  color: var(--frost);
}

/* ------------------------------------------------------------ demo dialog */

.demo {
  width: min(92vw, 1100px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #000;
  overflow: visible;
}
.demo::backdrop {
  background: rgba(6, 12, 22, 0.82);
  backdrop-filter: blur(6px);
}
.demo video {
  width: 100%;
  border-radius: 14px;
}
.demo-close {
  position: absolute;
  top: -3rem;
  right: 0;
  min-height: 2.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ simple pages (thanks, lost key, legal) */

.page-head {
  position: relative;
  padding-block: 8rem 5.5rem;
  background:
    radial-gradient(40rem 24rem at 85% 40%, rgba(242, 169, 59, 0.13), transparent 60%),
    linear-gradient(180deg, #0b1524 0%, var(--ink-2) 100%);
}
.page-head h1 {
  font-size: var(--step-4);
  max-width: 20ch;
}
.page-head .lede {
  max-width: 36rem;
}

.page-body {
  padding-block: 3.5rem 6rem;
}
.prose,
.page-head .wrap {
  max-width: 42rem;
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.6rem;
}
.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
}
.prose p,
.prose ul,
.prose ol {
  margin-top: 0.9rem;
  color: var(--text-dark-soft);
}
.prose li {
  margin-top: 0.4rem;
}
.prose strong {
  color: var(--text-dark);
}
.prose .meta {
  color: var(--text-dark-soft);
  font-size: 0.95rem;
}

.steps-inline {
  counter-reset: s;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.steps-inline li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  color: var(--text-dark-soft);
}
.steps-inline li::before {
  content: counter(s);
  font: 400 1.9rem / 1 var(--display);
  color: var(--ink);
}
.steps-inline b {
  display: block;
  color: var(--text-dark);
  font-size: 1.125rem;
  margin-bottom: 0.2rem;
}

.callout {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  background: #dde6f0;
  color: var(--text-dark);
}

.form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
  max-width: 34rem;
}
.form input {
  flex: 1 1 16rem;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(19, 33, 58, 0.25);
  border-radius: 12px;
  background: #fff;
  color: var(--text-dark);
  font: 500 1.0625rem / 1 var(--body);
}
.form input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
  border-color: transparent;
}
.form-status {
  margin-top: 1rem;
  min-height: 1.6em;
  color: var(--text-dark);
  font-weight: 600;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .hero {
    padding-block: 6.5rem 7rem;
  }
  .hero .wrap,
  .feature,
  .pricing .wrap {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) .clip {
    order: 0;
  }
  .steps ol {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1.0625rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .nav .btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .faq summary::after,
  .fog-hint {
    transition: none;
  }
}
