:root {
  color-scheme: light;
  --ink: #143844;
  --ink-strong: #071f27;
  --muted: #667985;
  --paper: #fffaf1;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: #f6f1e8;
  --surface-mint: #eef7f4;
  --foam: #edf8f5;
  --blue: #44a7b7;
  --blue-dark: #123d49;
  --coral: #ff6876;
  --gold: #e2b943;
  --green: #6ea979;
  --line: rgba(20, 56, 68, 0.14);
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 16px 42px rgba(15, 46, 55, 0.12);
  font-family:
    "M PLUS 1p", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #ffffff;
  letter-spacing: 0;
}

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94em;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 760px;
  color: var(--ink-strong);
  font-size: 46px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

h3 {
  color: var(--ink-strong);
  font-size: 23px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 56px;
  color: var(--ink-strong);
  background: linear-gradient(to bottom, rgba(255, 250, 241, 0.92), rgba(255, 250, 241, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 52px;
  object-fit: contain;
  padding: 5px;
  border-radius: var(--radius-md);
  background: rgba(237, 248, 245, 0.92);
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  font-weight: 900;
}

.site-nav a {
  opacity: 0.82;
}

.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--ink);
  opacity: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.hero__image,
.install__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.95) 0%, rgba(255, 250, 241, 0.78) 42%, rgba(255, 250, 241, 0.2) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 18%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1210px, calc(100% - 72px));
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 0.98fr);
  gap: 44px;
  align-items: center;
  margin: 0 auto;
  padding: 112px 0 68px;
}

.hero__copy {
  max-width: 640px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--ink-strong);
  font-size: 64px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero__lead {
  max-width: 610px;
  color: #45616c;
  font-size: 20px;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.store-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.store-button img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.store-button--app-store img {
  height: 56px;
}

.store-button--google-play img {
  height: 56px;
}

.store-button:focus-visible {
  outline: 3px solid rgba(68, 167, 183, 0.5);
  outline-offset: 4px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  color: #6b7e88;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__points li::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--coral);
}

.hero__screens {
  position: relative;
  min-height: 720px;
}

.phone {
  position: relative;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 42px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.phone::before {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 74px;
  height: 18px;
  content: "";
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
}

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

.phone--primary {
  position: absolute;
  right: 88px;
  top: 8px;
  width: 300px;
  height: 666px;
  transform: rotate(5deg);
}

.phone--secondary {
  position: absolute;
  right: 332px;
  top: 132px;
  width: 256px;
  height: 568px;
  transform: rotate(-8deg);
}

.section {
  padding: 112px 0;
}

.section__inner {
  width: min(1120px, calc(100% - 72px));
  margin: 0 auto;
}

.problem {
  background: #ffffff;
}

.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 72px;
  align-items: center;
}

.problem__grid {
  align-items: start;
}

.problem__list {
  display: grid;
  gap: 12px;
}

.problem__visual {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.problem__art {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: 0 14px 34px rgba(20, 56, 68, 0.08);
}

.problem__art img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.problem__list p {
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 800;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.value {
  background: linear-gradient(180deg, var(--foam), #ffffff);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
  min-width: 0;
}

.value-item {
  min-width: 0;
  min-height: 390px;
  padding: 18px 22px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.value-item__media {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--surface-soft);
  aspect-ratio: 4 / 3;
}

.value-item__illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.value-item__number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.value-item h3 {
  margin-bottom: 10px;
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading p:last-child {
  max-width: 520px;
  margin-top: 20px;
}

.product-step {
  background: #ffffff;
}

.product-step--alt {
  background:
    linear-gradient(180deg, rgba(237, 248, 245, 0.72), rgba(255, 255, 255, 1)),
    #edf8f5;
}

.product-step--request {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.88), rgba(255, 255, 255, 1)),
    #fffaf1;
}

.product-step__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.76fr);
  gap: 84px;
  align-items: center;
}

.product-step--alt .product-step__copy {
  order: 2;
}

.product-step--alt .phone--showcase {
  order: 1;
  margin-right: 0;
  margin-left: auto;
}

.product-step__copy {
  max-width: 620px;
}

.product-step__copy p:last-child {
  max-width: 560px;
  margin-top: 20px;
}

.product-step__note {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(226, 185, 67, 0.16);
  color: var(--ink);
  font-weight: 800;
}

.phone--showcase {
  width: min(340px, 100%);
  aspect-ratio: 9 / 20;
  margin-right: auto;
  margin-left: 0;
  border-width: 9px;
  box-shadow: 0 24px 58px rgba(20, 56, 68, 0.18);
}

.phone--showcase::before {
  top: 7px;
  width: 54px;
  height: 13px;
}

.note {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(226, 185, 67, 0.16);
  color: var(--ink);
  font-weight: 800;
}

.install {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 520px;
  display: grid;
  align-items: center;
  color: #ffffff;
  background: var(--ink);
}

.install__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 48, 58, 0.92), rgba(12, 48, 58, 0.6), rgba(12, 48, 58, 0.36));
}

