/* =========================================
   cardfolio.club — one CSS file for the site
   Open this next to index.html or create.html.
   Each block matches a section in the HTML.
   ========================================= */

/* ---------- tokens (from Figma) ---------- */
:root {
  --color-brand-primary: #eb6212;
  --color-brand-primary-light: #f88e4f;
  --color-brand-secondary: #3f747a;
  --color-brand-accent: #c9962b;
  --color-text-primary: #3d2a18;
  --color-text-secondary: #4a3e24;
  --color-text-tertiary: #5c4e30;
  --color-text-cream: #fff3e6;
  --color-text-muted: #5c4e28;
  --color-bg: #fff1e1;
  --color-nav-scroll: rgba(255, 241, 225, 0.8);
  --color-white: #fffcfc;
  --color-card: #fff7ed;
  --color-card-border: #b5a28a;
  --color-rule: #5c4e28;
  --color-neutral-dark: #5a3f26;
  --color-status-success: #7c8b46;
  --color-status-error: #a83a2e;
  --color-status-warning: #e8b347;
  --color-text-success: #3d4520;
  --color-text-error: #6e271f;
  --color-text-warning: #8a5a18;
  --color-input-border: #e8dfd3;
  --color-field-border: #dacfc3;
  --color-field-border-active: #b5a28a;
  --color-field-placeholder: #9a9a9a;
  --color-field-value: #202020;
  --color-postcard-empty: #ceccc9;
  --color-postcard-ink: #2f46ac;

  --font-serif: "Literata", Georgia, serif;
  --font-nav: "Lora", "Literata", Georgia, serif;
  --font-nav-link: "Lora", "Lora", Georgia, serif;
  --font-title: "Lora", "Literata", Georgia, serif;
  --font-hand: "Gloria Hallelujah", "Lora", cursive;
  --font-caption: "Gloria Hallelujah", "Gloria Hallelujah", cursive;
  --font-display: "Chicle", "Georgia", serif;
  --font-gochi: "Gochi Hand", "Gloria Hallelujah", cursive;

  --header-height: 64px;
  --page-gutter: 48px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- navbar (Figma: first-version-home / first-version-scrolling) ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 12px var(--page-gutter);
  background: transparent;
  pointer-events: none;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.header.is-scrolled {
  background: var(--color-nav-scroll);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.logo,
.nav,
.nav-cta {
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-mark {
  width: 129px;
  height: 30px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 24px;
  background: var(--color-neutral-dark);
  color: var(--color-text-cream);
  font-family: var(--font-nav-link);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  border-radius: 12px;
}

.nav-cta-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-cta-icon img {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.nav-cta-icon-hover {
  opacity: 0;
}

.nav-cta:focus-visible .nav-cta-icon-default {
  opacity: 0;
}

.nav-cta:focus-visible .nav-cta-icon-hover {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover .nav-cta-icon-default {
    opacity: 0;
  }

  .nav-cta:hover .nav-cta-icon-hover {
    opacity: 1;
  }
}

/* ---------- section 1: hero + postcard ---------- */
.hero {
  background: var(--color-bg);
}

.hero-scene {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-bg);
  perspective: 1600px;
}

.hero-fullbleed {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-fullbleed img,
.postcard-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.postcard-mover {
  transform-style: preserve-3d;
}

.postcard {
  position: relative;
  width: clamp(280px, 86vw, 655px);
  aspect-ratio: 655 / 443;
  transform-origin: center center;
  transform-style: preserve-3d;
}

.postcard-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.postcard-front {
  background: transparent;
}

.postcard-fill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
}

.postcard-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.postcard-back {
  background: #fff;
  transform: rotateY(180deg);
  container-type: inline-size;
}

.postcard-back-inner {
  display: flex;
  align-items: flex-start;
  gap: 3.71cqi;
  width: 100%;
  height: 100%;
  padding: 6.18cqi;
}

.postcard-back-message {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--color-postcard-ink);
  font-family: var(--font-gochi);
  font-size: 2.47cqi;
  font-weight: 400;
  line-height: 1.625;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.postcard-back-rule {
  flex-shrink: 0;
  width: 0;
  height: 46.35cqi;
  border-left: 1px solid var(--color-input-border);
}

.postcard-back-stamp {
  position: relative;
  flex-shrink: 0;
  width: 14.62cqi;
  height: 15.72cqi;
  overflow: hidden;
}

.postcard-back-stamp img {
  position: absolute;
  top: -3.88%;
  left: -8.14%;
  width: 116.27%;
  height: 108.12%;
  max-width: none;
  object-fit: cover;
}

/* ---------- section 2: feature cards ---------- */
.features {
  background: var(--color-bg);
}

.features-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px var(--page-gutter);
}

.features-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1184px;
  padding: 0 240px;
  text-align: center;
}

.features-title {
  margin: 0;
  width: 100%;
  color: var(--color-text-primary);
  font-family: "Lora", var(--font-title);
  font-size: 36px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.36px;
  text-align: center;
}

.features-lead {
  margin: 0;
  width: 100%;
  color: var(--color-text-secondary);
  font-family: "Lora", var(--font-title);
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 0;
  text-align: center;
}

.features-cards {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.feature-card {
  position: relative;
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  background: var(--color-card);
  border: 0;
  border-radius: 32px;
  transform-origin: 50% 90%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 2px solid var(--color-card-border);
  border-radius: 32px;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    z-index: 1;
    box-shadow: 0 10px 24px rgba(61, 42, 24, 0.07);
  }

  .feature-card:nth-child(1):hover {
    transform: translateY(-14px) rotate(-2.4deg);
  }

  .feature-card:nth-child(2):hover {
    transform: translateY(-16px) rotate(1.5deg);
  }

  .feature-card:nth-child(3):hover {
    transform: translateY(-14px) rotate(2.6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta-icon img {
    transition: none;
  }

  .feature-card {
    transition: none;
  }

  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }
}

.feature-card-inner {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 0;
  width: 100%;
  padding: 12px;
}

.feature-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed var(--color-card-border);
  border-radius: 20px;
  pointer-events: none;
}

.feature-card-media {
  width: 100%;
}

.feature-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  color: var(--color-text-primary);
  font-family: "Lora", var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.22px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-card-label::before,
.feature-card-label::after {
  content: "";
  flex: 1 0 0;
  min-width: 0;
  height: 0;
  border-top: 1px solid var(--color-text-primary);
}

.feature-card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: var(--color-text-primary);
}

