@font-face {
  font-family: Alegreya;
  src: url(assets/alegreya-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url(assets/dm-sans-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --ink: #1d3b32;
  --deep: #132821;
  --paper: #faf7f2;
  --parchment: #f1ebe0;
  --white: #fffdf9;
  --muted: #55665a;
  --accent: #b85c4b;
  --accent-soft: #f7e6e2;
  --gold: #dfb26b;
  --line: #dcd5c7;
  --serif: Alegreya, Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.skip, .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; z-index: 99; left: 14px; top: 14px;
  width: auto; height: auto; margin: 0; padding: 10px 16px;
  clip-path: none; background: #fff;
}

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner, .footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; min-height: 74px;
}
.brand {
  display: inline-flex; gap: 9px; align-items: center;
  text-decoration: none; font: 650 26px/1 var(--serif); letter-spacing: -.045em;
}
.brand span { color: var(--accent); margin-left: -6px; }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover, .plain:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-action { border: 1px solid var(--ink); border-radius: 30px; padding: 9px 17px; }
.nav-action:hover { background: var(--parchment); text-decoration: none; }

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px;
  align-items: center; padding-block: 56px 68px;
}
.eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em;
}
.eyebrow span { font-size: 18px; line-height: 1; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 560; letter-spacing: -.055em; line-height: .98; }
h1 { font-size: clamp(2.85rem, 4.9vw, 4.35rem); margin: 0 0 22px; }
h1 > span, h2 > span { color: var(--accent); }
h2 { font-size: clamp(2.3rem, 4vw, 3.4rem); margin: 0; }
h3 { font-weight: 750; font-size: 17px; margin-bottom: 10px; }
.intro { font-size: clamp(1.03rem, 1.6vw, 1.16rem); color: var(--muted); max-width: 470px; margin: 0 0 26px; }
.hero-actions { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }

