.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  color: white;
  background: var(--forest);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

#main-content:focus {
  outline: 0;
}

.privacy {
  background: var(--cream);
}

.privacy-copy {
  max-width: 850px;
  color: var(--muted);
  font: 17px/1.75 Georgia, serif;
}

.privacy-copy a {
  color: var(--forest);
  font-weight: 700;
}

.workspace-status {
  background: var(--paper);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.status-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.status-grid strong {
  color: var(--rust);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-grid h3 {
  margin: 18px 0 10px;
  color: var(--forest);
  font: 600 27px Georgia, serif;
}

.status-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.founding-beta {
  background: var(--forest);
  color: white;
}

.trial-banner {
  padding: .8rem clamp(1rem, 4vw, 4rem);
  text-align: center;
  background: #f3dfaa;
  color: #173f3a;
  border-bottom: 1px solid #d5bb78;
  line-height: 1.5;
}
.trial-banner a { color: inherit; font-weight: 800; margin-left: .35rem; }

.founding-beta .section-heading h2,
.founding-beta .section-heading > p:last-child {
  color: white;
}

.founding-beta .eyebrow,
.founding-beta .beta-grid b {
  color: #f0bc91;
}

.beta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 28px;
}

.beta-grid article {
  padding: 28px;
  border: 1px solid #ffffff36;
  background: #ffffff0d;
}

.beta-grid b {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.beta-grid h3 {
  margin: 18px 0 10px;
  font: 600 27px Georgia, serif;
}

.beta-grid p,
.beta-note {
  color: #e2ebe7;
  line-height: 1.65;
}

.founding-beta .primary {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--forest);
}

.beta-note {
  margin: 16px 0 0;
  font-size: 12px;
}

.price-grid .text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--forest);
  font-weight: 800;
}

.example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 4px 0;
}

.example-actions .text-link {
  margin: 0;
}

.example-dialog {
  width: min(1100px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid #ffffff4d;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 28px 80px #071a18a6;
}

.example-dialog::backdrop {
  background: #071a18cc;
}

.example-dialog-bar {
  min-height: 64px;
  padding: 12px 16px 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--forest);
  color: white;
}

.example-dialog-bar h2 {
  margin: 0;
  color: white;
  font: 600 clamp(18px, 3vw, 24px) Georgia, serif;
}

.example-dialog-bar button {
  min-width: 70px;
  min-height: 44px;
  border: 1px solid #ffffff88;
  border-radius: 4px;
  color: white;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.example-dialog iframe {
  display: block;
  width: 100%;
  height: calc(100% - 112px);
  border: 0;
  background: var(--cream);
}

.example-dialog-fallback {
  min-height: 48px;
  margin: 0;
  padding: 13px 20px;
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
}

.example-dialog-fallback a {
  color: var(--forest);
  font-weight: 800;
}

.scroll-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 1000;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  color: white;
  background: var(--forest);
  box-shadow: 0 10px 28px #071a1855;
  cursor: pointer;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  touch-action: manipulation;
}

.scroll-top[hidden] {
  display: none;
}

.scroll-top svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.waitlist button[type="submit"] {
  align-self: center;
  min-height: 44px;
  max-height: 46px;
  padding-block: 10px;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .site-header {
    height: 116px;
  }

  .logo img {
    width: 390px;
    max-width: 31vw;
  }

  .site-header nav {
    gap: 18px;
  }

  .site-header nav a {
    font-size: 13.5px;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-block: 9px;
    line-height: 1.1;
  }
}

.join-now-card {
  align-self: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--cream);
}

.join-now-card img {
  width: 54px;
  margin-bottom: 18px;
}

.join-now-card h3 {
  margin: 0 0 12px;
  color: var(--forest);
  font: 600 30px/1.15 Georgia, serif;
}

.join-now-card p {
  color: var(--muted);
  line-height: 1.65;
}

.join-now-card .text-link {
  display: inline-block;
  margin: 16px 0 0 14px;
  color: var(--forest);
  font-weight: 800;
}

.site-footer {
  grid-template-columns: minmax(420px, 1.35fr) minmax(330px, 1fr) auto;
  align-items: start;
  gap: 34px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  text-align: left;
}

.footer-brand img {
  width: 250px;
}

.footer-brand p {
  max-width: none;
  white-space: nowrap;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px 20px;
  text-align: left;
}

.footer-links .footer-preferences {
  text-align: left;
}