.feature-card-copy h3 {
  margin: 0;
  font-family: "Lora", var(--font-nav);
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}

.feature-card-copy p {
  margin: 0;
  font-family: "Lora", var(--font-nav);
  font-size: 17px;
  font-weight: 400;
  line-height: 27px;
}

/* ---------- section 3: polaroids ---------- */
.polaroids {
  background: var(--color-bg);
  overflow: hidden;
}

.polaroids-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 200px var(--page-gutter);
}

.polaroids-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 268px;
  flex-shrink: 0;
}

.polaroids-title {
  margin: 0;
  width: 268px;
  color: var(--color-text-primary);
  font-family: "Lora", var(--font-title);
  font-size: 42px;
  font-weight: 700;
  line-height: 51px;
  letter-spacing: -0.63px;
}

.polaroids-lead {
  margin: 0;
  width: 268px;
  color: var(--color-text-secondary);
  font-family: "Lora", var(--font-title);
  font-size: 17px;
  font-weight: 400;
  line-height: 27px;
}

.polaroids-grid {
  display: grid;
  flex: 1 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

.polaroid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 4px;
  min-width: 0;
  margin: 0;
  overflow: visible;
}

.polaroid-tilt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--polaroid-tilt-w);
  height: var(--polaroid-tilt-h);
  max-width: 100%;
}

.polaroid-kate {
  --polaroid-tilt-w: 284.15px;
  --polaroid-tilt-h: 205.85px;
}

.polaroid-yuki {
  --polaroid-tilt-w: 285.28px;
  --polaroid-tilt-h: 207.46px;
}

