/* Wire2Wire marketing site.
   Everything lives here: the CSP allows style-src 'self' only, so no inline
   styles, no <style> blocks, no Google Fonts. System stack only. */

:root {
  --green-950: #04261b;
  --green-900: #063a29;
  --green-800: #0b5137;
  --green-700: #0f6b48;
  --green-600: #14855a;
  --green-100: #dcefe6;
  --cream: #f6f1e6;
  --paper: #fcfdfb;
  --ink: #101614;
  --ink-soft: #3d4a45;
  --muted: #6b7873;
  --line: #dfe7e2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --gold: #d3a94f;
  --gold-soft: #e9d7a8;
  --red: #d33241;

  --shell: min(1160px, calc(100% - 40px));
  --radius: 20px;
  --shadow-lg: 0 40px 90px -30px rgba(4, 38, 27, 0.45);
  --shadow-sm: 0 18px 40px -24px rgba(4, 38, 27, 0.5);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
}

.eyebrow-gold {
  color: var(--gold);
}

.lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.on-dark .lede,
.on-dark p {
  color: rgba(255, 255, 255, 0.76);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 253, 251, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--green-700);
}

/* the CTA in the nav is an <a> inside .nav-links, which out-specifies .button */
.nav-links a.button {
  color: #fff;
  padding: 10px 18px;
}

.nav-links a.button:hover {
  color: #fff;
}

/* ---------- buttons ---------- */

.button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button {
  background: var(--green-800);
  color: #fff;
}

.button:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.button-gold {
  background: var(--gold);
  color: var(--green-950);
}

.button-gold:hover {
  background: var(--gold-soft);
}

.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.on-dark .ghost {
  border-color: var(--line-dark);
  color: #fff;
}

.ghost:hover {
  border-color: var(--green-700);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 0%, rgba(20, 133, 90, 0.5), transparent 55%),
    radial-gradient(circle at 92% 12%, rgba(211, 169, 79, 0.22), transparent 48%),
    linear-gradient(170deg, var(--green-950) 0%, #05301f 60%, #04241a 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 72px;
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: 80px 0 88px;
}

.hero h1 {
  max-width: 11ch;
  margin: 18px 0 24px;
  text-wrap: balance;
}

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

.store {
  display: inline-flex;
  border-radius: 8px;
}

.store img {
  height: 52px;
  width: auto;
  display: block;
}

.store:hover {
  opacity: 0.85;
}

.store:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- phone frames ---------- */

.phone {
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #2b3a35, #0d1512);
  box-shadow: var(--shadow-lg);
}

.phone img {
  border-radius: 30px;
  width: 100%;
}

.phone-duo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.phone-duo .phone:first-child {
  transform: translateY(22px);
}

.hero-phone {
  position: relative;
  isolation: isolate;
  max-width: 300px;
  margin-left: auto;
}

.hero-phone::before {
  content: "";
  position: absolute;
  inset: 8% -20% -5%;
  z-index: -1;
  border-radius: 48%;
  background: radial-gradient(circle, rgba(211, 169, 79, 0.22), transparent 68%);
}

/* a lone phone in a half-width column renders far too large; the duos are
   already about the right size, so only the singles get capped */
.split > .phone {
  max-width: 300px;
  margin: 0 auto;
}

/* the watch capture is nearly square, so it gets its own frame rather than
   the tall phone one */
.watch-frame {
  max-width: 330px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a4a44, #0b1310);
  box-shadow: var(--shadow-lg);
}

.watch-frame img {
  border-radius: 34px;
  width: 100%;
}

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
}

.section-dark {
  background: linear-gradient(175deg, var(--green-950), #06301f);
  color: #fff;
}

.section-cream {
  background: var(--cream);
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head h2 {
  margin: 16px 0 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-tight {
  gap: 48px;
}

.split + .split {
  margin-top: 112px;
}

/* a centred full-width band, used where there is copy but no screenshot yet */
.band {
  margin-top: 96px;
  padding: 56px 48px;
  border-radius: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
}

.band h2 {
  margin: 16px 0 18px;
}

.band .lede {
  margin: 0 auto;
}

.band .tags {
  justify-content: center;
}

/* ---------- feature lists ---------- */

.checks {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}

.checks li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--green-600);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85),
    inset 0 0 0 4px var(--green-600);
}

