:root {
  --ink: #151326;
  --muted: #6d6477;
  --paper: #fff7ee;
  --panel: #ffffff;
  --line: #eadfec;
  --sage: #13a68c;
  --rose: #ff6f91;
  --gold: #ffc857;
  --blue: #3b82f6;
  --berry: #9b2cff;
  --coral: #ff7a59;
  --aqua: #12c7b8;
  --shadow: 0 24px 80px rgba(21, 19, 38, 0.16);
  --soft-radius: 24px;
  --surface-radius: 18px;
  --pill-radius: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 111, 145, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(18, 199, 184, 0.18), transparent 24rem),
    linear-gradient(135deg, #fff7ee 0%, #fff1f7 48%, #eefcff 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.home-shell {
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero,
.upload-shell,
.admin-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1,
.event-panel h1,
.admin-header h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.primary-link,
.primary-button,
.secondary-button {
  min-height: 52px;
  border: 0;
  border-radius: var(--pill-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--rose) 48%, var(--coral));
  box-shadow: 0 14px 36px rgba(155, 44, 255, 0.24);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.secondary-button {
  color: var(--ink);
  background: #fff0f5;
}

.phone-preview {
  aspect-ratio: 0.58;
  max-height: 720px;
  border: 10px solid var(--ink);
  border-radius: 36px;
  padding: 22px;
  background: #f7f1ec;
  box-shadow: var(--shadow);
}

.preview-top,
.preview-card,
.preview-grid div {
  border-radius: 8px;
}

.preview-top {
  width: 42%;
  height: 8px;
  margin: 0 auto 28px;
  background: var(--ink);
}

.preview-card.large {
  height: 52%;
  background:
    linear-gradient(150deg, rgba(155, 44, 255, 0.42), transparent),
    linear-gradient(30deg, #ffd1dc, #baf7ef);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.preview-grid div {
  aspect-ratio: 1;
  background: #fff;
}

.upload-shell {
  min-height: 100vh;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.62fr);
  gap: 28px;
  align-items: center;
}

.event-panel,
.uploader,
.status-panel,
.qr-card {
  border: 1px solid rgba(225, 230, 222, 0.92);
  border-radius: var(--soft-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.event-panel {
  min-height: 620px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(21, 19, 38, 0.08) 0%, rgba(255, 255, 255, 0.92) 72%),
    url("/static/media/hero-event-memories.png");
  background-size: cover;
  background-position: center;
}

.uploader,
.status-panel {
  padding: 20px;
}

.drop-zone {
  position: relative;
  min-height: 300px;
  border: 1.5px dashed #bdc8bd;
  border-radius: 22px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), #fbfaf6),
    #fbfaf6;
}

.drop-zone .file-input-control {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0.01;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.drop-icon,
.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 36px;
  font-weight: 300;
}

.drop-zone h2,
.status-panel h2,
.qr-card h2 {
  margin: 12px 0 4px;
  font-size: 24px;
}

.drop-zone p,
.fine-print,
.qr-card p {
  color: var(--muted);
}

.pin-field {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-weight: 800;
}

.pin-field input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #fff;
}

.file-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.file-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.file-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.file-row strong,
.file-row span {
  display: block;
  overflow-wrap: anywhere;
}

.file-row span {
  color: var(--muted);
  font-size: 13px;
}