.polaroid-anders {
  --polaroid-tilt-w: 288.05px;
  --polaroid-tilt-h: 211.44px;
}

.polaroid-elif {
  --polaroid-tilt-w: 282.87px;
  --polaroid-tilt-h: 204.04px;
}

.polaroid-liam {
  --polaroid-tilt-w: 287.65px;
  --polaroid-tilt-h: 210.86px;
}

.polaroid-priya {
  --polaroid-tilt-w: 281.73px;
  --polaroid-tilt-h: 202.42px;
}

.polaroid-frame {
  width: 280px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: #d9d9d9;
  border: 8px solid #fff;
  box-shadow: 0 6px 16px rgba(61, 42, 24, 0.06);
  transform-origin: 50% 50%;
}

.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid figcaption {
  width: 100%;
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-caption);
  font-size: 17px;
  font-weight: 400;
  line-height: 27px;
  text-align: left;
}

.polaroid-avatar-wrap {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.polaroid-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(61, 42, 24, 0.08);
}

.polaroid-kate .polaroid-frame {
  transform: rotate(1.21deg);
}

.polaroid-kate .polaroid-avatar-wrap {
  top: -25.81px;
  left: -19px;
  width: 65.91px;
  height: 65.91px;
}

.polaroid-kate .polaroid-avatar {
  object-position: 50% 8.73%;
  transform: rotate(-5.96deg);
}

.polaroid-yuki .polaroid-frame {
  transform: rotate(-1.54deg);
}

.polaroid-anders .polaroid-frame {
  transform: rotate(2.38deg);
}

.polaroid-anders .polaroid-avatar-wrap {
  top: -10px;
  right: -13.51px;
  left: auto;
  width: 66.51px;
  height: 66.51px;
}

.polaroid-anders .polaroid-avatar {
  transform: rotate(6.61deg);
}

.polaroid-elif .polaroid-frame {
  transform: rotate(-0.83deg);
}

.polaroid-liam .polaroid-frame {
  transform: rotate(2.25deg);
}

.polaroid-liam .polaroid-avatar-wrap {
  top: -10.49px;
  left: -13.33px;
  width: 63.2px;
  height: 63.2px;
}

.polaroid-liam .polaroid-avatar {
  transform: rotate(3.15deg);
}

.polaroid-priya .polaroid-frame {
  transform: rotate(-0.5deg);
}

html.js .polaroids-copy h2,
html.js .polaroids-copy p,
html.js .polaroid {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .polaroid {
    z-index: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .polaroid:hover {
    z-index: 3;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .polaroids-copy h2,
  html.js .polaroids-copy p,
  html.js .polaroid {
    opacity: 1;
  }

  .polaroid {
    transition: none;
  }

  .polaroid:hover {
    transform: none;
  }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 420px;
  padding: 80px var(--page-gutter);
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
}

.cta-copy,
.cta-btn {
  position: relative;
  z-index: 1;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 584px;
  color: var(--color-text-cream);
  text-align: center;
}

.cta-copy h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 51px;
  margin: 0;
  color: var(--color-text-cream);
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 400;
  line-height: 32px;
}

.cta-copy p {
  width: 100%;
  min-height: 51px;
  margin: 0;
  color: var(--color-text-cream);
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: 0.075px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px;
  background: var(--color-bg);
  color: var(--color-neutral-dark);
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 600;
  line-height: 27px;
  letter-spacing: -0.064px;
  text-align: center;
  white-space: nowrap;
  border-radius: 12px;
  box-shadow: 6px 4px 6.65px rgba(25, 13, 2, 0.47);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 8px 10px rgba(25, 13, 2, 0.4);
  }
}

html.js .cta-copy h2,
html.js .cta-copy p,
html.js .cta-btn {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.js .cta-copy h2,
  html.js .cta-copy p,
  html.js .cta-btn {
    opacity: 1;
  }

  .cta-btn {
    transition: none;
  }

  .cta-btn:hover {
    transform: none;
  }
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 48px;
  height: 300px;
  padding: 32px var(--page-gutter);
  background: var(--color-bg);
  color: var(--color-neutral-dark);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 358px;
  max-width: 100%;
}