.footer-share-row {
  display: grid;
  gap: 10px;
  min-width: 190px;
  text-align: left;
}

.footer-share-row > span:first-child {
  color: white;
  font-weight: 800;
}

@media (max-width: 1150px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { white-space: normal; }
}

@media (max-width: 700px) {
  .site-footer { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; text-align: center; }
  .footer-links { grid-template-columns: 1fr; text-align: center; }
  .footer-links .footer-preferences { text-align: center; }
  .footer-share-row { justify-items: center; text-align: center; }
  .join-now-card .text-link { display: block; margin-left: 0; }
}

.waitlist input,
.waitlist select,
.waitlist button,
.site-header nav a {
  min-height: 44px;
}

.site-header .nav-sign-in {
  background: transparent;
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.site-header .logo {
  flex: 0 0 auto;
}

@media (min-width: 901px) and (max-width: 1399px) {
  .site-header nav {
    gap: 12px;
  }

  .site-header nav a[href="#workspace"],
  .site-header nav a[href="#examples"],
  .site-header nav a[href="#pricing"] {
    display: none;
  }
}

/* Give the hero keepsake the depth and tactile detail of a clothbound family book. */
.book-object {
  position: relative;
  width: min(350px, 78vw);
  aspect-ratio: .72;
  transform: rotateY(-12deg) rotateZ(1.4deg);
  transform-style: preserve-3d;
  filter: drop-shadow(-20px 28px 25px rgb(23 63 58 / 25%));
}

.book-object .book-cover {
  width: 100%;
  height: 100%;
  transform: translateZ(9px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 28%), transparent 7%, transparent 94%, rgb(255 255 255 / 8%)),
    repeating-linear-gradient(87deg, rgb(255 255 255 / 2%) 0 1px, rgb(0 0 0 / 2%) 1px 3px),
    linear-gradient(145deg, #285a51, #102f2b 72%);
  border: 1px solid #09231f;
  box-shadow: inset 10px 0 18px rgb(0 0 0 / 24%), inset -2px -2px 0 rgb(255 255 255 / 8%);
}

.book-object .book-cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgb(217 170 79 / 55%);
  box-shadow: inset 0 0 0 3px rgb(16 47 43 / 45%);
  pointer-events: none;
}

.book-pages {
  position: absolute;
  z-index: -1;
  top: 12px;
  right: -14px;
  bottom: -11px;
  left: 12px;
  border-radius: 2px 13px 13px 3px;
  border: 1px solid #c9bda7;
  background: repeating-linear-gradient(0deg, #f7efdf 0 2px, #ddd0bb 2px 3px);
  box-shadow: 8px 9px 18px rgb(23 42 38 / 22%);
  transform: translateZ(-8px);
}

.book-spine {
  position: absolute;
  z-index: 4;
  inset: 2px auto 2px 0;
  width: 25px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgb(0 0 0 / 34%), rgb(255 255 255 / 7%) 52%, rgb(0 0 0 / 20%));
  box-shadow: 5px 0 9px rgb(0 0 0 / 20%);
  pointer-events: none;
}

.book-cover .family-name {
  display: block;
  margin: 0 0 16px;
  color: #e7c777;
  font: 600 14px/1.3 Georgia, serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #071d1a;
}

.preview.scrapbook > span:nth-of-type(1) {
  left: 11%;
  top: 6%;
}

.consent span {
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
  }

  .logo img {
    width: min(145px, 38vw);
  }

  .nav-cta {
    white-space: nowrap;
    padding: 8px 9px;
    font-size: 12px;
  }

  .site-header nav {
    gap: 6px;
  }

  .scroll-top {
    right: 16px;
    bottom: max(82px, calc(env(safe-area-inset-bottom, 0px) + 68px));
    width: 52px;
    height: 52px;
    border-width: 2px;
  }

  .hero h1 {
    overflow-wrap: anywhere;
  }

  .waitlist input,
  .waitlist select {
    font-size: 16px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .beta-grid {
    grid-template-columns: 1fr;
  }

  .example-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}

/* Modern Heirloom: an editorial, book-publishing treatment with a compact story journey. */
.site-header {
  background: rgb(15 48 44 / 97%);
  border-bottom: 1px solid rgb(217 170 79 / 55%);
  box-shadow: 0 8px 28px rgb(7 29 26 / 10%);
}

.site-header .logo img {
  filter: brightness(0) invert(1);
}

