:root {
  --bg: #f3eee6;
  --bg-deep: #ede5da;
  --ink: #3d332d;
  --muted: #7d7269;
  --line: rgba(61, 51, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.75), transparent 26%),
    linear-gradient(180deg, #f6f1ea 0%, var(--bg) 100%);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: relative;
  z-index: 20;
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  letter-spacing: .28em;
  font-weight: 600;
}

.desktop-nav {
  display: none;
}

.header-cta {
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(61,51,45,.18);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(14px);
}

.hero {
  width: min(100% - 32px, 1440px);
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: 34px 0 52px;
  display: flex;
  flex-direction: column;
}

.hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(50px, 15vw, 68px);
  line-height: .91;
  letter-spacing: -.035em;
  font-weight: 600;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 24ch;
  font-size: 16px;
  line-height: 1.58;
  color: var(--muted);
}

.app-store-button {
  margin-top: 28px;
  width: fit-content;
  min-width: 0;
  padding: 8px 14px 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.app-store-button small,
.app-store-button strong {
  display: block;
}

.app-store-button small {
  font-size: 10px;
  line-height: 1.1;
  opacity: .92;
  font-weight: 500;
}

.app-store-button strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.01em;
}

.apple-mark {
  width: 28px;
  display: block;
  color: transparent;
  position: relative;
  flex: 0 0 28px;
}

.apple-mark::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  transform: translateY(-56%);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  height: min(130vw, 700px);
  margin-top: 24px;
}

.phone-shell {
  position: absolute;
  z-index: 5;
  width: min(56vw, 268px);
  left: 31%;
  bottom: 0;
  transform: translateX(-50%);
  padding: 7px;
  border-radius: 42px;
  background: linear-gradient(145deg, #161616, #3e3e3e 42%, #050505 74%);
  box-shadow: 0 25px 58px rgba(53,39,31,.24), 0 4px 12px rgba(0,0,0,.25);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 39px;
  pointer-events: none;
}

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

.photo-card {
  position: absolute;
  overflow: hidden;
  border-radius: 22px;
  background: #ddd;
  box-shadow: 0 20px 42px rgba(60,44,34,.14);
  border: 1px solid rgba(255,255,255,.78);
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sunflower-card {
  z-index: 4;
  width: min(30vw, 140px);
  height: min(53.33vw, 249px);
  right: 6%;
  top: 4%;
  transform: rotate(1.5deg);
}

.autumn-card {
  z-index: 3;
  width: min(30vw, 140px);
  height: min(53.33vw, 249px);
  right: 5%;
  top: 45%;
  transform: rotate(-1.2deg);
}

.hero-signature {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #aa978a;
  opacity: .65;
  font-family: "Hurricane", cursive;
  font-size: 46px;
  line-height: .95;
  transform: rotate(-3deg);
  white-space: nowrap;
}

.signature-heart {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-3px) rotate(7deg);
}

.presets-section {
  background: #382c24;
  color: #f7f1ea;
  padding: 72px 0 78px;
  overflow: hidden;
}

.presets-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 20px;
}

.presets-copy {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: .34em;
  font-weight: 600;
  color: #cdbdad;
}

.presets-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 11vw, 58px);
  line-height: .95;
  letter-spacing: -.025em;
  font-weight: 600;
}

.presets-description {
  margin: 18px auto 0;
  max-width: 29ch;
  color: #cdbfb4;
  font-size: 15px;
  line-height: 1.55;
}

.swipe-hint {
  margin: 14px 0 0;
  color: #aa978a;
  font-size: 12px;
  letter-spacing: .04em;
}

.preset-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  margin-top: 32px;
  padding: 0 0 14px;
  scrollbar-width: none;
}

.preset-carousel::-webkit-scrollbar {
  display: none;
}

.preset-card {
  flex: 0 0 78%;
  width: 78%;
  max-width: 330px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  border-radius: 22px;
  background: #46382e;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 46px rgba(0,0,0,.18);
}

.preset-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.preset-card-label {
  padding: 12px 14px 14px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  line-height: 1;
}

.templates-section {
  background: #f5efe7;
  color: var(--ink);
  padding: 72px 0 80px;
  overflow: hidden;
}

.templates-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 20px;
}

.templates-copy {
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}

.templates-kicker {
  margin: 0 0 14px;
  color: #9a897d;
  font-size: 10px;
  letter-spacing: .34em;
  font-weight: 600;
}

.templates-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 11vw, 58px);
  line-height: .95;
  letter-spacing: -.025em;
  font-weight: 600;
}