.on-dark .checks li::before {
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--green-950), inset 0 0 0 4px var(--gold);
}

.checks strong {
  display: block;
  font-size: 1.02rem;
}

.checks span {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.on-dark .checks span {
  color: rgba(255, 255, 255, 0.7);
}

.trust-note {
  max-width: 60ch;
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.trust-note strong {
  color: #fff;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.on-dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-dark);
  box-shadow: none;
}

.on-dark .card p {
  color: rgba(255, 255, 255, 0.72);
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.format-list li {
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.25;
}

/* ---------- stat strip ---------- */

.stats {
  margin: 64px 0 88px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats div {
  background: rgba(255, 255, 255, 0.04);
  padding: 28px 24px;
}

.stats strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stats span {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* ---------- formats ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.section-cream .tag {
  border-color: rgba(4, 38, 27, 0.12);
}

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  border-color: var(--green-700);
  box-shadow: 0 30px 70px -32px rgba(15, 107, 72, 0.6);
}

.plan-flag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
  margin-bottom: 16px;
}

.plan .amount {
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 10px 0 2px;
}

.plan .per {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.plan ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.plan ul li {
  padding-left: 24px;
  position: relative;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 3px solid var(--green-600);
}

.plan .button,
.plan .ghost {
  margin-top: auto;
}

.fineprint {
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- closing cta ---------- */

.cta {
  background: linear-gradient(150deg, var(--green-900), var(--green-700));
  color: #fff;
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.cta h2 {
  margin-top: 14px;
}

.cta-copy {
  max-width: 54ch;
  margin-top: 16px;
  font-size: 0.96rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- footer ---------- */

.footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.66);
  padding: 52px 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  text-decoration: none;
  margin-left: 22px;
}

.footer a:first-child {
  margin-left: 0;
}

.footer a:hover {
  color: #fff;
}

/* ---------- legal pages ---------- */

.legal {
  padding: 72px 0 96px;
}

.legal-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.42rem;
  margin: 44px 0 14px;
}

.legal h3 {
  font-size: 1.06rem;
  margin: 26px 0 8px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul,
.legal ol {
  margin: 14px 0;
  padding-left: 22px;
  display: grid;
  gap: 9px;
}

.legal a {
  color: var(--green-700);
  font-weight: 600;
}

.legal-toc {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 8px;
}

.legal-toc ol {
  /* .legal ol sets display:grid, which disables multi-column layout */
  display: block;
  columns: 2;
  column-gap: 32px;
  margin: 12px 0 0;
}

.legal-toc li {
  margin-bottom: 9px;
}

.callout {
  background: var(--green-100);
  border-left: 4px solid var(--green-700);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p {
  color: var(--green-950);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.legal th {
  color: var(--ink);
  font-weight: 700;
  background: var(--cream);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-inner,
  .split,
  .cta {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-inner {
    padding: 72px 0 80px;
  }

  .hero-phone {
    margin: 0 auto;
  }

  .grid,
  .grid-2,
  .price-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links a:not(.button) {
    display: none;
  }

  .legal-toc ol {
    columns: 1;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 32px);
  }

  body {
    font-size: 16px;
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-links a.button {
    padding: 9px 13px;
    font-size: 0.9rem;
  }

  .section {
    padding: 68px 0;
  }

  .cta {
    padding: 44px 28px;
  }

  .download-actions {
    justify-content: flex-start;
  }

  .download-actions .store img {
    height: 46px;
  }

  .split + .split {
    margin-top: 80px;
  }

  /* two phones side by side at phone width makes the app UI unreadable,
     so stack them and let each one take a legible width */
  .phone-duo {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .phone-duo .phone {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .phone-duo .phone:first-child {
    transform: none;
  }

  .band {
    padding: 40px 24px;
  }
}
