/* Rank Lock website: the same two looks as the app, from the Astryx design system.
   Light = Neutral (Figtree), dark = Gothic (Fustat). look.js picks one; the device setting decides until someone does. */
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fustat"; src: url(fonts/fustat-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fustat"; src: url(fonts/fustat-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fustat"; src: url(fonts/fustat-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fustat"; src: url(fonts/fustat-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root, :root[data-look=light] {
  color-scheme: light;
  --paper: #f1f1f1; --grid: transparent; --sheet: #ffffff; --ink: #1b1b1b; --muted: #474747; --line: #e2e2e2;
  --blue: #1b1b1b; --on-blue: #ffffff; --blue-soft: #ececec; --link: #0067ce;
  --red: #c0262c; --hi: #ffce2f; --on-hi: #1b1b1b; --mint: #2f7d33; --violet: #6b46e0; --sleep: #4a5672;
  --study: #2346d6; --shadow: rgba(0,0,0,.16); --mark: #ffce2f;
  --display: Figtree, "Segoe UI", system-ui, sans-serif; --body: Figtree, "Segoe UI", system-ui, sans-serif; --r: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-look=light]) {
  color-scheme: dark;
  --paper: #101314; --grid: transparent; --sheet: #191d20; --ink: #e8f1f6; --muted: #96a0ab; --line: #2c3236;
  --blue: #e8f1f6; --on-blue: #101314; --blue-soft: #24292d; --link: #a3b5d6;
  --red: #c6a6a2; --hi: #d3c490; --on-hi: #101314; --mint: #b3c79a; --violet: #b29bc4; --sleep: #5e676e;
  --study: #8696b8; --shadow: rgba(0,0,0,.6); --mark: rgba(211,196,144,.32);
  --display: Fustat, "Segoe UI", system-ui, sans-serif; --body: Fustat, "Segoe UI", system-ui, sans-serif; --r: 8px; } }
:root[data-look=dark] {
  color-scheme: dark;
  --paper: #101314; --grid: transparent; --sheet: #191d20; --ink: #e8f1f6; --muted: #96a0ab; --line: #2c3236;
  --blue: #e8f1f6; --on-blue: #101314; --blue-soft: #24292d; --link: #a3b5d6;
  --red: #c6a6a2; --hi: #d3c490; --on-hi: #101314; --mint: #b3c79a; --violet: #b29bc4; --sleep: #5e676e;
  --study: #8696b8; --shadow: rgba(0,0,0,.6); --mark: rgba(211,196,144,.32);
  --display: Fustat, "Segoe UI", system-ui, sans-serif; --body: Fustat, "Segoe UI", system-ui, sans-serif; --r: 8px;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; color: var(--ink); font: 16px/1.6 var(--body); overflow-x: clip; background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 60px); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; margin-bottom: 14px; letter-spacing: -.015em; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
p { margin: 0 0 12px; max-width: 64ch; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(5vw, 18px); }
.band { padding: clamp(48px, 7vw, 96px) 0; }
.muted { color: var(--muted); }
mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; padding: 0 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { white-space: nowrap; font: 700 24px var(--display); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.logo i { width: 14px; height: 14px; border-radius: 4px; background: var(--blue); box-shadow: 3px 3px 0 var(--hi); }
.lookbtn { width: 38px; min-height: 38px; padding: 0; font-size: 17px; }
.nav .links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav .links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav .links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .links { display: none; } .nav .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r); font: 600 16px var(--body); text-decoration: none; border: 1px solid var(--line);
  background: var(--sheet); color: var(--ink); cursor: pointer; white-space: nowrap; transition: filter .15s, transform .05s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.kicker { display: inline-block; font: 600 14px var(--body); color: var(--blue); background: var(--blue-soft);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 18px; }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 18px 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* the picture: a day of the plan, each block deciding what the laptop allows */