.file-row button {
  border: 0;
  color: var(--berry);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.uploader > .primary-button {
  width: 100%;
}

.fine-print {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.status-panel {
  text-align: center;
}

.status-panel .success-mark {
  margin: 18px auto 0;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
}

.admin-shell {
  padding: 48px 0;
}

.admin-header {
  margin-bottom: 24px;
}

.qr-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.qr-card img {
  width: 100%;
  border-radius: 20px;
}

.product-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 200, 87, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(18, 199, 184, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff7ee 0%, #fff3f9 52%, #f0fffc 100%);
}

.site-nav {
  width: min(1120px, calc(100vw - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-nav {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 5;
  transform: translateX(-50%);
  color: #fff;
}

.brand {
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  gap: 18px;
}

.site-nav nav a {
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  opacity: 0.86;
}

.mobile-menu {
  display: none;
}

.quiet-intro,
.create-section,
.pricing-section,
.owner-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.product-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #111713;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 11, 0.86) 0%, rgba(10, 13, 11, 0.58) 42%, rgba(10, 13, 11, 0.18) 100%),
    linear-gradient(0deg, rgba(21, 19, 38, 0.9) 0%, transparent 38%),
    radial-gradient(circle at 22% 42%, rgba(155, 44, 255, 0.22), transparent 30rem);
}

.premium-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 104px;
}

.product-hero .eyebrow {
  color: #ffd1dc;
}

.product-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(58px, 8vw, 124px);
  line-height: 0.88;
}

.product-hero .lede {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.product-hero .primary-link {
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #fff0f5);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.ghost-link {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--pill-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.quiet-intro {
  padding: 56px 0 18px;
}

.quiet-intro p {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.08;
}

.quiet-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quiet-points span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 27, 0.12);
  border-radius: var(--pill-radius);
  padding: 0 14px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 200, 87, 0.18));
  font-size: 14px;
  font-weight: 900;
}

.pricing-section {
  padding: 0 0 84px;
}

.pricing-intro {
  max-width: 720px;
  margin-bottom: 22px;
}

.pricing-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
}

.pricing-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.pricing-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.pricing-band article,
.event-form,
.owner-card {
  border: 1px solid rgba(234, 223, 236, 0.72);
  border-radius: var(--surface-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 36px rgba(23, 32, 27, 0.08);
}

.standout-section {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 78px 0 68px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.standout-section h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
}

.standout-grid {
  display: grid;
  gap: 14px;
}

.standout-grid article {
  border: 1px solid rgba(234, 223, 236, 0.88);
  border-radius: var(--surface-radius);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 245, 0.82));
  box-shadow: 0 12px 36px rgba(23, 32, 27, 0.08);
}

.standout-grid article span {
  color: var(--berry);
  font-size: 12px;
  font-weight: 900;
}

.standout-grid h3 {
  margin: 8px 0;
  font-size: 24px;
}

.standout-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.create-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 76px 0 84px;
}

.create-section h2,
.pricing-band h2,
.owner-card h2 {
  margin: 0;
  font-size: 34px;
}

.event-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 245, 0.72)),
    rgba(255, 255, 255, 0.82);
}

.event-form label,
.event-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
}

.event-form label span,
.event-form legend {
  color: var(--ink);
  font-weight: 900;
}

.event-form input[type="text"],
.event-form input[type="date"],
.event-form input:not([type]) {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #fff;
}

.event-form fieldset {
  border: 0;
  padding: 0;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-options label {
  position: relative;
}

.theme-options input {
  position: absolute;
  opacity: 0;
}

.theme-options span {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--pill-radius);
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #fff;
}

.theme-options input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--berry), var(--rose));
}

.pricing-band article {
  padding: 26px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 209, 220, 0.34)),
    radial-gradient(circle at 95% 20%, rgba(18, 199, 184, 0.24), transparent 18rem);
}

.pricing-band article.featured-price {
  border-color: rgba(155, 44, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 209, 220, 0.42)),
    radial-gradient(circle at 90% 12%, rgba(155, 44, 255, 0.2), transparent 18rem),
    radial-gradient(circle at 10% 90%, rgba(18, 199, 184, 0.18), transparent 16rem);
  box-shadow: 0 22px 54px rgba(155, 44, 255, 0.16);
}

.pricing-band h3 {
  margin: 0;
  font-size: 30px;
}

.price {
  margin: 14px 0;
  font-size: 54px;
  font-weight: 900;
  color: var(--berry);
}

.pricing-band article > p:not(.eyebrow):not(.price) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-band ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-band li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  line-height: 1.35;
}