.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 1px solid transparent; border-radius: 30px;
  padding: 10px 20px; text-decoration: none; font-weight: 720; font-size: 14px;
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s;
}
.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.primary:hover { background: #295044; }
.plain { background: transparent; color: var(--ink); padding-inline: 2px; }
.outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.outline:hover { background: var(--parchment); }
.danger-soft { border-color: #d9b5ae; background: #fdf5f3; color: #8c3426; }
.danger-soft:hover { background: #f8e7e4; }
button:disabled { opacity: .55; cursor: wait; }

.privacy-pills {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 0;
  color: var(--muted); font-size: 13px;
}
.privacy-pills span { display: inline-flex; align-items: center; gap: 6px; }

.hero-art { position: relative; margin: 0; isolation: isolate; }
.art-underlay {
  position: absolute; inset: 8% -2% -3% 6%; z-index: -1; transform: rotate(3.5deg);
  background: #eadfce; border: 1px solid var(--line); border-radius: 8px;
}
.keepsake-showcase {
  background: var(--white); border: 1px solid #e6ddd0; border-radius: 8px;
  padding: 16px; box-shadow: 0 18px 40px rgba(29, 59, 50, .12);
  transform: rotate(-1.5deg);
}
.keepsake-parents {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  margin-bottom: 12px;
}
.mini-frame {
  background: #f5efe6; padding: 6px 6px 8px; border-radius: 4px;
  border: 1px solid #e5dccf; text-align: center;
}
.mini-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.mini-frame span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 5px; }
.plus-badge {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 16px;
}
.baby-main-frame { background: #f5efe6; padding: 8px 8px 0; border-radius: 5px; border: 1px solid #e5dccf; }
.baby-main-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.photo-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 4px 12px; color: var(--ink); font: 550 19px/1.15 var(--serif);
}
.photo-caption span:last-child { color: var(--accent); font-size: 18px; }

.studio-section {
  background: #ebe4d7; color: var(--ink); padding: 56px 0 68px; scroll-margin-top: 8px;
}
.section-heading {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.pass-badge {
  margin: 0; padding: 7px 14px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 13px; font-weight: 680;
}

.studio-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: start; }
.controls, .preview {
  background: var(--white); border-radius: 10px; border: 1px solid var(--line); min-width: 0;
}
.controls { padding: 24px; display: grid; gap: 20px; }
.control-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.group-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.group-top h3, legend { font-size: 16px; font-weight: 760; margin: 0; padding: 0; }
legend { margin-bottom: 10px; }

.parent-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dropzone {
  position: relative; width: 100%; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 158px; padding: 14px 10px; color: var(--ink);
  background: #f8f5ef; border: 1.5px dashed #a8a293; border-radius: 8px; cursor: pointer;
}
.dropzone:hover, .dropzone.dragging { background: #efe9de; border-color: var(--ink); }
.dropzone.has-photo { padding: 8px; border-style: solid; border-color: var(--ink); background: #fff; }
.upload-symbol {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: #e9e2d4; border-radius: 50%;
}
.dropzone strong { font-size: 14px; }
.dropzone small { font-size: 12px; color: var(--muted); }
.parent-thumb {
  width: 100%; height: 120px; object-fit: cover; border-radius: 5px;
}
.thumb-label { font-size: 12px; font-weight: 700; color: var(--muted); }

.help { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row label { position: relative; cursor: pointer; }
.pill-row input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pill-row span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 24px; font-size: 14px; font-weight: 650;
  background: var(--white);
}
.pill-row input:checked + span {
  background: var(--ink); border-color: var(--ink); color: var(--white);
}
.pill-row input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.text-input {
  width: 100%; border: 1px solid #b5afa2; background: #fff; color: var(--ink);
  border-radius: 6px; padding: 9px 12px; font-size: 14px;
}

.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.status { color: var(--muted); font-size: 14px; margin: 0; min-height: 22px; }
.status[data-error="true"] { color: #9c3229; font-weight: 600; }

.preview { padding: 18px; position: sticky; top: 14px; }
.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 12px; flex-wrap: wrap;
}
.preview-header h3 { margin: 0; }
.view-tabs {
  display: inline-flex; background: var(--parchment); padding: 3px; border-radius: 24px; gap: 3px;
}
.view-tab {
  border: 0; background: transparent; color: var(--muted); padding: 5px 12px;
  border-radius: 20px; font-size: 13px; font-weight: 680; cursor: pointer;
}
.view-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.preview-stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  border-radius: 6px; background: #ede6d9; min-height: 300px;
}
.preview-stage img, .preview-stage canvas {
  display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain;
}
.preview-empty {
  position: absolute; bottom: 14px; left: 14px; max-width: calc(100% - 28px);
  background: var(--white); color: var(--ink); padding: 8px 12px;
  border-radius: 5px; font-weight: 700; font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.preview-footer {
  display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; align-items: center;
}
.preview-pay-note { margin: 10px 0 0; }

.examples-section { padding: 68px 0 36px; }
.examples-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px;
}
.example-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; display: grid; gap: 10px;
}
.example-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.example-card strong { font-size: 15px; }
.example-card p { margin: 0; font-size: 13px; color: var(--muted); }

.pricing { padding: 56px 0 48px; }
.pricing-heading {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.pricing-subtitle { max-width: 460px; color: var(--muted); margin: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.price-card.featured { border: 2px solid var(--ink); box-shadow: 0 12px 30px rgba(29, 59, 50, .08); }
.plan-tag {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.price-top h3 { margin: 0 0 6px; font-size: 19px; }
.price-amount { margin: 0; font: 600 34px/1 var(--serif); }
.price-amount span { font: 500 14px/1 var(--sans); color: var(--muted); }
.price-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); flex: 1; }
.price-cta { width: 100%; }
.pricing-status { margin-top: 14px; }

.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; padding-block: 56px 84px; }
.faq-questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary {
  cursor: pointer; font-weight: 720; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--accent); line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 18px 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { min-height: 78px; flex-wrap: wrap; padding-block: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 13px; color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.legal-page { padding-block: 48px 72px; max-width: 780px; }
.legal-page h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 10px; }
.legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.legal-page h2 { font-size: 1.5rem; margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: #31473f; }
.legal-page ul { padding-left: 20px; display: grid; gap: 8px; }

@media (max-width: 920px) {
  .shell { width: calc(100% - 44px); }
  .hero, .studio-grid, .pricing-grid, .examples-grid, .faq { grid-template-columns: 1fr; }
  .preview { position: static; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 30px); }
  nav a:nth-child(1), nav a:nth-child(2) { display: none; }
  .parent-uploads { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