.day { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative;
  box-shadow: 0 24px 48px -24px var(--shadow); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.day-head b { font: 700 22px var(--display); }
.blk { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: 10px; margin-bottom: 6px; position: relative; }
.blk::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--c); }
.blk .t { font: 600 15px var(--display); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.blk .x { font-weight: 600; }
.blk .x small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.blk .lk { font: 600 12px var(--body); color: var(--c); border: 1px solid currentColor; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.blk.now { background: color-mix(in srgb, var(--hi) 34%, transparent); }
.blk.now .t::after { content: "NOW"; display: block; width: max-content; margin-top: 3px; padding: 1px 6px;
  border-radius: 5px; font: 700 10px/1.5 var(--body); letter-spacing: .06em; background: var(--ink); color: var(--sheet); }
.s { --c: var(--study); } .c { --c: var(--violet); } .f { --c: var(--mint); } .g { --c: var(--red); } .z { --c: var(--sleep); }
@media (max-width: 480px) { .blk { grid-template-columns: 52px minmax(0, 1fr); } .blk .lk { grid-column: 2; justify-self: start; } }
.stamp { margin-top: 12px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.stamp .bar { flex: 1; height: 8px; border-radius: 5px; background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stamp .bar i { position: absolute; inset: 0 38% 0 0; background: var(--study); border-radius: 5px; }

/* sections */
.alt { background: var(--sheet); border-block: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.alt .card { background: var(--paper); }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.card li { margin: 4px 0; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* off switch rules */
.rules { list-style: none; padding: 0; margin: 0; }
.rules li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rules li b { font: 700 18px var(--display); }
@media (max-width: 520px) { .rules li { grid-template-columns: 1fr; gap: 2px; } }

/* download steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--hi); color: var(--on-hi); font: 700 20px var(--display); margin-bottom: 12px; }
.steps li p { color: var(--muted); margin: 0; font-size: 15px; }
.req { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); }
.req span::before { content: "✓ "; color: var(--mint); font-weight: 700; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; font: 600 22px var(--display); color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* closing band + footer */
.closer { background: var(--blue); color: var(--on-blue); border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: flex;
  justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closer h2 { margin: 0 0 8px; } .closer p { margin: 0; opacity: .9; }
.closer .btn { background: var(--hi); border-color: var(--hi); color: var(--on-hi); }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* terms and privacy */
.legal { max-width: 800px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) max(5vw, 18px) 48px; }
.legal h1 { font-size: clamp(38px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 28px; margin: 36px 0 10px; }
.legal p, .legal li { max-width: 70ch; }
.legal ul { padding-left: 22px; } .legal li { margin: 5px 0; }
.legal .summary { background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 22px 0; }
.legal .summary ul { margin: 6px 0 0; }
.legal .fill { background: var(--hi); color: var(--on-hi); border-radius: 4px; padding: 0 5px; font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; }
.legal .scroll { overflow-x: auto; }

/* login page */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 18px; }
.authbox { width: 100%; max-width: 420px; background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  box-shadow: 0 24px 48px -24px var(--shadow); }
.authbox h1 { font-size: 38px; margin-bottom: 8px; }
.gbtn { width: 100%; margin-top: 22px; }
.gbtn svg { width: 20px; height: 20px; }
.notice { margin-top: 16px; font-size: 14px; border-radius: 10px; padding: 10px 12px; background: var(--blue-soft); }
.notice.err { background: color-mix(in srgb, var(--red) 14%, transparent); }
.authbox .small { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* waitlist dialog */
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 28px; width: min(460px, calc(100vw - 32px)); background: var(--sheet); color: var(--ink);
  box-shadow: 0 30px 60px -20px var(--shadow); }
dialog::backdrop { background: rgba(8, 14, 28, .55); }
dialog h2 { font-size: 34px; margin-bottom: 6px; }
dialog label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 0; }
dialog input:not([type=checkbox]), dialog select { display: block; width: 100%; margin-top: 6px; font: 16px var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 0 12px; }
dialog input:focus, dialog select:focus { border-color: var(--blue); outline: none; }
dialog .two { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
dialog .tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
dialog .tick input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
dialog .cta { margin-top: 20px; }
.err { color: var(--red); font-size: 14px; margin: 10px 0 0; }

/* announcement bar */
.announce { background: var(--blue); color: var(--on-blue); font-size: 14px; }
.announce .wrap { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; padding-block: 9px; text-align: center; }
.announce b { font-weight: 700; }
.announce a { color: inherit; font-weight: 600; }

/* who it's for */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
@media (max-width: 820px) { .who { grid-template-columns: 1fr; } }
.who .card { display: flex; flex-direction: column; gap: 10px; }
.who .card .btn { align-self: flex-start; margin-top: auto; }
.tag { display: inline-block; align-self: flex-start; font: 600 13px var(--body); border-radius: 6px; padding: 3px 10px; }
.tag.live { background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); }
.tag.soon { background: color-mix(in srgb, var(--hi) 30%, transparent); color: var(--ink); }

/* see it in action: small replicas of real screens */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; align-items: start; }
@media (max-width: 980px) { .shots { grid-template-columns: 1fr; } }
.shot { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 18px 40px -26px var(--shadow); }
.alt .shot { background: var(--paper); }
.shot .cap { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 10px; }
.shot h4 { margin: 0 0 4px; font: 700 18px var(--display); }
.shot .sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.shot .q { border-top: 1px solid var(--line); padding: 10px 0 0; margin-top: 10px; font-size: 14px; }
.shot .q.ok { border-left: 3px solid var(--mint); padding-left: 10px; }
.shot .q.no { border-left: 3px solid var(--red); padding-left: 10px; }
.shot .q b { font-weight: 700; }
.shot .q small { display: block; color: var(--muted); }
.shot .note { font-size: 14px; background: var(--blue-soft); border-radius: 8px; padding: 9px 11px; margin-top: 10px; }
.shot .pat { font-size: 13px; margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.shot .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.meter { height: 8px; border-radius: 5px; background: linear-gradient(90deg, var(--red), var(--hi), var(--mint)); position: relative; margin: 6px 0 2px; }
.meter i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--ink); }
.shot .chip { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); }
.shot .photo { height: 54px; border-radius: 8px; border: 1px dashed var(--line); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.shot .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* waitlist: hidden honeypot field */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok { color: var(--mint); font-size: 15px; margin: 10px 0 0; }

/* phones: a header that fits one line */
@media (max-width: 480px) {
  .nav .wrap { gap: 8px; }
  .logo { font-size: 20px; }
  .nav a.btn[href="login.html"] { display: none; }
  .nav .btn.wl { padding: 0 12px; }
}

/* light look: warmer and more alive (dark stays calm) */
:root:not([data-look=dark]) body { background-image: radial-gradient(1000px 600px at 80% 200px, rgba(35, 70, 214, .12), transparent 70%); background-repeat: no-repeat; background-size: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-look=light]) body { background-image: none; } }
:root:not([data-look=dark]) .kicker { background: #fff4cc; color: #5a4300; }
@media (prefers-color-scheme: dark) { :root:not([data-look=light]) .kicker { background: var(--blue-soft); color: var(--blue); } }
.card { transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px var(--shadow); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.grid3 .card, .who .card { border-top: 4px solid var(--accent, var(--study)); }
.grid3 .card:nth-child(3n+2) { --accent: var(--violet); }
.grid3 .card:nth-child(3n) { --accent: var(--mint); }
.who .card:nth-child(2) { --accent: var(--hi); }
.band.alt { background: color-mix(in srgb, var(--sheet) 70%, transparent); border-block: 1px solid var(--line); }
h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--hi); margin-top: 12px; }
dialog h2::after, .who h2::after, .card h2::after { display: none; }
@media (max-width: 480px) { dialog .two { grid-template-columns: 1fr; gap: 0; } }
dialog [hidden] { display: none !important; }