.site-header nav a {
  color: #fffdf8;
}

.site-header .nav-sign-in {
  color: #fffdf8;
  box-shadow: inset 0 0 0 1px rgb(255 253 248 / 72%);
}

.site-header .nav-cta:not(.nav-sign-in) {
  border-color: var(--rust);
  background: var(--rust);
}

@media (min-width: 901px) {
  .site-header {
    height: 100px;
  }

  .site-header .logo img {
    width: 320px;
    max-width: 27vw;
  }
}

.section {
  padding-block: clamp(78px, 7vw, 104px);
}

.section-heading h2 {
  max-width: 850px;
  margin-bottom: 30px;
  line-height: 1.02;
}

.steps {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px);
  padding-top: 8px;
  border: 0;
  background: transparent;
}

.steps::before {
  content: "";
  position: absolute;
  top: 29px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}

.steps article {
  position: relative;
  min-height: 0;
  padding: 0 12px 10px;
  background: transparent;
  text-align: center;
}

.steps b {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c59336;
  border-radius: 50%;
  color: #fffdf8;
  background: linear-gradient(145deg, #d9aa4f, #a97420);
  box-shadow: 0 0 0 8px var(--cream);
  font: 600 15px/1 Georgia, serif;
}

.steps h3 {
  margin: 22px 0 10px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
}

.steps p {
  max-width: 270px;
  margin: 0 auto;
  line-height: 1.6;
}

.feature-grid article,
.status-grid article,
.beta-grid article,
.price-grid article,
.example-grid > article,
.join-now-card,
.info-grid article,
.info-card,
.info-hero {
  border-radius: 10px;
  box-shadow: 0 12px 34px rgb(23 63 58 / 7%);
}

.feature-grid article,
.status-grid article,
.beta-grid article,
.price-grid article {
  padding: clamp(26px, 2.6vw, 36px);
}

.feature-grid h3 {
  margin-top: 22px;
}

.example-grid,
.feature-grid,
.price-grid,
.status-grid,
.beta-grid {
  gap: clamp(18px, 2vw, 28px);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 30px 18px;
  }

  .steps::before {
    display: none;
  }

  .steps article {
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }

  .steps b {
    box-shadow: none;
  }

  .steps h3 {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
    height: auto;
    padding-block: 8px;
  }

  .site-header .logo img {
    width: min(164px, 41vw);
  }

  .site-header .heirloom-logo img {
    width: 36px;
    height: 36px;
  }

  .site-header .nav-sign-in {
    background: transparent;
  }

  .site-header .nav-cta:not(.nav-sign-in) {
    color: #fffdf8;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps article {
    text-align: left;
  }

  .steps h3 {
    display: inline;
    margin-left: 12px;
    vertical-align: middle;
  }

  .steps p {
    max-width: none;
    margin-top: 15px;
  }
}

/* Sign In is an outlined button: give the outline room and center its label.
   Without this the 44px tap height and the zero padding from heirloom-concept.css
   left the text pinned to the top-left of an empty box on phones (iPhone Safari). */
.site-header .nav-sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 9px;
}

.site-header .nav-cta:not(.nav-sign-in) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .site-header .nav-sign-in {
    padding: 0 10px;
    border-radius: 8px;
  }
}

/* Desktop and tablet-landscape header (901px and up).
   The shared header's logo mark could be stretched by the older `.logo img`
   width rules on info pages, and the full menu needs ~1070px, so between
   901px and ~1250px (iPad held sideways, narrow laptop windows) the header
   ran past the screen and the page scrolled sideways. */
@media (min-width: 901px) {
  .site-header .heirloom-logo img {
    width: 54px;
    height: 54px;
    max-width: 54px;
    flex: 0 0 auto;
  }
}

@media (min-width: 901px) and (max-width: 1250px) {
  .site-header .heirloom-logo {
    min-width: 0;
    flex: 0 1 auto;
  }
  .site-header .heirloom-logo img {
    width: 40px;
    height: 40px;
    max-width: 40px;
  }
  .site-header .heirloom-logo::after {
    display: none;
  }
  .site-header nav {
    gap: 14px;
  }
  .site-header nav a {
    font-size: 13px;
  }
}

/* Our Books and About stay in the footer on narrower screens. */
@media (min-width: 901px) and (max-width: 1100px) {
  .site-header nav a[href="/mockups/"],
  .site-header nav a[href="/about/"] {
    display: none;
  }
}