.footer-wordmark {
  display: block;
  width: 356px;
  max-width: 100%;
  line-height: 0;
}

.footer-wordmark img {
  width: 356px;
  max-width: 100%;
  height: auto;
}

.footer-tagline {
  margin: 0;
  color: var(--color-neutral-dark);
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: 0.13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 13.5px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.footer-social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.footer-links a {
  padding: 8px 0;
  color: var(--color-neutral-dark);
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: 0.13px;
}

.footer-links a:hover,
.footer-social a:hover {
  opacity: 0.75;
}

/* ---------- create postcard popover ---------- */
body.create-open,
body.send-success-open {
  overflow: hidden;
}

.create-popover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
}

.create-popover[hidden] {
  display: none !important;
}

.create-popover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.create-close {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  line-height: 0;
  cursor: pointer;
}

.create-close svg {
  display: block;
  width: 24px;
  height: 24px;
}

.create-close:hover {
  opacity: 0.7;
}

.create-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 12px max(60px, env(safe-area-inset-right, 0px)) 0 max(60px, env(safe-area-inset-left, 0px));
}

.create-workspace {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  min-height: 0;
  padding: 0 0 48px;
  overflow: hidden;
  background: var(--color-bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 4px -4px 9px rgba(0, 0, 0, 0.12);
}

.create-heading {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
  padding: 24px 36px 12px;
  background: var(--color-bg);
}

.create-heading h1 {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.072px;
}

.create-heading p {
  margin: 0;
  color: var(--color-text-secondary);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: 0.13px;
}

.create-columns {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  gap: 36px;
  width: 100%;
  min-height: 0;
  padding: 0 36px;
  overflow: hidden;
}

.create-form {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-self: flex-start;
  gap: 20px;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 16px 16px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbb9a4 transparent;
  background: #fff;
  border: 1px solid var(--color-field-border);
  border-radius: 12px;
}

.create-form::-webkit-scrollbar {
  width: 8px;
}

.create-form::-webkit-scrollbar-track {
  margin: 10px 0;
  background: transparent;
}

.create-form::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbb9a4;
  background-clip: padding-box;
}

.create-form::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-primary-light);
  background-clip: padding-box;
}

.create-form::-webkit-scrollbar-thumb:active {
  background: var(--color-brand-primary);
  background-clip: padding-box;
}

.create-form::-webkit-scrollbar-corner {
  background: transparent;
}

.create-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.create-field label,
.create-field-label {
  margin: 0;
  color: var(--color-neutral-dark);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: 0.13px;
}

.create-field-message {
  flex: 0 0 auto;
  height: 342px;
  min-height: 342px;
}

.create-field-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.create-field-row .create-field {
  flex: 1 1 0;
  min-width: 0;
  min-height: 78px;
}

.create-field textarea,
.create-field input[type="email"],
.create-field input[type="text"] {
  width: 100%;
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-field-border);
  border-radius: 8px;
  color: var(--color-field-value);
  outline: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.create-field textarea {
  flex: 1 0 0;
  min-height: 0;
  resize: none;
  overflow: auto;
  font-family: var(--font-hand);
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
}

.create-field input[type="email"],
.create-field input[type="text"] {
  height: 51px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: 0.13px;
}

.create-field textarea::placeholder,
.create-field input[type="email"]::placeholder,
.create-field input[type="text"]::placeholder {
  color: var(--color-field-placeholder);
  opacity: 1;
}

.create-field textarea:focus,
.create-field input[type="email"]:focus,
.create-field input[type="text"]:focus,
.create-field textarea:not(:placeholder-shown),
.create-field input[type="email"]:not(:placeholder-shown),
.create-field input[type="text"]:not(:placeholder-shown) {
  border-color: var(--color-field-border-active);
  color: var(--color-field-value);
}

