:root {
  --paper: #FFFFFF;
  --surface: #F7F7F8;
  --line: #EAECEF;
  --ink: #1F2329;
  --ink-2: #525862;
  --ink-3: #596069;
  --muted: #596069;
  --seal: #DA424F;
  --seal-text: #B52B37;
  --seal-soft: rgba(218, 66, 79, 0.08);
  --shadow: 0 20px 54px rgba(31, 35, 41, 0.08);
  --serif: Georgia, "Iowan Old Style", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

html[data-theme="dark"] {
  --paper: #1F2023;
  --surface: #26282C;
  --line: #31343A;
  --ink: #EDEEF0;
  --ink-2: #B5BAC3;
  --ink-3: #949BA6;
  --muted: #949BA6;
  --seal: #C0575E;
  --seal-text: #E58289;
  --seal-soft: rgba(192, 87, 94, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  transition: background-color 0.24s ease, color 0.24s ease;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 700px; }

/* Header — anchors only (Appearance lives on the macOS preview stages) */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid #EAECEF;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: -0.04em;
  color: #1F2329;
  line-height: 1;
}
.mark .dot { color: #DA424F; }

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-name .dot { color: var(--seal); }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a { text-decoration: none; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 56px 0 68px;
}

.hero-head {
  max-width: 860px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.caret-tail {
  white-space: nowrap;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.84em;
  background: var(--seal);
  vertical-align: -0.07em;
  margin-left: 5px;
  animation: caret-blink 1.25s steps(1, end) infinite;
}
@keyframes caret-blink { 0%, 56% { opacity: 1; } 57%, 100% { opacity: 0; } }

.subhead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 660px;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.btn-solid:hover { opacity: 0.88; }

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.btn-line:hover { border-color: var(--ink-2); background: var(--surface); }

.price-line {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
}

.meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

.hero-shot {
  margin-top: 34px;
}

/* Segmented Appearance Pill (Light | Dark) */
.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.theme-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.theme-seg button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-seg button:hover { color: var(--ink); }
.theme-seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

/* Sections */
.sec {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}

h2.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.sec-sub {
  color: var(--ink-2);
  max-width: 680px;
  margin: 0 0 30px;
  font-size: 16.5px;
  text-wrap: pretty;
}

/* Screenshot viewer stage */
.shot-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.shot-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  background: var(--paper);
}
.shot-video[hidden] { display: none; }

.shot-play-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.shot-play-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.shot-play-btn[hidden] { display: none; }

.shot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(31, 35, 41, 0.16);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1F2329;
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 35, 41, 0.12);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.shot-nav:hover {
  background: var(--paper);
  border-color: var(--seal);
  color: var(--seal-text);
  transform: translateY(-50%) scale(1.04);
}

.shot-nav:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.shot-prev { left: 12px; }
.shot-next { right: 12px; }

html[data-theme="dark"] .shot-nav {
  background: rgba(31, 32, 35, 0.86);
  border-color: rgba(237, 238, 240, 0.18);
  color: #EDEEF0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .shot-nav:hover {
  background: var(--paper);
  border-color: var(--seal);
  color: var(--seal-text);
}

.shot-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 4px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.shot-cap-text {
  flex: 1 1 320px;
  min-width: 0;
}

.shot-cap-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.shot-count {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
}

.viewer-card {
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.viewer-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-3);
}

.viewer-card:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.viewer-card[aria-selected="true"] {
  background: var(--paper);
  border-color: var(--seal);
  box-shadow: 0 0 0 1px var(--seal), 0 8px 24px rgba(31, 35, 41, 0.06);
}

html[data-theme="dark"] .viewer-card[aria-selected="true"] {
  box-shadow: 0 0 0 1px var(--seal), 0 10px 26px rgba(0, 0, 0, 0.28);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--seal-text);
  margin-bottom: 8px;
}

.sec-visual {
  margin-top: 28px;
}

/* Table (only used on dedicated comparison subpages) */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

table.cmp th, table.cmp td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.cmp th {
  background: var(--surface);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}

table.cmp tr:last-child td { border-bottom: none; }
table.cmp tr.hi td { background: var(--seal-soft); }
table.cmp td:first-child { font-weight: 600; white-space: nowrap; }

/* Pricing */
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--seal-text);
  border: 1px solid var(--seal);
  background: var(--seal-soft);
  padding: 2px 9px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.big-price {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.big-price span {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 400;
}

.price-list {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.price-list li { margin-bottom: 6px; }

.price-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FAQ */
.faq { margin-top: 34px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ink-3);
}
.faq details[open] summary::after { content: "−"; color: var(--seal-text); }
.faq details p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 760px;
}

/* Subpage prose */
.prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.22;
  margin: 0 0 16px;
  text-wrap: balance;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  margin: 34px 0 10px;
}
.prose p, .prose li {
  color: var(--ink-2);
  font-size: 15.5px;
}
.prose ul { padding-left: 20px; }

/* Footer */
footer.foot {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

footer.foot a {
  text-decoration: none;
  color: var(--ink-2);
}
footer.foot a:hover { color: var(--ink); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; opacity: 1; }
  .viewer-card, .shot-nav { transition: none; }
  .viewer-card:hover { transform: none; }
  .shot-nav:hover { transform: translateY(-50%); }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 38px 0 52px; }
  .grid-2, .grid-3, .price-card { grid-template-columns: 1fr; }
  .nav { padding: 18px 0; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .nav { flex-wrap: wrap; row-gap: 12px; padding: 16px 0; }
  .nav-links { width: 100%; justify-content: space-between; gap: 10px; font-size: 13.5px; }
  .hero { padding: 32px 0 48px; }
  .hero h1 { font-size: clamp(30px, 8vw, 38px); }
  .subhead { font-size: 16px; }
  .cta-row { gap: 10px; }
  .cta-row a { flex: 1 1 160px; }
  .sec { padding: 48px 0; }
  .shot-stage { padding: 8px; border-radius: 10px; }
  .shot-nav { width: 36px; height: 36px; font-size: 20px; }
  .shot-prev { left: 8px; }
  .shot-next { right: 8px; }
  .shot-cap-meta { width: 100%; justify-content: space-between; margin-left: 0; }
  .price-card { padding: 22px 18px; gap: 20px; }
  footer.foot { flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 0 40px; }
}

@media (max-width: 560px) {
  .stage-bar { flex-direction: column; align-items: flex-start; }
}