.install__inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 72px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  margin: 0 auto;
  padding: 88px 0;
}

.install h2,
.install p {
  color: #ffffff;
}

.install p {
  max-width: 620px;
  margin-top: 18px;
}

.install__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.faq {
  background: #ffffff;
}

.faq h2 {
  margin-bottom: 34px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.faq-list details[open] {
  background: var(--surface-mint);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 900;
}

.faq-list details p {
  padding: 0 22px 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 56px;
  color: rgba(20, 56, 68, 0.72);
  font-size: 14px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 14px 34px rgba(24, 50, 60, 0.16);
}

.button--primary {
  color: #ffffff;
  background: var(--coral);
}

.button--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.invite-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.5), rgba(255, 250, 241, 0.98)),
    url("./assets/bottlewish-hero.png") center / cover fixed;
}

.invite-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.invite-card {
  width: min(560px, 100%);
  padding: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.invite-card__bottle {
  width: 84px;
  margin: 0 auto 18px;
}

.invite-card h1 {
  margin-bottom: 14px;
  color: var(--ink-strong);
  font-size: 38px;
  line-height: 1.18;
}

.invite-card p {
  margin-right: auto;
  margin-left: auto;
}

.invite-card .button {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 1060px) {
  h2 {
    font-size: 38px;
  }

  .site-header {
    padding: 16px 28px;
  }

  .hero__inner {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 112px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero__screens {
    min-height: 610px;
  }

  .phone--primary {
    right: 12%;
  }

  .phone--secondary {
    right: 42%;
  }

  .problem__grid,
  .product-step__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-step--alt .product-step__copy,
  .product-step--alt .phone--showcase {
    order: initial;
  }

  .product-step--alt .phone--showcase,
  .phone--showcase {
    margin-right: auto;
    margin-left: auto;
  }

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

  .install__inner {
    display: block;
  }

  .install__actions {
    justify-content: flex-start;
    margin-top: 30px;
  }
}

@media (max-width: 720px) {
  p {
    font-size: 15px;
    line-height: 1.8;
  }

  h2 {
    font-size: 31px;
  }

  h3 {
    font-size: 20px;
  }

  .site-header {
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
  }

  .brand {
    font-size: 22px;
  }

  .site-nav {
    display: none;
  }

  .hero__inner,
  .section__inner,
  .install__inner {
    width: calc(100% - 36px);
  }

  .hero__inner {
    padding: 94px 0 46px;
  }

  .hero-title {
    font-size: 38px;
    line-height: 1.16;
  }

  .hero__copy,
  .hero-title,
  .hero__lead {
    width: 100%;
    max-width: min(330px, calc(100vw - 36px));
  }

  .hero__lead {
    font-size: 16px;
  }

  .store-button {
    min-height: 0;
  }

  .store-button--app-store img {
    height: 48px;
  }

  .store-button--google-play img {
    height: 48px;
  }

  .hero__points {
    display: grid;
    gap: 10px 14px;
    font-size: 13px;
  }

  .hero__screens {
    min-height: 520px;
  }

  .phone {
    border-width: 8px;
    border-radius: 34px;
  }

  .phone--primary {
    right: 8px;
    width: 228px;
    height: 506px;
  }

  .phone--secondary {
    right: auto;
    left: 0;
    top: 96px;
    width: 188px;
    height: 418px;
  }

  .phone::before {
    top: 8px;
    width: 58px;
    height: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .section__inner,
  .value-grid,
  .value-item {
    max-width: calc(100vw - 36px);
  }

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

  .value-item {
    width: 100%;
    min-height: 0;
    padding: 16px 18px 22px;
    overflow: hidden;
  }

  .value-item p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .phone--showcase {
    width: min(286px, 100%);
  }

  .install {
    min-height: 0;
  }

  .install__inner {
    padding: 72px 0;
  }

  .install__actions {
    display: flex;
    align-items: center;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }

  .invite-card {
    padding: 30px 22px;
  }

  .invite-card h1 {
    font-size: 30px;
  }
}
