/* RestartReady — restartready.app
   Classic indie Mac app site: light, calm, native. System fonts on purpose —
   this page is read almost exclusively on Macs. */

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fcfbf9;
  --bg-soft: #f4f2ee;
  --ink: #1d1d1f;
  --ink-2: #55544f;
  --ink-3: #8a8880;
  --line: rgba(29, 29, 31, 0.1);
  --line-soft: rgba(29, 29, 31, 0.06);
  --green: #0e9d6a;
  --green-deep: #0b7f56;
  --green-tint: #e7f5ee;
  --amber: #b07714;
  --red: #c93c2e;
  --term-bg: #17181c;
  --term-ink: #d6dae2;
  --term-dim: #7d838f;
  --term-green: #5fd39a;
  --term-amber: #e6b45e;
  --term-red: #ee7261;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --shadow-win: 0 0 0 1px rgba(29, 29, 31, 0.08), 0 2px 8px rgba(29, 29, 31, 0.06), 0 24px 60px -12px rgba(29, 29, 31, 0.18);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.container { max-width: 1000px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 0.4em; font-weight: 700; letter-spacing: -0.022em; line-height: 1.12; }
p { margin: 0 0 1em; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-title em { font-style: normal; color: var(--green-deep); }
.section-lead { color: var(--ink-2); font-size: 1.06rem; max-width: 60ch; }
.section-lead.quiet { font-size: 0.95rem; color: var(--ink-3); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons: macOS-ish, small radius, no gradients ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 9px 18px;
  font: 590 0.95rem var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 12px 24px; font-size: 1.02rem; }
.btn-sm { padding: 6px 14px; font-size: 0.88rem; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-plain { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-plain:hover { border-color: rgba(29, 29, 31, 0.25); }
.btn-cut { background: #fff; border-color: rgba(201, 60, 46, 0.45); color: var(--red); font-weight: 590; }
.btn-cut:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-cut[disabled] { opacity: 0.45; cursor: not-allowed; background: #fff; color: var(--red); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 249, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 58px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 0.93rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(52px, 8vw, 96px) clamp(20px, 4vw, 32px) 0; }
.hero-icon {
  width: clamp(88px, 12vw, 116px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(29, 29, 31, 0.16));
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); letter-spacing: -0.03em; }
.hero-sub {
  color: var(--ink-2);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 54ch;
  margin: 0 auto 26px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 14px; }
.hero-note { font-size: 0.85rem; color: var(--ink-3); }

/* ---------- App window mock ---------- */
.appwin {
  max-width: 560px;
  margin: clamp(36px, 6vw, 60px) auto 0;
  background: #f6f5f2;
  border-radius: 12px;
  box-shadow: var(--shadow-win);
  overflow: hidden;
  text-align: left;
}
.appwin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fbfaf8, #f1efeb);
  border-bottom: 1px solid var(--line-soft);
}
.tl { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.appwin-title {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-right: 52px; /* balance the traffic lights */
}
.appwin-body { padding: 30px 26px 26px; }
.status-block { text-align: center; margin-bottom: 24px; }
.status-badge { width: 56px; height: 56px; margin-bottom: 12px; }
.status-title { font-size: 1.25rem; margin: 0 0 2px; letter-spacing: -0.02em; }
.status-sub { font-size: 0.88rem; color: var(--ink-3); margin: 0; }
.check-group {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.check-group li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 16px;
  font-size: 0.94rem;
}
.check-group li + li { border-top: 1px solid var(--line-soft); }
.check-val { color: var(--ink-3); font-size: 0.88rem; text-align: right; }
.check-val.ok { color: var(--green-deep); font-weight: 590; }

/* ---------- Why ---------- */
.why { padding: clamp(64px, 10vw, 120px) clamp(20px, 4vw, 32px) clamp(20px, 4vw, 40px); }
.why-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.why .section-lead { margin: 0 auto; }

/* ---------- Features ---------- */
.features { padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 32px); }
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 820px) { .feature-row { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

/* ---------- Demo ---------- */
.demo { padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 32px); }
.demo .section-title, .demo .section-lead { text-align: center; }
.demo .section-lead { margin-bottom: 34px; }
.sim { max-width: 760px; margin: 0 auto; }
.sim-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px 14px;
}
.sim-status { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: center; }
.led-green { background: #2fbf71; }
.led-amber { background: #e0a33b; }
.led-red { background: var(--red); }
.led-off { background: #c9c7c1; }
.sim-status-host { font: 500 0.85rem var(--mono); color: var(--ink-3); }
.sim-status-text { font-weight: 600; font-size: 0.95rem; }
.sim-actions { display: flex; align-items: center; gap: 16px; }

.rr-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.rr-toggle-label { font-size: 0.88rem; font-weight: 590; color: var(--ink-2); }
.rr-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rr-toggle-track {
  width: 40px; height: 24px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.16);
  position: relative;
  transition: background 0.18s ease;
}
.rr-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.rr-toggle input:checked + .rr-toggle-track { background: #34c759; }
.rr-toggle input:checked + .rr-toggle-track .rr-toggle-thumb { transform: translateX(16px); }
.rr-toggle input:focus-visible + .rr-toggle-track { outline: 2px solid var(--green); outline-offset: 2px; }

.term {
  background: var(--term-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-win);
  overflow: hidden;
}
.term.is-flicker { animation: term-flicker 1s linear; }
@keyframes term-flicker {
  0%, 100% { filter: none; }
  8% { filter: brightness(0.2); }
  14% { filter: none; }
  22% { filter: brightness(0.1); }
  56% { filter: brightness(0.1); }
  70% { filter: brightness(0.55); }
  84% { filter: brightness(0.2); }
}
@media (prefers-reduced-motion: reduce) { .term.is-flicker { animation: none; } }
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #232429;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.term-title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: #9ca1ab;
}
.term-clock { font: 400 0.75rem var(--mono); color: #6f747e; }
.term-body {
  margin: 0;
  padding: 16px 18px;
  min-height: 250px;
  max-height: 330px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--term-ink);
}
.t-dim { color: var(--term-dim); }
.t-green { color: var(--term-green); }
.t-amber { color: var(--term-amber); }
.t-red { color: var(--term-red); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--term-green);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
.t-cursor--amber { background: var(--term-amber); }
@keyframes blink { 50% { opacity: 0; } }

/* macmini element kept for JS state only */
.macmini { display: none; }

.sim-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding-top: 14px;
}
.downtime {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 14px;
}
.downtime-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.downtime-value { font: 700 1rem var(--mono); color: var(--amber); }
.downtime.ok .downtime-value { color: var(--green-deep); }
.approve-chip {
  display: inline-flex;
  align-items: center;
  background: var(--green-tint);
  border: 1px solid rgba(14, 157, 106, 0.25);
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 590;
  color: var(--green-deep);
}
.sim-foot .btn { margin-left: auto; }
.demo-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 18px auto 0;
  max-width: 60ch;
}

/* ---------- Statuses / Approval split ---------- */
.statuses, .approval { padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 32px); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(29, 29, 31, 0.04);
  overflow: hidden;
}
.status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 0.97rem;
  font-weight: 500;
}
.status-list li + li { border-top: 1px solid var(--line-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-ok { background: #2fbf71; }
.dot-warn { background: #e0a33b; }
.dot-bad { background: var(--red); }

/* ---------- Phone ---------- */
.fig-phone { margin: 0; text-align: center; }
.fig-phone figcaption { font-size: 0.8rem; color: var(--ink-3); margin-top: 14px; }
.phone {
  width: 270px;
  margin: 0 auto;
  background: linear-gradient(160deg, #dfe5ec, #c8cfd9);
  border-radius: 34px;
  box-shadow: var(--shadow-win);
  padding: 22px 14px 30px;
  min-height: 300px;
  text-align: left;
}
.phone-time {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #2b3038;
  margin-bottom: 16px;
}
.phone-notif {
  background: rgba(252, 252, 253, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(20, 24, 30, 0.16);
  transition: opacity 0.3s, transform 0.3s;
}
.phone-notif.is-gone { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.phone-notif-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.phone-notif-head img { border-radius: 5px; }
.phone-notif-app { font-size: 0.72rem; font-weight: 600; color: #63676e; text-transform: uppercase; letter-spacing: 0.02em; }
.phone-notif-when { margin-left: auto; font-size: 0.72rem; color: #8b8f96; }
.phone-notif-body { font-size: 0.88rem; line-height: 1.4; color: #1c1e22; }
.phone-notif-body strong { display: block; margin-bottom: 2px; }
.phone-actions { display: flex; gap: 8px; margin-top: 11px; }
.phone-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 8px 0;
  font: 590 0.88rem var(--sans);
  cursor: pointer;
  transition: filter 0.12s;
}
.phone-btn:hover { filter: brightness(0.95); }
.phone-btn.approve { background: #34c759; color: #fff; }
.phone-btn.deny { background: rgba(28, 30, 34, 0.08); color: #1c1e22; }
.phone-result {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 590;
  line-height: 1.45;
  padding: 12px;
  border-radius: 14px;
  background: rgba(252, 252, 253, 0.88);
}
.phone-result.ok { color: #1e7a46; }
.phone-result.no { color: #a1352a; }

/* ---------- Honesty ---------- */
.honesty { padding: clamp(56px, 9vw, 104px) clamp(20px, 4vw, 32px); }
.honesty .section-lead { margin-bottom: 36px; }
.alert-mock {
  max-width: 400px;
  margin: 0 auto clamp(40px, 6vw, 60px);
  background: #f3f1ed;
  border-radius: 14px;
  box-shadow: var(--shadow-win);
  padding: 26px 24px 20px;
  text-align: center;
}
.alert-mock img { margin-bottom: 12px; border-radius: 11px; }
.alert-mock h3 { font-size: 0.95rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.alert-mock p { font-size: 0.83rem; color: var(--ink-2); line-height: 1.5; margin-bottom: 18px; }
.alert-actions { display: flex; gap: 9px; }
.alert-btn {
  flex: 1;
  border-radius: 7px;
  padding: 6px 0;
  font-size: 0.86rem;
  font-weight: 500;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.12), 0 1px 2px rgba(29, 29, 31, 0.08);
}
.alert-btn-primary { background: var(--green); color: #fff; box-shadow: none; font-weight: 590; }
.honesty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 44px);
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 820px) { .honesty-grid { grid-template-columns: 1fr; max-width: 520px; } }
.honesty-grid h3 { font-size: 1.02rem; }
.honesty-grid p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

/* ---------- Stack line ---------- */
.stack { padding: 0 clamp(20px, 4vw, 32px) clamp(48px, 8vw, 88px); }
.stack-line {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-2);
  font-size: 1.02rem;
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(40px, 6vw, 64px);
}
.stack-line strong { color: var(--ink); font-weight: 600; }

/* ---------- Requirements ---------- */
.reqs { padding: 0 clamp(20px, 4vw, 32px) clamp(56px, 9vw, 104px); }
.req-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(29, 29, 31, 0.05);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
}
.req-card h2 { font-size: 1.4rem; margin-bottom: 20px; }
.req-card dl {
  margin: 0 0 24px;
  text-align: left;
}
.req-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.req-card dt { color: var(--ink-3); font-weight: 500; }
.req-card dd { margin: 0; font-weight: 590; text-align: right; }
.req-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.req-note { font-size: 0.82rem; color: var(--ink-3); margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 0 clamp(20px, 4vw, 32px) clamp(56px, 9vw, 104px); }
.faq .section-title { margin-bottom: 28px; }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--ink);
  font: 600 1rem var(--sans);
  letter-spacing: -0.01em;
  text-align: left;
  padding: 17px 2px;
  cursor: pointer;
}
.faq-q:hover span:first-child { color: var(--green-deep); }
.faq-mark { color: var(--ink-3); font-weight: 400; font-size: 1.15rem; flex: none; }
.faq-q[aria-expanded="true"] .faq-mark { color: var(--green-deep); }
.faq-a { padding: 0 2px 20px; color: var(--ink-2); font-size: 0.95rem; max-width: 62ch; }

/* ---------- Closing ---------- */
.closing { text-align: center; padding: 0 clamp(20px, 4vw, 32px) clamp(72px, 10vw, 120px); }
.closing-icon {
  width: 72px; height: auto;
  filter: drop-shadow(0 6px 16px rgba(29, 29, 31, 0.14));
  margin-bottom: 18px;
}
.closing h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 24px; }
.closing .hero-cta { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 28px 0 40px; background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer .brand { font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer-links a { color: var(--ink-2); font-size: 0.86rem; }
.footer-links a:hover { color: var(--ink); }
.footer small { width: 100%; color: var(--ink-3); font-size: 0.78rem; }

/* ---------- Docker ---------- */
.docker { padding: 0 clamp(20px, 4vw, 32px) clamp(56px, 9vw, 104px); }
.docker-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}
.docker-card h2 { font-size: 1.4rem; margin-bottom: 12px; }
.docker-card > p { color: var(--ink-2); margin: 0 auto 20px; max-width: 52ch; }
.cmd {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: var(--ink);
  border-radius: 12px;
  overflow-x: auto;
}
.cmd code {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: #e7f5ee;
  white-space: nowrap;
  user-select: all;
}
.docker-note { font-size: 0.82rem; color: var(--ink-3); margin: 16px 0 0; }

/* ---------- App screenshot (hero) ---------- */
.app-shot {
  width: 100%;
  max-width: 900px;
  margin: clamp(32px, 5vw, 52px) auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -24px rgba(29, 29, 31, 0.38), 0 10px 26px -12px rgba(29, 29, 31, 0.22);
  line-height: 0;
}
.app-shot img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .app-shot { border-radius: 10px; } }
