:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --paper: #ffffff;
  --soft: #f5f5f7;
  --blue: #0071e3;
  --water-bg: #e9f7f6;
  --wau-bg: #f1f4ec;
  --content: 72rem;
  --nav: 68rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  min-width: 20rem;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

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

button,
input,
select,
textarea { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.65);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.6rem;
  left: 0.6rem;
  transform: translateY(-170%);
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: white;
}

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

.container,
.content-shell {
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
}

.nav-shell,
.header-inner {
  display: flex;
  width: min(calc(100% - 3rem), var(--nav));
  min-height: 3.25rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark { display: none; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.desktop-nav a {
  color: #424245;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: #000; }

.menu-button {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-button svg { width: 1.3rem; }

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 3.25rem 0 0;
  padding: 1rem 1.5rem 3rem;
  background: rgba(255, 255, 255, 0.98);
  overflow-y: auto;
}

.mobile-menu nav {
  display: grid;
  width: min(100%, 38rem);
  margin-inline: auto;
}

.mobile-menu a {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

/* Home */

.duo-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100svh - 3.25rem);
}

.app-panel {
  display: flex;
  min-width: 0;
  min-height: calc(100svh - 3.25rem);
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) 2rem 0;
  text-align: center;
}

.app-panel-water { background: var(--water-bg); }
.app-panel-wau { background: var(--wau-bg); }

.product-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 4.25rem;
  text-align: left;
}

