@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f5f4ee;
  --surface: #ffffff;
  --surface-2: #ecebe3;
  --ink: #10231a;
  --ink-2: #56665d;
  --ink-3: #8e9a93;
  --line: #e3e2d9;
  --forest: #0f3324;
  --forest-deep: #0a2519;
  --primary: #1f6b46;
  --lime: #c9ec6a;
  --serif: "Newsreader", ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
html:has(body.home) {
  background: #0a2519;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
}

/* ---------- Shared header and footer ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.header-link:hover {
  transform: translateY(-1px);
}

.site-footer {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Landing ---------- */

.home {
  color: #f1f5ef;
  background:
    radial-gradient(900px 620px at 78% 18%, rgba(46, 140, 92, 0.45), transparent 62%),
    radial-gradient(700px 520px at 8% 100%, rgba(201, 236, 106, 0.1), transparent 60%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  background-color: var(--forest-deep);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  position: relative;
}
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.home > * {
  position: relative;
}

.home .header-link {
  color: var(--forest);
  background: var(--lime);
}
.home .header-link:hover {
  background: #d6f28a;
}

.hero {
  flex: 1;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 24px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 500;
  color: rgba(241, 245, 239, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 236, 106, 0.2);
}

.hero h1 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}

.lede {
  margin: 24px 0 0;
  max-width: 30em;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: rgba(241, 245, 239, 0.74);
}

.cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.store-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.store-badge:hover {
  transform: translateY(-2px);
}
.store-badge:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
.store-badge img {
  height: 56px;
  width: auto;
}

.perks {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
  color: rgba(241, 245, 239, 0.8);
}
.perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.perks svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
  flex: none;
}

/* Phones */

.visual {
  position: relative;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 236, 106, 0.28), transparent 65%);
  filter: blur(20px);
}

.phone {
  position: absolute;
  width: 280px;
  aspect-ratio: 1206 / 2622;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2c3a33, #0b100d 40%, #1d2621);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 18px 36px -18px rgba(0, 0, 0, 0.6);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 39px;
  background: var(--bg);
}
.phone::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 84px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone-back {
  transform: translate(-108px, -18px) rotate(-8deg) scale(0.9);
  filter: saturate(0.9) brightness(0.85);
}
.phone-front {
  transform: translate(92px, 22px) rotate(5deg);
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}
.chip strong {
  display: block;
  font-size: 15px;
}
.chip span {
  color: var(--ink-2);
}
.chip .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: none;
}
.chip .ico svg {
  width: 20px;
  height: 20px;
}
.chip-match {
  top: 150px;
  left: 0;
}
.chip-match .ico {
  background: #dcefe3;
  color: var(--primary);
}
.chip-water {
  bottom: 70px;
  right: 0;
}
.chip-water .ico {
  background: #dbe9f6;
  color: #3b82c4;
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
.copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.copy > :nth-child(2) { animation-delay: 0.06s; }
.copy > :nth-child(3) { animation-delay: 0.12s; }
.copy > :nth-child(4) { animation-delay: 0.18s; }
.copy > :nth-child(5) { animation-delay: 0.24s; }
.visual {
  animation: rise 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.chip-match {
  animation: float 6s ease-in-out infinite;
}
.chip-water {
  animation: float 7s 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.home .site-footer {
  color: rgba(241, 245, 239, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.home .site-footer a:hover {
  color: #f1f5ef;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
    padding-top: 16px;
  }
  .copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .cta,
  .perks {
    justify-content: center;
  }
  .visual {
    height: 560px;
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 16px 0;
  }
  .hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }
  .visual {
    height: 470px;
  }
  .phone {
    width: 206px;
    border-radius: 38px;
    padding: 7px;
  }
  .phone img {
    border-radius: 31px;
  }
  .phone::after {
    top: 15px;
    width: 64px;
    height: 19px;
  }
  .phone-back {
    transform: translate(-62px, -14px) rotate(-7deg) scale(0.88);
  }
  .phone-front {
    transform: translate(52px, 16px) rotate(4deg);
  }
  .chip {
    font-size: 13px;
    padding: 8px 12px 8px 8px;
  }
  .chip strong {
    font-size: 14px;
  }
  .chip .ico {
    width: 30px;
    height: 30px;
  }
  .chip-match {
    top: 40px;
    left: 0;
  }
  .chip-water {
    bottom: 34px;
    right: 0;
  }
  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Legal pages ---------- */

.legal .site-header {
  border-bottom: 1px solid var(--line);
  width: 100%;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
  background: rgba(245, 244, 238, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.legal .header-link {
  color: #fff;
  background: var(--forest);
}
.legal .header-link:hover {
  background: var(--primary);
}

.doc {
  width: min(740px, 100% - 40px);
  margin: 0 auto;
  padding: 64px 0 72px;
}
.doc h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.updated {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 15px;
}
.intro {
  margin: 28px 0 0;
  font-size: 19px;
  color: var(--ink-2);
}

.summary {
  margin: 36px 0 8px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.doc .summary h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 22px;
}
.doc .summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.doc .summary li {
  position: relative;
  padding-left: 30px;
  margin: 0;
}
.summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcefe3
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.doc h2 {
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.doc h3 {
  margin: 28px 0 0;
  font-size: 17px;
  font-weight: 650;
}
.doc p,
.doc ul {
  margin: 14px 0 0;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-top: 8px;
}
.doc li::marker {
  color: var(--primary);
}
.doc a {
  color: var(--primary);
  text-underline-offset: 3px;
}
.doc strong {
  font-weight: 650;
}

.data-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.data-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.data-table div:first-child {
  border-top: 0;
}
.data-table dt {
  font-weight: 650;
}
.data-table dd {
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 560px) {
  .data-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .doc {
    padding-top: 44px;
  }
}

.legal .site-footer {
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.legal .site-footer a:hover {
  color: var(--ink);
}

/* ---------- 404 ---------- */

.notfound {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}
.notfound h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 72px);
}
.notfound p {
  color: rgba(241, 245, 239, 0.7);
}
.notfound a {
  color: var(--lime);
}