.templates-description {
  margin: 18px auto 0;
  max-width: 29ch;
  color: #81756d;
  font-size: 15px;
  line-height: 1.55;
}

.templates-swipe-hint {
  margin: 14px 0 0;
  color: #aa978a;
  font-size: 12px;
  letter-spacing: .04em;
}

.template-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  margin-top: 30px;
  padding: 0 0 14px;
  scrollbar-width: none;
}

.template-carousel::-webkit-scrollbar {
  display: none;
}

.template-card {
  flex: 0 0 72%;
  width: 72%;
  max-width: 310px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  border-radius: 22px;
  background: #fffaf4;
  border: 1px solid rgba(61,51,45,.10);
  box-shadow: 0 18px 38px rgba(74,58,48,.11);
}

.template-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.template-card-label {
  padding: 13px 14px 15px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  line-height: 1.05;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 16px calc(34px + env(safe-area-inset-bottom));
  display: grid;
  gap: 24px;
  text-align: center;
  background: #f3eee6;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 720px) {
  .site-header {
    width: min(100% - 72px, 1440px);
    padding-top: 26px;
  }

  .brand {
    font-size: 38px;
  }

  .desktop-nav {
    display: flex;
    gap: 34px;
    font-size: 13px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    width: min(100% - 72px, 1440px);
    min-height: calc(100vh - 88px);
    padding: 56px 0 70px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    align-items: center;
    gap: 42px;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(70px, 6.4vw, 112px);
    line-height: .9;
  }

  .hero-text {
    font-size: 18px;
    max-width: 34ch;
  }

  .app-store-button {
    margin-top: 30px;
    min-width: 0;
  }

  .hero-visual {
    height: min(74vw, 800px);
    margin-top: 0;
  }

  .phone-shell {
    width: min(33vw, 380px);
    left: 29%;
    transform: translateX(-50%);
    border-radius: 52px;
    padding: 9px;
  }

  .phone-shell img {
    border-radius: 43px;
  }

  .sunflower-card {
    width: min(18vw, 205px);
    height: min(32vw, 364px);
    right: 8%;
    top: 4%;
    border-radius: 30px;
    transform: rotate(1.5deg);
  }

  .autumn-card {
    width: min(18vw, 205px);
    height: min(32vw, 364px);
    right: 8%;
    top: 46%;
    border-radius: 30px;
    transform: rotate(-1deg);
  }

  .hero-signature {
    grid-column: 2;
    justify-self: center;
    margin-top: 12px;
    font-size: 52px;
  }

  .signature-heart {
    font-size: 34px;
  }

  .presets-section,
  .templates-section {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .presets-inner,
  .templates-inner {
    padding: 0 36px;
  }

  .presets-copy h2,
  .templates-copy h2 {
    font-size: 62px;
  }

  .preset-card {
    flex-basis: 46%;
  }

  .template-card {
    flex-basis: 44%;
    max-width: 360px;
  }

  .site-footer {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
    padding-left: 36px;
    padding-right: 36px;
  }

  .footer-links {
    justify-content: center;
  }

  .site-footer p {
    text-align: right;
  }
}

@media (min-width: 980px) {
  .presets-section,
  .templates-section {
    padding-top: 94px;
    padding-bottom: 100px;
  }

  .presets-inner,
  .templates-inner {
    width: min(100% - 72px, 1440px);
    padding: 0;
    display: grid;
    grid-template-columns: .62fr 2fr;
    align-items: center;
    gap: 58px;
  }

  .presets-copy,
  .templates-copy {
    margin: 0;
    text-align: left;
  }

  .presets-copy h2,
  .templates-copy h2 {
    font-size: clamp(56px, 5vw, 76px);
  }

  .presets-description,
  .templates-description {
    margin-left: 0;
    margin-right: 0;
  }

  .swipe-hint,
  .templates-swipe-hint {
    display: none;
  }

  .preset-carousel {
    margin-top: 0;
    padding: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .preset-card {
    max-width: none;
    width: auto;
  }

  .template-carousel {
    margin-top: 0;
    padding: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .template-card {
    max-width: none;
    width: auto;
  }
}

@media (min-width: 1180px) {
  .hero {
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
  }

  .hero-visual {
    height: 760px;
  }

  .phone-shell {
    width: 370px;
    left: 29%;
  }

  .sunflower-card {
    width: 195px;
    height: 347px;
    right: 13%;
    top: 5%;
  }

  .autumn-card {
    width: 195px;
    height: 347px;
    right: 13%;
    top: 51%;
  }

  .hero-signature {
    margin-top: 18px;
    font-size: 56px;
  }
}