.pricing-band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--berry), var(--coral));
}

.created-dialog {
  width: min(560px, calc(100vw - 24px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.created-dialog::backdrop {
  background: rgba(23, 32, 27, 0.42);
  backdrop-filter: blur(6px);
}

.dialog-body {
  padding: 28px;
}

.dialog-body h2 {
  margin: 0;
  font-size: 32px;
}

.dialog-body p {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 111, 145, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(18, 199, 184, 0.16), transparent 24rem),
    linear-gradient(135deg, #fff7ee 0%, #fff3f9 52%, #f0fffc 100%);
}

.owner-shell {
  min-height: 100vh;
  padding: 44px 0;
}

.owner-hero {
  margin-bottom: 24px;
}

.owner-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
}

.owner-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.owner-grid .qr-card {
  grid-row: span 2;
}

.owner-card {
  padding: 24px;
}

.owner-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.owner-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.share-copy {
  border-left: 4px solid var(--coral);
  border-radius: 0 16px 16px 0;
  padding: 12px 12px 12px 14px;
  color: var(--ink);
  background: #fff;
  overflow-wrap: anywhere;
}

.privacy-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.theme-editorial .event-panel {
  background:
    linear-gradient(180deg, rgba(23, 32, 27, 0.12) 0%, rgba(255, 255, 255, 0.91) 72%),
    url("/static/media/hero-event-memories.png");
  background-size: cover;
  background-position: center;
}

.theme-coastal .event-panel {
  background:
    linear-gradient(180deg, rgba(66, 109, 143, 0.12) 0%, rgba(255, 255, 255, 0.91) 72%),
    url("/static/media/hero-event-memories.png");
  background-size: cover;
  background-position: center;
}

@media (max-width: 820px) {
  .hero,
  .upload-shell,
  .qr-card,
  .product-hero,
  .create-section,
  .standout-section,
  .quiet-intro,
  .pricing-section,
  .pricing-band,
  .owner-grid {
    grid-template-columns: 1fr;
  }

  .home-shell,
  .upload-shell {
    padding: 16px 0;
  }

  .hero {
    min-height: auto;
    gap: 24px;
  }

  .hero-copy h1,
  .event-panel h1,
  .admin-header h1 {
    font-size: 58px;
  }

  .event-panel {
    min-height: 420px;
    padding: 28px;
  }

  .phone-preview {
    display: none;
  }

  .event-mockup {
    min-height: auto;
  }

  .hero-photo {
    height: 260px;
  }

  .recovery-card {
    margin-top: 12px;
    margin-left: 0;
    width: 100%;
  }

  .lede {
    font-size: 18px;
  }

  .quiet-intro {
    padding-top: 38px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    width: calc(100vw - 24px);
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
    padding: 12px 0;
  }

  .premium-nav {
    align-content: flex-start;
  }

  .site-nav nav {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav nav a {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    opacity: 1;
    white-space: nowrap;
  }

  .marketing-nav {
    position: absolute;
    height: 72px;
    min-height: 72px;
    flex-wrap: nowrap;
    align-content: center;
    padding: 0;
  }

  .marketing-nav > nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: rgba(18, 24, 22, 0.28);
    color: inherit;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-menu[open] summary span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu[open] summary span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu[open] summary span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    padding: 10px;
    background: rgba(21, 28, 25, 0.94);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
  }

  .mobile-menu nav a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-menu nav a:first-child {
    border-color: transparent;
    background: #fff;
    color: #17201b;
  }

  .hero,
  .upload-shell,
  .admin-shell {
    width: min(100% - 20px, 1120px);
  }

  .event-panel {
    min-height: 360px;
  }

  .hero-copy h1,
  .event-panel h1,
  .admin-header h1 {
    font-size: 46px;
  }

  .file-row {
    grid-template-columns: 48px 1fr;
  }

  .file-row button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .product-hero h1 {
    font-size: 48px;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .pricing-band article {
    min-height: auto;
  }
}
