:root {
  color-scheme: light dark;
  --paper: #f2efea;
  --paper-soft: #faf8f4;
  --ink: #2b2724;
  --muted: #665f58;
  --line: #d6cfc5;
  --lilac: #dccff6;
  --peach: #f9ddca;
  --mint: #8fd8c0;
  --berry: #8e3b4c;
  --shadow: 0 16px 50px rgb(70 54 42 / 12%);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgb(220 207 246 / 18%), transparent 20%, transparent 80%, rgb(249 221 202 / 22%)),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--ink);
  background: var(--paper-soft);
  transform: translateY(-180%);
}

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

.site-header {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(43 39 36 / 12%);
  border-radius: 12px;
  box-shadow: 0 5px 16px rgb(43 39 36 / 12%);
}

.site-header nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.site-header nav a,
.footer-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-header nav a:hover,
.footer-links a:hover,
.text-link:hover {
  text-decoration: underline;
}

.language-banner {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--berry);
  border-radius: 8px;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.language-banner[hidden] {
  display: none;
}

.language-banner p {
  margin: 0;
}

.language-banner a {
  font-weight: 750;
}

.language-banner button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

main {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.hero {
  min-height: 660px;
  padding-block: 2.4rem 4.2rem;
  display: grid;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 600px;
}

.hero-icon {
  width: 92px;
  height: 92px;
  margin-block-end: 1.5rem;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-block-end: 0.55rem;
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-block-end: 0.6rem;
  font-family: ui-serif, Georgia, serif;
  font-size: 2.85rem;
  font-style: italic;
  font-weight: 700;
}

.subtitle {
  margin-block-end: 1rem;
  font-size: 1.25rem;
  font-weight: 730;
}

.hero-intro {
  max-width: 35rem;
  margin-block-end: 1.5rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-pill {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-soft);
  font-weight: 760;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 0 rgb(43 39 36 / 12%);
}

.store-pill:hover {
  transform: translateY(-2px);
}

.store-pill--wait {
  border-style: dashed;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  cursor: default;
}

.store-pill--wait:hover {
  transform: none;
}

.phone-stage {
  justify-self: center;
  width: min(100%, 330px);
  padding: 1.3rem;
  border: 2px dashed rgb(142 59 76 / 44%);
  border-radius: 48% 48% 36px 36px;
  background: linear-gradient(145deg, var(--lilac), var(--peach));
}

.phone-frame {
  position: relative;
  width: min(100%, 268px);
  margin-inline: auto;
  overflow: hidden;
  border: 8px solid #302b27;
  border-radius: 32px;
  background: #302b27;
  box-shadow: 0 22px 50px rgb(43 39 36 / 30%);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 23px;
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  inset-block-start: 8px;
  inset-inline-start: 50%;
  width: 70px;
  height: 16px;
  border-radius: 999px;
  background: #302b27;
  transform: translateX(-50%);
}

[dir="rtl"] .phone-speaker {
  transform: translateX(50%);
}

.features-section {
  margin-inline: calc(50% - 50vw);
  padding: 3.8rem max(1rem, calc((100vw - var(--content)) / 2));
  background: var(--paper-soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 650px;
  margin-block-end: 2rem;
}

.section-heading h2,
.species-section h2,
.closing-section h2 {
  margin-block-end: 0.7rem;
  font-family: ui-serif, Georgia, serif;
  font-size: 2rem;
  font-style: italic;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature {
  position: relative;
  min-height: 205px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgb(70 54 42 / 7%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 30px rgb(70 54 42 / 11%);
}

.stitch-mark {
  display: block;
  width: 37px;
  height: 37px;
  margin-block-end: 1.15rem;
  border: 2px dashed var(--berry);
  border-radius: 50%;
  background: var(--lilac);
  box-shadow: inset 0 0 0 5px var(--paper);
}

.feature--species .stitch-mark,
.feature--wardrobe .stitch-mark {
  background: var(--mint);
}

.feature--bubble .stitch-mark,
.feature--private .stitch-mark {
  background: var(--peach);
}

.feature h3 {
  margin-block-end: 0.55rem;
  font-size: 1.08rem;
}

.feature p,
.species-copy p,
.closing-section p {
  margin: 0;
  color: var(--muted);
}

.species-section {
  padding-block: 4.2rem;
  display: grid;
  gap: 2rem;
}

.species-copy {
  max-width: 530px;
}

.species-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  list-style: none;
}

.species-list li {
  min-height: 54px;
  padding: 0.75rem 1rem;
  border-block-end: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 680;
}

.species-number {
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 800;
}

.closing-section {
  margin-block-end: 4.5rem;
  padding: 1.5rem;
  border: 2px dashed var(--berry);
  border-radius: 8px;
  background: linear-gradient(120deg, var(--lilac), var(--peach));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.closing-section p {
  color: var(--ink);
}

.policy-page,
.support-page,
.not-found {
  padding-block: 2.2rem 4.5rem;
}

.policy-article,
.support-page,
.not-found {
  max-width: 780px;
}

.page-heading {
  padding-block-end: 1.5rem;
  border-block-end: 1px dashed var(--line);
  margin-block-end: 1.7rem;
}

.page-heading h1 {
  font-size: 2.5rem;
}

.page-heading > p:last-child,
.support-heading > p:last-child {
  color: var(--muted);
  margin-block-end: 0;
}

.effective-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-intro {
  color: var(--muted);
  margin-block-end: 0;
  font-size: 1.03rem;
}

.policy-section {
  padding-inline-start: 1rem;
  margin-block-end: 2rem;
  border-inline-start: 3px solid var(--lilac);
}

.policy-section h2 {
  margin-block-end: 0.55rem;
  font-size: 1.1rem;
}

.policy-section p {
  color: var(--muted);
}

.policy-section p:last-child {
  margin-block-end: 0;
}

.text-link {
  color: var(--berry);
  font-weight: 750;
}

.support-heading {
  border: 0;
  padding: 0;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.faq summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 720;
  list-style-position: inside;
}

.faq p {
  padding: 0 1.15rem 1.15rem;
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  margin-block-start: 2.2rem;
  padding: 1.25rem;
  border: 2px dashed var(--berry);
  border-radius: 8px;
  background: linear-gradient(125deg, var(--peach), var(--lilac));
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-panel h2 {
  margin-block-end: 0.45rem;
  font-size: 1.35rem;
}

.contact-panel p {
  margin-block-end: 0;
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.contact-action > span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-link {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.email-pending {
  font-weight: 680;
}

.not-found {
  margin-block: 10vh;
  padding: 2rem;
  border: 2px dashed var(--berry);
  border-radius: 8px;
  background: var(--paper-soft);
}

.not-found .store-pill {
  margin-block-start: 1rem;
}

.site-footer {
  margin-block-start: auto;
  border-block-start: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper-soft);
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
}

.language-picker {
  position: relative;
  width: 100%;
}

.language-picker summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 700;
}

.language-menu {
  position: absolute;
  z-index: 10;
  inset-block-end: calc(100% + 0.5rem);
  inset-inline-start: 0;
  width: min(290px, calc(100vw - 2rem));
  max-height: 19rem;
  overflow: auto;
  padding: 0.65rem;
  border: 1px solid #635c55;
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.1rem;
}

.language-menu a {
  padding: 0.42rem 0.55rem;
  border-radius: 5px;
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  background: var(--lilac);
}

@media (min-width: 620px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .species-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-section,
  .contact-panel {
    padding: 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .closing-section > div,
  .contact-panel > div {
    max-width: 620px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .language-picker {
    width: auto;
  }
}

@media (min-width: 900px) {
  .hero {
    min-height: 720px;
  }

  h1 {
    font-size: 4.15rem;
  }

  .subtitle {
    font-size: 1.45rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .species-section {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .species-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #2a3550;
    --paper-soft: #313c59;
    --ink: #f7f1e8;
    --muted: #d3ccd8;
    --line: #5e5b78;
    --lilac: #5a4a80;
    --peach: #76545e;
    --mint: #6bb8a4;
    --berry: #ffb8c4;
    --shadow: 0 16px 50px rgb(0 0 0 / 24%);
  }

  body {
    background:
      linear-gradient(130deg, rgb(59 52 102 / 65%), transparent 45%),
      linear-gradient(30deg, rgb(118 84 94 / 35%), transparent 44%),
      var(--paper);
  }

  .phone-stage {
    background: linear-gradient(145deg, #3b3466, #2a3550);
  }

  .store-pill {
    background: var(--ink);
    color: #2a3550;
  }

  .store-pill--wait {
    background: transparent;
    color: var(--ink);
  }

  .site-footer {
    background: #202840;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .feature:hover,
  .store-pill:hover {
    transform: none;
  }
}
