/* Leeway: calm and light (or dark), with a hint of the terminal. No framework, no images. */

/* ---------- Theme tokens ---------- */
:root {
  --bg: #FBFBFA;
  --ink: #15171A;
  --ink-2: #3E4247;     /* body copy */
  --ink-3: #5D6166;     /* captions */
  --line: #E3E4E1;
  --card: #FFFFFF;
  --soft: #ECEDEA;
  --soft-hover: #E3E5E1;
  --track: rgba(21,23,26,.09);
  --mint: #12A17D;      /* fills, dots */
  --mint-ink: #0B7A5E;  /* accent text */
  --mint-wash: #E4F4EE;
  --btn: #0B7A5E;       /* primary button */
  --btn-hover: #096A51;
  --btn-ink: #FFFFFF;
  --invert: #15171A;    /* the privacy block: opposite of the page */
  --invert-ink: #FFFFFF;

  --desk: #DCE4DF;
  --desk-dot: rgba(21,23,26,.10);
  --bar: rgba(255,255,255,.62);
  --bar-item: rgba(21,23,26,.12);
  --glass: rgba(255,255,255,.86);
  --glass-edge: rgba(21,23,26,.07);
  --glass-card: rgba(21,23,26,.04);
  --shadow: rgba(21,23,26,.4);

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 48px);
  --gap-section: clamp(88px, 11vw, 152px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B0C0D;
  --ink: #ECEEEB;
  --ink-2: #B4B9BE;
  --ink-3: #8F959B;
  --line: #24282C;
  --card: #121416;
  --soft: #1B1E21;
  --soft-hover: #23272B;
  --track: rgba(236,238,235,.12);
  --mint: #3DDBB0;
  --mint-ink: #3DDBB0;
  --mint-wash: #12251F;
  --btn: #3DDBB0;
  --btn-hover: #5CE3BF;
  --btn-ink: #06231B;
  --invert: #ECEEEB;
  --invert-ink: #15171A;

  --desk: #14171A;
  --desk-dot: rgba(236,238,235,.07);
  --bar: rgba(30,33,36,.72);
  --bar-item: rgba(236,238,235,.16);
  --glass: rgba(30,33,36,.84);
  --glass-edge: rgba(236,238,235,.09);
  --glass-card: rgba(236,238,235,.05);
  --shadow: rgba(0,0,0,.7);
  color-scheme: dark;
}