.create-field.is-invalid textarea,
.create-field.is-invalid input[type="email"],
.create-field.is-invalid input[type="text"],
.create-field.is-invalid textarea:focus,
.create-field.is-invalid input[type="email"]:focus,
.create-field.is-invalid input[type="text"]:focus,
.create-field.is-invalid textarea:not(:placeholder-shown),
.create-field.is-invalid input[type="email"]:not(:placeholder-shown),
.create-field.is-invalid input[type="text"]:not(:placeholder-shown) {
  border-color: var(--color-status-error);
}

.create-field-error {
  margin: 0;
  color: var(--color-status-error);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.22px;
}

.create-field.is-warning textarea,
.create-field.is-warning textarea:focus,
.create-field.is-warning textarea:not(:placeholder-shown) {
  border-color: var(--color-status-warning);
}

.create-field.is-warning .create-field-error,
.create-field-error.is-warning {
  color: var(--color-text-warning);
}

.create-field-error[hidden] {
  display: none;
}

.create-field-meta .create-field-error {
  flex: 1 1 auto;
  min-width: 0;
}

.create-field-meta [data-char-count] {
  flex-shrink: 0;
  margin-left: auto;
}

.create-stamp-options {
  display: flex;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbb9a4 transparent;
}

.create-stamp-options::-webkit-scrollbar {
  height: 6px;
}

.create-stamp-options::-webkit-scrollbar-track {
  background: transparent;
}

.create-stamp-options::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbb9a4;
  background-clip: padding-box;
}

.create-stamp-options::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-primary-light);
  background-clip: padding-box;
}

.create-stamp-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--color-field-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, border-width 0.15s ease, color 0.15s ease;
}

.create-stamp-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.create-stamp-thumb {
  display: block;
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.create-stamp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-stamp-name {
  color: var(--color-text-tertiary);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.22px;
  white-space: nowrap;
}

.create-stamp-option.is-selected,
.create-stamp-option:has(input:checked) {
  border-width: 1.5px;
  border-color: var(--color-brand-primary-light);
}

.create-stamp-option.is-selected .create-stamp-name,
.create-stamp-option:has(input:checked) .create-stamp-name {
  color: var(--color-brand-primary-light);
}

@media (hover: hover) and (pointer: fine) {
  .create-stamp-option:hover:not(:has(input:checked)) {
    border-color: var(--color-field-border-active);
  }
}

.create-field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  min-height: 20px;
  color: var(--color-text-tertiary);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.22px;
}

.create-form-action {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.create-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 51px;
  padding: 12px 48px;
  background: var(--color-brand-primary);
  border: 0;
  border-radius: 12px;
  color: var(--color-text-cream);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
  line-height: 27px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.create-send:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .create-send:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
  }
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  padding: 12px;
  border-radius: 6px;
  color: var(--color-text-cream);
  box-shadow: -1px 2px 3.65px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.toast.is-in {
  transform: translateX(0);
  opacity: 1;
}

.toast.is-out {
  transform: translateX(120%);
  opacity: 0;
}

.toast--error {
  background: var(--color-status-error);
}

.toast--success {
  background: var(--color-status-success);
}

.toast--warning {
  background: var(--color-status-warning);
}

.toast-icon,
.toast-close img {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-message {
  margin: 0;
  max-width: 320px;
  color: var(--color-text-cream);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  line-height: 23px;
  letter-spacing: 0.075px;
}

.toast-close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.toast-close:hover {
  opacity: 0.75;
}

.site-notice {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(677px, calc(100vw - 32px));
  padding: 24px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--color-field-border);
  border-radius: 8px;
  box-shadow: 2px 4px 14.9px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2.9px);
  -webkit-backdrop-filter: blur(2.9px);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s ease, opacity 0.36s ease;
}

.site-notice.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.site-notice.is-out {
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
}

.site-notice[hidden] {
  display: none !important;
}

.site-notice-copy {
  flex: 1 1 auto;
  width: 400px;
  max-width: 400px;
  min-width: 0;
}

