:root {
  --bg: #050c0b;
  --bg-2: #0a1f19;
  --card: #0f1a17;
  --line: rgba(46, 199, 153, 0.16);
  --text: #eef4f2;
  --muted: #9fb3ad;
  --green: #2ec799;
  --green-dim: rgba(46, 199, 153, 0.14);
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* The app's hex lattice, faint, behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 30% 10%, rgba(10, 70, 52, 0.55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='90' viewBox='0 0 104 90'%3E%3Cg fill='none' stroke='%232ec799' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M26 2 50 15v28L26 56 2 43V15z'/%3E%3Cpath d='M78 47 102 60v28L78 101 54 88V60z'/%3E%3Cpath d='M78 -43 102 -30v28L78 11 54 -2v-28z'/%3E%3C/g%3E%3C/svg%3E"),
    var(--bg);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; font-size: 16px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 56px 80px;
}
.hero .icon { width: 108px; height: 108px; border-radius: 24px; box-shadow: 0 10px 40px rgba(46, 199, 153, 0.2); }
.hero h1 { font-size: clamp(48px, 7vw, 84px); line-height: 1; margin: 28px 0 18px; letter-spacing: -0.02em; }
.hero .tagline { font-size: clamp(22px, 2.6vw, 30px); color: var(--green); font-weight: 600; line-height: 1.3; margin: 0 0 18px; }
.hero p.lede { color: var(--muted); margin: 0 0 30px; max-width: 34em; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--text);
  color: #000;
  font-weight: 700;
  font-size: 17px;
}
.badge:hover { text-decoration: none; }
.badge.soon { background: var(--green-dim); color: var(--green); border: 1px solid var(--line); cursor: default; }
/* Apple's badge, unaltered, above the 40pt minimum height Apple asks for. */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 56px; width: auto; }
.get { text-align: center; padding-block: 40px 20px; }
.get .icon { width: 88px; height: 88px; border-radius: 20px; }
.get h2 { font-size: clamp(30px, 4vw, 42px); margin: 18px 0 22px; }
.cta .note { color: var(--muted); font-size: 15px; }

.phones { position: relative; height: 640px; }
.phone {
  position: absolute;
  width: 290px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 60px rgba(46, 199, 153, 0.25), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.phones .a { left: 0; top: 0; z-index: 2; }
.phones .b { right: 0; top: 70px; }

/* Features */
.section-title { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.section-title h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; margin: 0 0 14px; }
.section-title p { color: var(--muted); margin: 0; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 40px;
}
.feature:nth-of-type(even) .shot { order: 2; }
.feature .shot { display: flex; justify-content: center; }
.feature .shot img {
  width: 300px;
  max-width: 80%;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 50px rgba(46, 199, 153, 0.18);
}
.feature .eyebrow { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.feature h3 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; margin: 10px 0 14px; }
.feature p { color: var(--muted); margin: 0 0 14px; }
.feature ul { margin: 0; padding-left: 20px; color: var(--muted); }
.feature li { margin: 6px 0; }

.ipad { text-align: center; padding-block: 80px 40px; }
.ipad img {
  width: 100%;
  max-width: 900px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 80px rgba(46, 199, 153, 0.18);
  margin-top: 40px;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 40px 90px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h4 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Text pages */
.page { max-width: 760px; margin: 0 auto; padding: 40px 24px 90px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; margin: 20px 0 8px; }
.page .meta { color: var(--muted); margin: 0 0 40px; }
.page h2 { font-size: 24px; margin: 44px 0 10px; }
.page p, .page li { color: #c9d6d2; }
.page details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 12px 0; }
.page summary { cursor: pointer; font-weight: 600; color: var(--text); }
.page details p { margin: 12px 0 2px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .top nav { gap: 16px; }
  .top nav a[href$="#features"] { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 28px 40px; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .phones { height: 520px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 220px; border-radius: 30px; }
  .phones .a { left: 0; }
  .phones .b { right: 0; top: 60px; }
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; padding-block: 30px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .feature ul { display: inline-block; text-align: left; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .phones { height: 430px; }
  .phone { width: 180px; border-radius: 26px; }
}
