/* backonplan.com — one stylesheet for the landing page and the two text pages.
   No web fonts, no scripts, no third-party requests. */

:root {
  --teal: #0d8f84;
  --teal-deep: #0a5360;
  --teal-bright: #14b8a6;
  --lime: #a3e635;
  --orange: #f58a1f;
  --ink: #0f2a2e;
  --body: #3b5357;
  --muted: #6b8387;
  --line: #dbe7e6;
  --wash: #f2f8f7;
  --paper: #ffffff;
  --radius: 22px;
  --width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 750; }
p { margin: 0; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

/* ── Top bar ─────────────────────────────────────────────── */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.top nav { display: flex; gap: 26px; }
.top nav a { color: rgba(255, 255, 255, .88); text-decoration: none; font-size: .95rem; font-weight: 550; }
.top nav a:hover { color: #fff; text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(163, 230, 53, .20), transparent 60%),
    linear-gradient(140deg, var(--teal-bright) 0%, var(--teal) 42%, var(--teal-deep) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 128px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: rgba(255, 255, 255, .92); max-width: 31em; }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: #fff; color: var(--teal-deep); font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px rgba(6, 49, 56, .28);
}
.pill svg { width: 20px; height: 20px; }
.cta small { color: rgba(255, 255, 255, .82); font-size: .92rem; }
.fineprint { margin-top: 26px; padding-bottom: 72px; font-size: .88rem; color: rgba(255, 255, 255, .74); max-width: 34em; }
.hero-phones { position: relative; align-self: end; height: 600px; }
.hero-phones .phone { position: absolute; bottom: -150px; }
.hero-phones .phone.front { --w: 292px; right: 156px; z-index: 1; }
.hero-phones .phone.back { --w: 256px; right: -14px; bottom: -190px; transform: rotate(6deg); }

/* ── A phone, drawn in CSS ───────────────────────────────────
   Sized by --w so every curve stays a true circle at any size. Proportions follow a
   6.3-inch iPhone: a 402 pt screen with 62 pt corners inside a thin black border and a
   metal band. The Dynamic Island is part of the screenshot image. */
.phone {
  --w: 280px;
  --band: calc(var(--w) * .011);
  --bezel: calc(var(--w) * .021);
  position: relative;
  isolation: isolate;
  flex: none;
  width: var(--w);
  padding: var(--band);
  border-radius: calc(var(--w) * .178);
  background:
    linear-gradient(145deg, #8d949a 0%, #3b4044 18%, #24272a 50%, #3b4044 82%, #7d848a 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .35),
    0 1px 0 1px rgba(255, 255, 255, .10) inset,
    0 calc(var(--w) * .16) calc(var(--w) * .22) calc(var(--w) * -.10) rgba(6, 40, 46, .42),
    0 calc(var(--w) * .05) calc(var(--w) * .08) calc(var(--w) * -.03) rgba(6, 40, 46, .28);
}
.phone img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border: var(--bezel) solid #050607;
  border-radius: calc(var(--w) * .167);
  background: #f2f2f7;
}
/* Buttons: volume on the left, power on the right, drawn as slivers of the band. */
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: calc(var(--w) * .012);
  background: linear-gradient(90deg, #6f767b, #2b2f32);
  z-index: -1;
}
.phone::before {
  left: calc(var(--w) * -.008);
  top: 27%;
  height: 7.2%;
  border-radius: calc(var(--w) * .006) 0 0 calc(var(--w) * .006);
  box-shadow:
    0 calc(var(--w) * .19) 0 0 #4a5054,
    0 calc(var(--w) * -.14) 0 calc(var(--w) * -.002) #4a5054;
}
.phone::after {
  right: calc(var(--w) * -.008);
  top: 31%;
  height: 11.5%;
  border-radius: 0 calc(var(--w) * .006) calc(var(--w) * .006) 0;
  background: linear-gradient(270deg, #6f767b, #2b2f32);
}

/* ── A watch, drawn in CSS ─────────────────────────────────── */
.watch {
  --w: 176px;
  position: relative;
  isolation: isolate;
  flex: none;
  width: var(--w);
  margin: calc(var(--w) * .42) 0;
}
.watch .case {
  position: relative;
  z-index: 1;
  padding: calc(var(--w) * .035);
  border-radius: calc(var(--w) * .30);
  background: linear-gradient(145deg, #7b8288 0%, #2f3336 22%, #1b1d1f 55%, #34383b 85%, #6d747a 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .4),
    0 calc(var(--w) * .12) calc(var(--w) * .18) calc(var(--w) * -.08) rgba(6, 40, 46, .45);
}
.watch img {
  width: 100%;
  aspect-ratio: 416 / 496;
  border: calc(var(--w) * .05) solid #000;
  border-radius: calc(var(--w) * .265);
  background: #000;
}
/* Digital Crown and side button. */
.watch .crown, .watch .side {
  position: absolute;
  z-index: 0;
  left: calc(100% - var(--w) * .012);
  background: linear-gradient(180deg, #2a2e31, #6f767b 45%, #2a2e31);
}
.watch .crown {
  top: 24%;
  width: calc(var(--w) * .062);
  height: 19%;
  border-radius: calc(var(--w) * .02);
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2a2e31, #7d848a 45%, #2a2e31);
}
.watch .side {
  top: 54%;
  width: calc(var(--w) * .028);
  height: 22%;
  border-radius: 0 calc(var(--w) * .02) calc(var(--w) * .02) 0;
}
/* Band: wider at the case, tapering away, in the app's teal. */
.watch .strap {
  position: absolute;
  left: 11%;
  right: 11%;
  height: calc(var(--w) * .52);
  background: linear-gradient(90deg, #0a5d5c 0%, #109087 22%, #12a094 50%, #109087 78%, #0a5d5c 100%);
}
.watch .strap-up {
  bottom: calc(100% - var(--w) * .10);
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
  border-radius: calc(var(--w) * .06) calc(var(--w) * .06) 0 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0, #000 38%);
}
.watch .strap-down {
  top: calc(100% - var(--w) * .10);
  clip-path: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 38%);
  mask-image: linear-gradient(0deg, transparent 0, #000 38%);
}

/* ── Sections ────────────────────────────────────────────── */
section { padding: 104px 0; }
.eyebrow { font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature.flip .shot { order: 2; }
.feature .shot { display: flex; justify-content: center; }
.feature p.intro { margin-top: 18px; font-size: 1.12rem; }
.feature ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.feature li { position: relative; padding-left: 34px; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.feature li strong { color: var(--ink); }
.tint { background: var(--wash); }
.pair { position: relative; width: 492px; max-width: 100%; height: 590px; }
.pair .phone { position: absolute; --w: 246px; }
.pair .phone:first-child { left: 0; top: 0; z-index: 1; }
.pair .phone:last-child { right: 0; top: 46px; }

/* ── Everywhere ──────────────────────────────────────────── */
.everywhere { text-align: center; }
.everywhere p.intro { margin: 18px auto 0; max-width: 36em; font-size: 1.12rem; }
.devices { margin-top: 72px; display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; }
.devices figure { margin: 0; display: grid; justify-items: center; gap: 22px; }
.devices figcaption { font-size: .92rem; color: var(--muted); }
.devices .phone { --w: 250px; }


/* ── Gallery ─────────────────────────────────────────────── */
.gallery { padding-top: 0; }
.strip {
  display: flex; gap: 28px; overflow-x: auto; padding: 12px 24px 44px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; display: grid; justify-items: center; gap: 18px; }
.strip .phone { --w: 232px; }
.strip figcaption { font-size: .92rem; font-weight: 600; color: var(--ink); }

/* ── Privacy cards ───────────────────────────────────────── */
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card .glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--wash); display: grid; place-items: center; margin-bottom: 18px; color: var(--teal); }
.card .glyph svg { width: 24px; height: 24px; }

/* ── Closing band ────────────────────────────────────────── */
.closing { background: linear-gradient(140deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; text-align: center; }
.closing h2 { color: #fff; }
.closing p { margin: 16px auto 0; max-width: 32em; color: rgba(255, 255, 255, .9); font-size: 1.12rem; }
.closing .cta { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────── */
footer { padding: 44px 0 56px; font-size: .9rem; color: var(--muted); }
footer .wrap { display: grid; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { max-width: 60em; }

/* ── Text pages (support, privacy) ───────────────────────── */
.page-head { background: linear-gradient(140deg, var(--teal-bright) 0%, var(--teal) 45%, var(--teal-deep) 100%); position: relative; padding: 118px 0 54px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { color: rgba(255, 255, 255, .86); margin-top: 8px; }
.prose { max-width: 720px; margin: 0 auto; padding: 56px 24px 40px; }
.prose h2 { font-size: 1.3rem; margin: 42px 0 12px; letter-spacing: -0.01em; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); }
.prose .faq p { padding: 20px 22px; background: var(--wash); border-radius: 16px; }
.contact { margin: 8px 0 24px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact a { font-weight: 700; font-size: 1.1rem; }

/* ── Smaller screens ─────────────────────────────────────── */
@media (max-width: 920px) {
  section { padding: 72px 0; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 110px; }
  .fineprint { padding-bottom: 8px; }
  .hero-phones { height: 430px; margin-top: 24px; }
  .hero-phones .phone.front { --w: 250px; right: auto; left: 50%; margin-left: -175px; bottom: -180px; }
  .hero-phones .phone.back { --w: 220px; right: auto; left: 50%; margin-left: 0; bottom: -210px; }
  .feature .wrap { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .shot { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .top nav a.optional { display: none; }
  .pair { height: 520px; width: 440px; }
  .pair .phone { --w: 224px; }
}
@media (max-width: 480px) {
  .pair { width: 330px; height: 410px; }
  .pair .phone { --w: 164px; }
  .devices { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