/* The theme switch: a circle that grows from the toggle (driven by theme.js). */
.theme-vt::view-transition-old(root),
.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.nav-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: 14px; }
.nav-links a { color: var(--ink-3); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-buy { color: var(--ink); padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); transition: border-color .15s; }
.nav-links .nav-buy:hover { border-color: var(--ink); }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.theme-toggle:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.theme-toggle svg { grid-area: 1 / 1; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s; }
[data-theme="dark"] .icon-moon, [data-theme="light"] .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(48px, 9vw, 112px); }
.eyebrow { font-size: 13px; color: var(--mint-ink); margin-bottom: 22px; }
h1 { font-size: clamp(50px, 8.4vw, 108px); font-weight: 650; letter-spacing: -0.045em; line-height: .96; }
.lede { margin-top: 26px; max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fineprint { margin-top: 16px; font-size: 12px; color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; transition: background .15s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-quiet { background: var(--soft); color: var(--ink); font-weight: 500; }
.btn-quiet:hover { background: var(--soft-hover); }
.btn-block { display: flex; width: 100%; }

/* ---------- The desktop mockup ---------- */
.desk {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  height: clamp(500px, 44vw, 540px);
  border-radius: 26px;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--desk);
  /* faint dot grid, so it reads as a desktop without a fake photo wallpaper */
  background-image: radial-gradient(var(--desk-dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}

.menubar {
  position: absolute; inset: 0 0 auto 0; height: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: 18px;
  background: var(--bar);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  font-size: 13px; font-weight: 500;
  z-index: 3;
}
.menubar-left { display: flex; gap: 18px; }
.menubar-right { display: flex; align-items: center; gap: 16px; }
.mb-icon { width: 15px; height: 15px; }
.mb-battery { width: 22px; height: 11px; }
.mb-ring { width: 14px; height: 14px; }
.mb-leeway { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: var(--bar-item); font-variant-numeric: tabular-nums; }

.terminal {
  position: absolute; left: 5%; top: 84px; width: min(620px, 58%); height: 330px;
  border-radius: 14px; overflow: hidden;
  background: #121416; color: #C9CDD1;
  box-shadow: 0 30px 80px -30px var(--shadow), 0 0 0 1px rgba(255,255,255,.06);
  z-index: 1;
}
.term-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding-inline: 14px; background: #1B1E21; font: 500 12px var(--sans); color: #8D9398; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A3E43; }
.term-body { padding: 20px 22px; font-size: 13px; line-height: 1.95; }
.t-dir, .t-dot { color: #3DDBB0; }
.t-dim { color: #8D9398; }
.caret { display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -2px; background: #C9CDD1; animation: blink 1.1s steps(1) infinite; }

.popover {
  position: absolute; right: clamp(16px, 7%, 96px); top: 42px; width: 340px;
  padding: 18px;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--glass-edge), 0 30px 70px -24px var(--shadow);
  z-index: 2;
}
.pop-head { display: flex; align-items: center; justify-content: space-between; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--mint-wash); color: var(--mint-ink); font-size: 12px; font-weight: 600; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.plan { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.pop-hero { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.pop-num { font-size: 56px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.pop-label { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.pop-label b { font-size: 15px; }
.pop-label span { color: var(--ink-3); }
.track { position: relative; height: 18px; margin-top: 14px; }
.track::before { content: ""; position: absolute; inset: 5px 0 auto; height: 8px; border-radius: 4px; background: var(--track); }
.fill { position: absolute; left: 0; top: 5px; height: 8px; width: var(--v); border-radius: 4px; background: var(--mint); animation: fill 1.4s cubic-bezier(.2,.8,.2,1) .3s both; }
.tick { position: absolute; left: var(--t); top: 0; width: 2px; height: 18px; border-radius: 1px; background: var(--ink); opacity: .55; }
.track-sm { height: 11px; margin-top: 6px; }
.track-sm::before { inset: 3px 0 auto; height: 5px; }
.track-sm .fill { top: 3px; height: 5px; }
.track-sm .tick { height: 11px; }
.pop-insight { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pop-card { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--glass-card); }
.pop-row { display: flex; justify-content: space-between; font-size: 13px; }
.pop-row span { font-weight: 500; }
.pop-sub { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.pop-foot { display: flex; align-items: center; justify-content: space-between; margin: 14px -18px -18px; padding: 10px 18px; border-top: 1px solid var(--glass-edge); font-size: 11px; color: var(--ink-3); }
.pop-icons { display: flex; gap: 12px; }
.pop-icons svg { width: 13px; height: 13px; }

/* ---------- Sections ---------- */
.section { padding-top: var(--gap-section); }
.h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.06; }
.h3 { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.narrow { max-width: 760px; }

.features { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 36px); }
.feature { padding-top: 18px; border-top: 1px solid var(--line); }
.flag { font-size: 12px; color: var(--mint-ink); }
.feature h3 { margin-top: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

.steps { margin: 44px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.step-n { font-size: 13px; color: var(--mint-ink); }
.step h3 { margin-top: 12px; font-size: 18px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.step code { font-size: 13px; padding: 1px 6px; border-radius: 5px; background: var(--soft); color: var(--ink); }

/* The privacy block is always the terminal: dark on the light page, and a lifted panel on the dark one. */
.privacy { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: #15171A; color: #FFFFFF; }
[data-theme="dark"] .privacy { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
/* Dark: lift the desk and sink the terminal so the two never blend. */
[data-theme="dark"] .desk { background-color: #1A1E22; }
[data-theme="dark"] .terminal { background: #0C0E10; box-shadow: 0 30px 80px -30px var(--shadow), 0 0 0 1px rgba(255,255,255,.09); }
[data-theme="dark"] .term-bar { background: #15181B; }
.privacy .h2 { flex: 1 1 320px; }
.privacy-log { flex: 1 1 420px; font-size: clamp(13px, 1.25vw, 15px); line-height: 2.1; color: #D5D8DB; }
.privacy-log .k { display: inline-block; min-width: 8ch; color: #3DDBB0; }
.privacy-log .t-dim { color: #8D9398; }

.price-card { margin-top: 40px; width: 100%; max-width: 440px; padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price-num { font-size: 48px; font-weight: 650; letter-spacing: -0.04em; }
.price-unit { font-size: 15px; color: var(--ink-3); }
.price-list { margin: 20px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.price-list li { padding-left: 22px; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 4px; border-radius: 2px; background: var(--mint); }
.providers { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 13px; }
.chip { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-3); }
.chip-on { border-color: transparent; background: var(--mint-wash); color: var(--mint-ink); }

.faq { max-width: 760px; }
.faq h2 { margin-bottom: 20px; }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: clamp(72px, 10vw, 120px); padding-bottom: 40px; font-size: 13px; color: var(--ink-3); }

/* ---------- Motion ---------- */
@keyframes fill { from { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fill, .caret { animation: none; }
}

/* ---------- Small screens: the popover is the story; the terminal steps aside ---------- */
@media (max-width: 760px) {
  .menubar-left { display: none; }
  .menubar { justify-content: flex-end; }
  .terminal { display: none; }
  .desk { height: auto; padding: 52px 16px 24px; }
  .popover { position: relative; right: auto; top: auto; width: 100%; max-width: 360px; margin-left: auto; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-buy) { display: none; }
}
@media (max-width: 420px) {
  .menubar-right > span:last-child { display: none; }
  .pop-num { font-size: 48px; }
}

/* ---------- Platform: Mac or Windows ---------- */
[data-os="mac"] .only-windows, [data-os="windows"] .only-mac { display: none !important; }

.os-switch { display: flex; justify-content: center; gap: 4px; width: max-content; margin: clamp(40px, 6vw, 72px) auto 0; padding: 4px; border-radius: 11px; background: var(--soft); font-size: 13px; }
.os-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font: inherit; cursor: pointer; transition: background .2s, color .2s; }
.os-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.soon { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--mint-wash); color: var(--mint-ink); }
.os-switch + .desk { margin-top: 20px; }

/* Windows 11: taskbar at the bottom, the flyout rises from the tray. */
.taskbar {
  position: absolute; inset: auto 0 0 0; height: 48px;
  display: flex; align-items: center; justify-content: center;
  padding-inline: 14px;
  background: var(--bar);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  font-size: 12px; font-weight: 500;
  z-index: 3;
}
.tb-apps { display: flex; gap: 8px; }
.tb-apps i { width: 30px; height: 30px; border-radius: 6px; background: var(--bar-item); }
.tb-apps .tb-term { display: grid; place-items: center; font: 600 11px var(--mono); font-style: normal; background: #121416; color: #C9CDD1; box-shadow: inset 0 -2px 0 var(--mint); }
.tb-tray { position: absolute; right: 14px; display: flex; align-items: center; gap: 14px; }
.tb-chevron { color: var(--ink-3); }
.tb-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-size: 11px; }
[data-os="windows"] .terminal { top: 40px; border-radius: 8px; }
[data-os="windows"] .term-bar { gap: 0; padding: 0 0 0 8px; }
.term-lights { display: flex; gap: 7px; }
.term-title { margin-inline: auto; transform: translateX(-20px); }
.term-tab { align-self: flex-end; height: 30px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px 8px 0 0; background: #0C0E10; color: #C9CDD1; font: 500 12px var(--mono); }
.term-controls { margin-left: auto; display: flex; height: 100%; }
.term-controls b { display: grid; place-items: center; width: 44px; font-weight: 400; color: #8D9398; }
[data-os="windows"] .popover { top: auto; bottom: 60px; right: 12px; border-radius: 10px; }

/* Provider tabs inside the popover */
.providers-tabs { display: flex; gap: 4px; margin: -4px -4px 14px; padding: 3px; border-radius: 10px; background: var(--glass-card); font-size: 12px; font-weight: 600; }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: 7px; color: var(--ink-3); }
.tab.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--glass-edge); }

@media (max-width: 760px) {
  .taskbar { justify-content: flex-end; }
  .tb-apps { display: none; }
  [data-os="windows"] .desk { padding: 24px 16px 64px; }
  [data-os="windows"] .popover { position: relative; bottom: auto; right: auto; }
}