.site-notice-copy p {
  margin: 0;
  width: 100%;
  color: var(--color-text-primary);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.075px;
}

.site-notice-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 12px 48px;
  background: var(--color-brand-primary);
  border: 0;
  border-radius: 12px;
  color: var(--color-text-cream);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
  line-height: 27px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-notice-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
  }
}

.send-success {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(2.9px);
  -webkit-backdrop-filter: blur(2.9px);
}

.send-success[hidden] {
  display: none !important;
}

.send-success-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(426.67px, 100%);
  padding: 48px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--color-field-border);
  border-radius: 16px;
  box-shadow: 2px 4px 14.9px rgba(0, 0, 0, 0.25);
}

.send-success-dialog:focus {
  outline: none;
}

.send-success-close {
  position: absolute;
  top: -1px;
  right: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.send-success-close img {
  display: block;
  width: 24px;
  height: 24px;
}

.send-success-close:hover {
  opacity: 0.7;
}

.send-success-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  overflow: hidden;
  background: transparent;
}

.send-success-art svg {
  display: block;
  width: 140px;
  height: 140px;
}

.send-success-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 331px;
  color: var(--color-text-primary);
  text-align: center;
}

.send-success-dialog h2 {
  margin: 0;
  width: 100%;
  color: var(--color-text-primary);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.send-success-dialog p {
  margin: 0;
  width: 100%;
  color: var(--color-text-primary);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: 0.075px;
  text-align: center;
}

.send-success-link {
  color: var(--color-brand-primary);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  line-height: 23px;
}

.send-success-link[hidden] {
  display: none;
}

.create-preview {
  position: relative;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  flex: 0 0 640px;
  width: 640px;
  max-width: 100%;
}

.create-preview-stage {
  width: 100%;
  perspective: 1600px;
}

.create-card {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 420;
  transform-style: preserve-3d;
  transform-origin: center center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.7s cubic-bezier(0.4, 0.05, 0.2, 1);
}

.create-card.is-flipped {
  transform: rotateY(180deg);
}

.create-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.create-card-front {
  background: var(--color-postcard-empty);
  border: 12px solid #fff;
}

.create-card-front.is-filled {
  background: var(--color-postcard-empty);
}

.create-card-photo {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.create-card-front.is-filled .create-card-photo {
  display: block;
}

.create-card-add {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 33px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.create-card-add img {
  width: 24px;
  height: 24px;
}

.create-card-front.is-filled .create-card-add {
  display: none;
}

.create-card-delete {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 0;
  border-radius: 33px;
  line-height: 0;
  cursor: pointer;
}

.create-card-front.is-filled .create-card-delete {
  display: flex;
}

.create-card-delete img {
  width: 24px;
  height: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .create-card-delete:hover {
    background: rgba(255, 255, 255, 0.9);
  }
}

.create-card-back {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 24px 36px 40px;
  background: #fff;
  transform: rotateY(180deg);
}

.create-card-message {
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
  color: var(--color-postcard-ink);
  font-family: var(--font-gochi);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow: hidden;
}

.create-card-rule {
  width: 0;
  height: 300px;
  flex-shrink: 0;
  border-left: 1px solid var(--color-input-border);
}

.create-card-stamp {
  width: 125px;
  height: 125px;
  flex-shrink: 0;
  object-fit: cover;
}

.create-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .create-card,
  .create-send,
  .toast,
  .site-notice {
    transition: none;
  }

  .create-send:hover:not(:disabled) {
    transform: none;
  }

  .toast,
  .toast.is-out {
    transform: none;
  }

  .site-notice,
  .site-notice.is-out {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 639px) {
  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
    max-width: none;
  }

  .toast {
    width: 100%;
  }

  .site-notice {
    flex-direction: column;
    align-items: stretch;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
    padding: 20px;
    text-align: left;
  }

  .site-notice-copy {
    width: 100%;
    max-width: none;
  }

  .site-notice-btn {
    width: 100%;
  }
}

/* ---------- create postcard popover breakpoints ---------- */
@media (max-width: 1279px) {
  .create-close {
    top: env(safe-area-inset-top, 0px);
    left: max(4px, env(safe-area-inset-left, 0px));
  }

  .create-page {
    padding: calc(48px + env(safe-area-inset-top, 0px)) max(40px, env(safe-area-inset-right, 0px)) 0 max(40px, env(safe-area-inset-left, 0px));
  }

  .create-heading {
    padding: 20px 28px 12px;
  }

  .create-workspace {
    gap: 20px;
    padding-bottom: 40px;
    border-radius: 20px 20px 0 0;
  }

  .create-columns {
    gap: 28px;
    padding: 0 28px;
  }

  .create-preview {
    flex-basis: 520px;
    width: 520px;
  }

  .create-card-front {
    border-width: 10px;
  }

  .create-card-stamp {
    width: 108px;
    height: 108px;
  }

  .create-card-back {
    gap: 20px;
    padding: 28px 20px 28px 32px;
  }

  .create-card-rule {
    height: 70%;
    align-self: center;
  }
}

@media (max-width: 1199px) {
  .create-page {
    padding: calc(48px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px));
  }

  .create-heading {
    padding: 16px 24px 8px;
  }

  .create-workspace {
    gap: 20px;
    padding-bottom: 32px;
    border-radius: 20px 20px 0 0;
  }

  .create-columns {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .create-preview {
    order: -1;
    flex: 0 0 auto;
    align-self: center;
    width: min(480px, 100%);
  }

  .create-form {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: min-content;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .create-field-message {
    flex: 0 0 auto;
    height: auto;
    min-height: 200px;
  }

  .create-field-message textarea {
    min-height: 200px;
  }

  .create-card-stamp {
    width: 96px;
    height: 96px;
  }

  .create-card-back {
    gap: 16px;
    padding: 24px 16px 24px 24px;
  }
}

@media (max-width: 959px) {
  .create-page {
    padding: calc(48px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  }

  .create-heading {
    padding: 16px 20px 8px;
  }

  .create-workspace {
    border-radius: 16px 16px 0 0;
  }

  .create-columns {
    padding: 0 20px;
  }

  .create-preview {
    width: min(400px, 100%);
  }

  .create-form {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .create-popover {
    background: var(--color-bg);
  }

  .create-popover::before {
    display: none;
  }

  .create-close {
    top: env(safe-area-inset-top, 0px);
    right: env(safe-area-inset-right, 0px);
    left: auto;
    color: var(--color-text-primary);
  }

  .create-page {
    padding: 0;
  }

  .create-heading {
    padding: 16px 48px 8px 16px;
  }

  .create-heading h1 {
    font-size: 18px;
    line-height: 24px;
  }

  .create-workspace {
    gap: 16px;
    max-width: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: none;
  }

  .create-columns {
    gap: 16px;
    padding: 0 16px;
  }

  .create-preview {
    width: min(320px, 100%);
  }

  .create-form {
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
  }

  .create-field-message {
    min-height: 180px;
  }

  .create-field-message textarea {
    min-height: 180px;
  }

  .create-stamp-option {
    width: 84px;
    padding: 6px;
  }

  .create-stamp-thumb {
    width: 68px;
    height: 68px;
  }

  .create-send {
    padding: 12px 24px;
  }

  .create-card-front {
    border-width: 8px;
  }

  .create-card-back {
    gap: 12px;
    padding: 20px 12px 20px 20px;
  }

  .create-card-message {
    font-size: 14px;
    line-height: 22px;
  }

  .create-card-stamp {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 479px) {
  .create-page {
    padding: 0;
  }

  .create-heading {
    padding: 14px 48px 8px 12px;
  }

  .create-heading h1 {
    font-size: 18px;
    line-height: 24px;
  }

  .create-heading p {
    font-size: 12px;
    line-height: 17px;
  }

  .create-workspace {
    gap: 12px;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: none;
  }

  .create-columns {
    gap: 16px;
    padding: 0 12px;
  }

  .create-preview {
    width: min(280px, 100%);
  }

  .create-form {
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
  }

  .create-field-message {
    min-height: 160px;
  }

  .create-field-message textarea {
    min-height: 160px;
    padding: 12px;
  }

  .create-field input[type="email"],
  .create-field input[type="text"] {
    padding: 12px;
  }

  .create-field-row {
    flex-direction: column;
  }

  .create-stamp-option {
    width: 76px;
    gap: 6px;
    padding: 6px;
  }

  .create-stamp-thumb {
    width: 60px;
    height: 60px;
  }

  .create-stamp-name {
    font-size: 10px;
    letter-spacing: 0.1px;
  }

  .create-send {
    padding: 10px 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .create-card-front {
    border-width: 6px;
  }

  .create-card-add,
  .create-card-delete {
    padding: 8px;
  }

  .create-card-delete {
    right: 12px;
    bottom: 12px;
  }

  .create-card-stamp {
    width: 64px;
    height: 64px;
  }

  .create-card-back {
    gap: 10px;
    padding: 16px 10px 16px 16px;
  }

  .create-card-message {
    font-size: 13px;
    line-height: 20px;
  }
}

/* ---------- placeholder pages ---------- */
.placeholder-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 64px;
  text-align: center;
}

.placeholder-main h1 {
  margin: 0;
  font-size: 48px;
  line-height: 53px;
  letter-spacing: -1.5px;
}

.placeholder-main p {
  margin: 16px 0 0;
  color: var(--color-text-secondary);
}

@media (max-width: 1100px) {
  .features-title {
    font-size: 32px;
    line-height: 42px;
    letter-spacing: -0.32px;
  }

  .polaroids-title {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.54px;
  }

  .cta-copy h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .features-heading {
    padding: 0 48px;
  }

  .features-cards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-card {
    flex: 1 1 320px;
    max-width: 400px;
  }

  .polaroids-inner {
    flex-wrap: wrap;
    padding: 120px var(--page-gutter);
  }

  .polaroids-copy,
  .polaroids-title,
  .polaroids-lead {
    width: 100%;
    max-width: 560px;
  }

  .polaroids-grid {
    flex: 1 1 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .polaroid {
    max-width: 320px;
    justify-self: center;
  }
}

@media (max-width: 800px) {
  .header {
    padding: 12px 20px;
  }

  .nav-cta {
    padding: 8px 16px;
  }

  .features-inner {
    gap: 28px;
    padding: 80px 24px 64px;
  }

  .features-heading {
    padding: 0;
  }

  .features-title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.28px;
  }

  .polaroids-title {
    font-size: 30px;
    line-height: 38px;
    letter-spacing: -0.45px;
  }

  .features-lead {
    font-size: 18px;
    line-height: 26px;
  }

  .polaroids-inner {
    gap: 48px;
    padding: 80px 24px 64px;
  }

  .polaroids-grid {
    grid-template-columns: 1fr;
  }

  .polaroid-tilt {
    width: 100%;
    max-width: 288px;
    height: auto;
    aspect-ratio: 280 / 200;
  }

  .polaroid-frame {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 280 / 200;
  }

  .cta {
    min-height: 360px;
    padding: 64px 24px;
    gap: 20px;
  }

  .cta-copy h2 {
    font-size: 24px;
    line-height: 30px;
    min-height: 0;
  }

  .cta-copy p {
    min-height: 0;
  }

  .cta-btn {
    padding: 12px 28px;
    white-space: normal;
  }
}

@media (max-width: 479px) {
  .features-title {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.24px;
  }

  .polaroids-title {
    font-size: 26px;
    line-height: 34px;
    letter-spacing: -0.26px;
  }

  .cta-copy h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .send-success-dialog h2 {
    font-size: 20px;
    line-height: 26px;
  }
}

@media (max-width: 700px) {
  .footer {
    height: auto;
    min-height: 0;
    padding: 32px 20px 24px;
    gap: 32px;
  }

  .footer-bottom,
  .footer-links {
    flex-wrap: wrap;
  }

  .footer-links {
    gap: 16px 24px;
  }
}