.app-icon-image,
.app-icon-composed {
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
  border-radius: 1.22rem;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.app-icon-image { object-fit: cover; }

.app-icon-composed {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.app-icon-wau {
  background: linear-gradient(180deg, #2d6953 0%, #1a3c30 72%);
}

.app-icon-wau > span {
  display: block;
  width: 76%;
  height: 76%;
  background: #e6b053;
  -webkit-mask: url("../images/wau-icon.png") center / contain no-repeat;
  mask: url("../images/wau-icon.png") center / contain no-repeat;
}

.product-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.product-heading p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  color: var(--blue);
  font-size: 0.9rem;
}

.product-actions a { text-decoration: none; }
.product-actions a:hover { text-decoration: underline; }
.product-actions span { color: var(--muted); }

.phone-link {
  display: block;
  margin-top: auto;
  padding-top: clamp(1.75rem, 4vh, 3rem);
  text-decoration: none;
  transform: translateY(4.5rem);
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-link:hover { transform: translateY(3.5rem); }

.iphone-frame {
  display: block;
  width: clamp(15rem, 24vw, 20.5rem);
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: clamp(2.4rem, 4.4vw, 4.25rem);
  background: #171719;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.iphone-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(clamp(2.4rem, 4.4vw, 4.25rem) - 0.55rem);
}

/* Product detail */

.detail-hero {
  overflow: hidden;
}

.detail-water { background: var(--water-bg); }
.detail-wau { background: var(--wau-bg); }

.detail-shell {
  display: grid;
  width: min(calc(100% - 3rem), 68rem);
  min-height: calc(100svh - 3.25rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
  padding-top: 4rem;
}

.detail-copy { padding-bottom: 4rem; }

.detail-icon,
.detail-icon-composed {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 2rem;
  border-radius: 1.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.detail-kicker,
.page-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-copy h1,
.simple-hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 650;
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.detail-lead,
.large-copy {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: #424245;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.apple-button,
.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.apple-button:hover,
.button:hover { background: #0077ed; }

.apple-button-muted {
  background: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.apple-button-muted:hover { background: rgba(0, 0, 0, 0.08); }

.detail-phone {
  align-self: end;
  justify-self: center;
  transform: translateY(5rem);
}

.detail-phone .iphone-frame { width: clamp(17rem, 29vw, 23rem); }

.feature-section { padding: clamp(5rem, 10vw, 9rem) 0; }

.feature-section h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

.feature-grid article,
.value-grid article {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--soft);
}

.feature-grid strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.feature-grid h3,
.value-grid h2 {
  margin: 3rem 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.feature-grid p,
.value-grid p {
  margin: 0;
  color: var(--muted);
}

.detail-privacy {
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* About and contact */

.narrow-shell { max-width: 55rem; }

.simple-hero {
  padding: clamp(6rem, 13vw, 11rem) 0 clamp(5rem, 10vw, 8rem);
  background: var(--soft);
}

.simple-hero h1 { max-width: 11ch; }

.simple-content,
.contact-section { padding: clamp(5rem, 10vw, 8rem) 0; }

.simple-content .narrow-shell > p {
  max-width: 44rem;
  margin: 0;
  color: #424245;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

.value-grid h2 { margin-top: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 9vw, 8rem);
}

.contact-layout h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.direct-email { color: var(--blue); }

.contact-form {
  display: grid;
  gap: 1.25rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--muted);
  font-size: 0.82rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: white;
  color: var(--ink);
}

.field input,
.field select {
  min-height: 3.25rem;
  padding: 0 0.85rem;
}

.field textarea {
  min-height: 11rem;
  padding: 0.85rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 113, 227, 0.12);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
}

.form-meta,
.form-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-form .apple-button {
  width: max-content;
  margin-top: 0;
}

/* Legal */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.page-hero {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--soft);
}

.page-hero .eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.page-hero h1 { max-width: 14ch; }

.page-hero p:last-child {
  max-width: 48rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 48rem);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 5rem;
  display: grid;
}

.legal-nav strong,
.legal-nav a {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.legal-content h2 {
  margin: 3.5rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: #424245;
  font-size: 0.95rem;
}

.legal-content a { color: var(--blue); }

.legal-card {
  padding: 1.4rem;
  border-radius: 1rem;
  background: var(--soft);
  color: #424245;
}

.legal-warning {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
  padding: 1rem;
  border: 1px solid #e1b7ab;
  border-radius: 0.8rem;
  background: #fff8f5;
  color: #9f2d20;
}

.legal-warning[hidden] { display: none; }

.legal-warning svg,
.privacy-badge svg {
  width: 1.2rem;
  min-width: 1.2rem;
}

.legal-warning div { display: grid; gap: 0.2rem; }
.legal-warning span { font-size: 0.8rem; }

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 2rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.78rem;
}

/* Footer */

.site-footer {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-minimal-inner {
  display: flex;
  width: min(calc(100% - 3rem), var(--nav));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.footer-minimal-inner nav {
  display: flex;
  gap: 1rem;
}

.footer-minimal-inner a { text-decoration: none; }
.footer-minimal-inner a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-main .brand { display: inline-block; }

.footer-copy {
  max-width: 28rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.footer-column > strong { font-size: 0.75rem; }

.footer-links {
  display: grid;
  gap: 0.45rem;
}

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

.footer-bottom {
  display: flex;
  width: min(calc(100% - 3rem), var(--content));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 950px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }

  .detail-shell {
    grid-template-columns: 1fr 20rem;
    gap: 2rem;
  }

  .legal-layout { grid-template-columns: 1fr; }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .container,
  .content-shell,
  .nav-shell,
  .header-inner,
  .detail-shell,
  .footer-minimal-inner,
  .footer-grid,
  .footer-bottom {
    width: min(calc(100% - 2rem), var(--content));
  }

  .duo-stage { grid-template-columns: 1fr; }

  .app-panel {
    min-height: 47rem;
    padding-inline: 1rem;
  }

  .product-heading { min-height: 4rem; }

  .product-heading h2 { font-size: 1.5rem; }

  .phone-link { transform: translateY(3.5rem); }
  .phone-link:hover { transform: translateY(3rem); }
  .iphone-frame { width: min(72vw, 18rem); }

  .detail-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 5rem;
    text-align: center;
  }

  .detail-copy { padding-bottom: 0; }

  .detail-icon,
  .detail-icon-composed { margin-inline: auto; }

  .detail-lead { margin-inline: auto; }

  .detail-phone {
    margin-top: 1rem;
    transform: translateY(4rem);
  }

  .detail-phone .iphone-frame { width: min(78vw, 20rem); }

  .feature-grid,
  .value-grid,
  .contact-layout,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }

  .feature-grid,
  .value-grid { margin-top: 3rem; }

  .simple-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }

  .legal-nav { grid-template-columns: 1fr; }

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

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

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