:root {
  color-scheme: light;
  --background: #f4f1ed;
  --surface: #ffffff;
  --surface-elevated: #faf8f5;
  --surface-muted: #eae7e3;
  --ink: #1f1c1a;
  --muted: #6e6863;
  --tertiary: #9f9994;
  --line: #d6d0ca;
  --border: #c7c1bb;
  --accent: #855214;
  --accent-strong: #6d3f0a;
  --accent-fill: #f9dfbd;
  --success: #2e7a54;
  --birthday: #08a3cc;
  --birthday-dark: #005c73;
  --valentine: #ba381f;
  --christmas: #0da923;
  --kings: #613da8;
  --anniversary: #e0a314;
  --shadow: 0 24px 70px rgba(31, 24, 18, 0.12);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #0e0d0c;
  --surface: #1d1b19;
  --surface-elevated: #282421;
  --surface-muted: #302c2a;
  --ink: #f5efe8;
  --muted: #bdb3a9;
  --tertiary: #918982;
  --line: #413c38;
  --border: #514b46;
  --accent: #f0aa57;
  --accent-strong: #ffc477;
  --accent-fill: #4a341d;
  --success: #64c68c;
  --birthday: #40c7f0;
  --birthday-dark: #61d6f6;
  --valentine: #fa6b57;
  --christmas: #47c75e;
  --kings: #a984f2;
  --anniversary: #f5ba3d;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--background);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 12px max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%);
  background: color-mix(in srgb, var(--background), transparent 10%);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  width: max-content;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  aspect-ratio: 1;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(36, 29, 22, 0.16);
}

.brand small {
  color: var(--tertiary);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.language-button {
  font-family: var(--mono);
  font-size: 0.68rem;
}

.theme-button {
  font-size: 1rem;
}

.nav-cta,
.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.nav-cta {
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
}

.hero {
  position: relative;
  min-height: min(940px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 140px max(24px, calc((100vw - var(--content)) / 2)) 110px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 1px;
  background: var(--line);
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/danaus-icon.png") center 42% / cover no-repeat;
  opacity: 0.16;
}

html[data-theme="dark"] .hero-art {
  background-image: url("assets/danaus-icon-dark.png");
}

html[data-theme="dark"] .brand img,
html[data-theme="dark"] .closing-icon img {
  content: url("assets/danaus-icon-dark.png");
}

.hero-content {
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.4rem, 6.8vw, 6.8rem);
  line-height: 0.93;
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  padding: 0 20px;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.nav-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-meta {
  margin: 18px 0 0;
  color: var(--tertiary);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.6;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
}

.occasion-strip {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-elevated);
  scrollbar-width: none;
}

.occasion-strip::-webkit-scrollbar {
  display: none;
}

.occasion {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
}

.occasion::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.occasion.birthday { color: var(--birthday-dark); }
.occasion.anniversary { color: var(--accent); }
.occasion.valentine { color: var(--valentine); }
.occasion.christmas { color: var(--christmas); }
.occasion.kings { color: var(--kings); }

.section,
.product-section,
.privacy-section,
.closing-section,
.site-footer {
  padding-right: max(24px, calc((100vw - var(--content)) / 2));
  padding-left: max(24px, calc((100vw - var(--content)) / 2));
}

.section {
  padding-top: 130px;
  padding-bottom: 130px;
}

.section-heading {
  max-width: 810px;
}

.section-heading.compact {
  max-width: 720px;
}

.section-heading h2,
.product-copy h2,
.privacy-copy h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 5.3rem);
  line-height: 0.98;
}

.section-heading > p:last-child,
.product-copy > p,
.privacy-copy > p,
.closing-section > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.steps article {
  min-height: 315px;
  padding: 34px;
  background: var(--background);
}

.step-number {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.steps h3,
.feature-list h3 {
  margin: 62px 0 10px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
}

.steps p,
.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-section {
  min-height: 900px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(430px, 1.16fr);
  align-items: center;
  gap: 80px;
  padding-top: 110px;
  padding-bottom: 110px;
  overflow: hidden;
  background: var(--surface-elevated);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 25px;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.phone-stage {
  min-height: 690px;
  display: grid;
  place-items: center;
  perspective: 1200px;
  margin: 0;
}

.iphone-device {
  position: relative;
  z-index: 0;
  width: min(414px, 88vw);
  padding: 9px;
  border: 1px solid #4c4b49;
  border-radius: 65px;
  background:
    linear-gradient(115deg, #242422 0%, #77736e 18%, #1c1c1b 30%, #121211 73%, #65615d 88%, #20201f 100%);
  box-shadow:
    0 50px 110px rgba(32, 24, 17, 0.28),
    0 18px 38px rgba(32, 24, 17, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transform: rotate(1.5deg);
}

.iphone-device::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  width: 31%;
  height: 31px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #050505;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.iphone-device::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3% 5% -3%;
  border-radius: 50%;
  background: rgba(166, 112, 20, 0.17);
  filter: blur(38px);
}

.iphone-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid #0a0a09;
  border-radius: 55px;
  background: #f7f3ee;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.iphone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.device-button {
  position: absolute;
  z-index: -1;
  width: 5px;
  border: 1px solid #343331;
  background: linear-gradient(90deg, #181817, #77736f 54%, #212120);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

.device-button-action {
  top: 126px;
  left: -5px;
  height: 31px;
  border-radius: 4px 0 0 4px;
}

.device-button-volume-up {
  top: 184px;
  left: -5px;
  height: 63px;
  border-radius: 5px 0 0 5px;
}

.device-button-volume-down {
  top: 262px;
  left: -5px;
  height: 63px;
  border-radius: 5px 0 0 5px;
}

.device-button-power {
  top: 205px;
  right: -5px;
  height: 98px;
  border-radius: 0 5px 5px 0;
}

.people-section {
  border-bottom: 1px solid var(--line);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 80px;
  border-top: 1px solid var(--line);
}

.feature-list article {
  position: relative;
  min-height: 270px;
  padding: 34px 38px;
  border-bottom: 1px solid var(--line);
}

.feature-list article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.feature-mark {
  position: absolute;
  top: 36px;
  right: 38px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.birthday-mark { background: var(--birthday); }
.valentine-mark { background: var(--valentine); }
.kings-mark { background: var(--kings); }
.anniversary-mark { background: var(--anniversary); }

.feature-list h3 {
  margin-top: 62px;
}

.privacy-section {
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 100px;
  padding-top: 120px;
  padding-bottom: 120px;
  background: #123c3d;
  color: #f8f2ea;
}

.privacy-copy {
  max-width: 660px;
}

.privacy-copy .eyebrow {
  color: #efb66e;
}

.privacy-copy > p,
.privacy-facts p {
  color: #c8d5d1;
}

.privacy-visual {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.privacy-visual img {
  width: 78%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(-3deg);
}

.privacy-facts {
  display: grid;
  gap: 17px;
  margin-top: 32px;
}

.privacy-facts p {
  margin: 0;
  line-height: 1.55;
}

.privacy-facts strong {
  color: #fff;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  color: #efb66e;
  font-weight: 700;
  text-decoration: none;
}

.faq-section {
  background: var(--surface-elevated);
}

.faq-list {
  margin-top: 65px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 27px 48px 27px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 790px;
  margin: -8px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

.closing-section {
  min-height: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: center;
}

.closing-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 34px;
}

.closing-icon picture {
  width: 100%;
  height: 100%;
  display: block;
}

.closing-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1;
  border-radius: 29px;
  box-shadow: var(--shadow);
}

.closing-section h2 {
  max-width: 780px;
}

.closing-section > p {
  max-width: 650px;
}

.closing-section .primary-button {
  margin-top: 30px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(150px, 0.65fr) minmax(150px, 0.65fr);
  gap: 70px;
  padding-top: 70px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  background: var(--surface-elevated);
}

.footer-brand p {
  max-width: 410px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-brand p + p {
  margin-top: 8px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links h3 {
  margin: 0 0 5px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--tertiary);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.document-page {
  min-height: 100vh;
  padding: 145px max(24px, calc((100vw - 860px) / 2)) 100px;
}

.document-header {
  margin-bottom: 55px;
}

.document-header h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.document-header > p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.document {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin: 48px 0 12px;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
}

.document p,
.document li {
  color: var(--muted);
  line-height: 1.75;
}

.document strong {
  color: var(--ink);
}

.document ul,
.document ol {
  padding-left: 1.35rem;
}

.document .primary-button {
  margin-top: 18px;
}

.document-meta {
  color: var(--tertiary);
  font-family: var(--mono);
  font-size: 0.72rem;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 25%);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 900px;
    align-items: start;
    padding-top: 145px;
  }

  .hero-content {
    width: min(820px, 100%);
  }

  .hero-art {
    inset: 0;
    width: auto;
    transform: none;
    opacity: 0.15;
  }

  .product-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .product-section {
    gap: 60px;
  }

  .privacy-section {
    gap: 30px;
  }

  .privacy-visual {
    width: min(330px, 72vw);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .site-nav {
    min-height: 64px;
    padding: 10px 18px;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 850px;
    padding: 120px 22px 80px;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .hero-art {
    right: 0;
    bottom: 0;
    width: auto;
    opacity: 0.13;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .occasion-strip {
    justify-content: flex-start;
  }

  .section,
  .product-section,
  .privacy-section,
  .closing-section,
  .site-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .section-heading h2,
  .product-copy h2,
  .privacy-copy h2,
  .closing-section h2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .steps,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: 250px;
  }

  .feature-list article:nth-child(odd) {
    border-right: 0;
  }

  .product-section {
    min-height: 0;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .phone-stage {
    min-height: 650px;
  }

  .iphone-device {
    width: min(390px, 86vw);
    border-radius: 59px;
    transform: none;
  }

  .iphone-screen {
    border-radius: 50px;
  }

  .privacy-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .privacy-visual {
    width: min(280px, 78vw);
  }

  .closing-section {
    min-height: 680px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 44px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-page {
    padding: 118px 22px 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
