/* SwornIn marketing site — tokens sampled directly from the app icon,
   not guessed. See ../README.md for the parent noout.app site. */

:root {
  --ink: #0f1826;
  --surface: #1b2a42;
  --surface-2: #223554;
  --paper: #f5f3ee;
  --muted: #9fb0c6;
  --gold: #d8b362;
  --teal: #57a7a7;
  --line: #2c3f5c;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 720px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

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

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

a {
  color: var(--paper);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.nav-word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--paper);
}

.nav-word img {
  width: 28px;
  height: 28px;
}

.nav-word span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

/* ---------- Hero ---------- */

.hero {
  /* longhand only — a shorthand padding here would clobber .wrap's
     left/right padding when both classes land on the same element */
  padding-top: 48px;
  padding-bottom: 64px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 auto 24px;
  max-width: 14ch;
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 auto 32px;
}

.hero-sub strong {
  color: var(--paper);
  font-weight: 600;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

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

.hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}

/* ---------- Sections ---------- */

section.block {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

.block-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold);
  padding-top: 2px;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ladder {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.ladder-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.ladder-row:first-child {
  border-top: none;
}

.ladder-row .strike {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
}

.ladder-row.is-final .strike {
  color: var(--gold);
}

.ladder-row p {
  margin: 0;
  font-size: 15px;
}

.ladder-row.is-final p {
  color: var(--paper);
  font-weight: 600;
}

.facts {
  display: grid;
  gap: 24px;
}

.fact {
  border-left: 2px solid var(--line);
  padding-left: 18px;
}

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

.fact p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.mission {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 26ch;
  text-align: center;
  margin: 0 auto;
}

.mission .accent {
  color: var(--teal);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

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

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-word {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Legal / article pages ---------- */

.article {
  padding-top: 48px;
  padding-bottom: 64px;
}

.article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.article .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.article h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.article p,
.article li {
  color: var(--paper);
  font-size: 15.5px;
  line-height: 1.7;
}

.article p {
  margin: 0 0 16px;
}

.article ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.article a {
  color: var(--teal);
}

.article strong {
  color: var(--paper);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--paper);
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Phone frame (shared by /swornin/preview pages) ---------- */

.phone-frame {
  width: 300px;
  height: 620px;
  margin: 0 auto;
  background: #f5f3ee;
  border: 10px solid #000;
  border-radius: 46px;
  position: relative;
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  flex-shrink: 0;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 5;
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 44px 18px 18px;
  color: #0f1826;
  font-family: var(--font-body);
  text-align: left;
}

.phone-glow {
  position: relative;
  padding: 40px 0 64px;
}

.phone-glow::before {
  content: '';
  position: absolute;
  inset: -80px 0 auto;
  height: 420px;
  background: radial-gradient(circle at 50% 40%, rgba(216, 179, 98, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.phone-glow > * {
  position: relative;
  z-index: 1;
}

/* ---------- /swornin/preview replica shell ---------- */

.replica-header {
  padding: 48px 0 0;
  text-align: center;
}

.replica-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  font-size: 14px;
}

.replica-nav a {
  color: var(--muted);
  text-decoration: none;
}

.replica-nav a.is-active {
  color: var(--paper);
  font-weight: 600;
}

.replica-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.replica-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.replica-header p {
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
  margin: 0 auto 40px;
}

.replica-caption {
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  max-width: 46ch;
  margin: 28px auto 0;
}

/* ---------- Preview index cards ---------- */

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.preview-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.preview-card:hover {
  border-color: var(--gold);
  background: var(--surface);
}

.preview-card h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 4px;
}

.preview-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ---------- App-screen content (inside .phone-screen) ---------- */

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.app-step-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a93a1;
}

.app-close {
  color: #8a93a1;
  font-size: 15px;
  line-height: 1;
}

.app-h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 14px;
  color: #0f1826;
}

.app-input {
  width: 100%;
  border: 1px solid #ddd8cc;
  border-radius: 10px;
  background: #ece8dd;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: #0f1826;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.app-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.app-chip {
  border: 1px solid #ddd8cc;
  background: transparent;
  border-radius: 16px;
  padding: 7px 13px;
  font-size: 12px;
  font-family: var(--font-body);
  color: #45505f;
  cursor: pointer;
}

.app-chip.is-selected {
  background: #0f1826;
  border-color: #0f1826;
  color: #f5f3ee;
  font-weight: 600;
}

.app-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a93a1;
  margin: 4px 0 8px;
}

.app-value {
  font-weight: 700;
  font-size: 18px;
  color: #0f1826;
  margin: 2px 0 14px;
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.app-toggle {
  width: 42px;
  height: 25px;
  border-radius: 13px;
  background: #d8d2c2;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.app-toggle.is-on {
  background: #0f1826;
}

.app-toggle::after {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.app-toggle.is-on::after {
  transform: translateX(17px);
}

.app-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #0f1826;
  color: #f5f3ee;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.app-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.app-btn-back {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #45505f;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
}

.app-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid #ece8dd;
  cursor: pointer;
}

.app-picker-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c8c2b3;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.app-picker-row.is-selected .app-picker-radio {
  border-color: #0f1826;
  background: #0f1826;
}

.app-picker-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #ece8dd;
  flex-shrink: 0;
}

.app-picker-name {
  flex: 1;
  font-size: 13.5px;
  color: #0f1826;
}

.app-search {
  width: 100%;
  border: 1px solid #ddd8cc;
  border-radius: 20px;
  background: #ece8dd;
  padding: 9px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  color: #0f1826;
  margin: 10px 0;
  box-sizing: border-box;
}

.app-contract {
  font-size: 15px;
  line-height: 1.5;
  color: #0f1826;
  margin: 0 0 16px;
}

.app-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
}

.app-checkbox {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1.5px solid #c8c2b3;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #f5f3ee;
  box-sizing: border-box;
}

.app-checkbox.is-checked {
  background: #0f1826;
  border-color: #0f1826;
}

.app-checkbox-label {
  font-size: 12px;
  color: #45505f;
  line-height: 1.4;
}

.app-checkbox-label u {
  color: #0f1826;
}

.app-sig-pad {
  width: 100%;
  height: 100px;
  border: 1px solid #ddd8cc;
  border-radius: 10px;
  background: #ece8dd;
  display: block;
  touch-action: none;
  margin-bottom: 4px;
  box-sizing: border-box;
}

.app-sig-hint {
  text-align: center;
  font-size: 11px;
  color: #8a93a1;
  margin: -78px 0 20px;
  pointer-events: none;
}

.app-hold-btn {
  position: relative;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid #0f1826;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.app-hold-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.app-hold-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #0f1826;
}

.app-hold-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #0f1826;
}

.app-sworn {
  text-align: center;
  padding: 60px 10px;
}

.app-sworn h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: #0f1826;
  margin: 16px 0 8px;
}

.app-sworn p {
  font-size: 13px;
  color: #45505f;
}

/* ---------- /swornin/tour ---------- */

.tour-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.tour-row:nth-child(even) {
  flex-direction: row-reverse;
}

.tour-copy {
  flex: 1;
  min-width: 0;
}

.tour-copy .block-label {
  color: var(--gold);
  margin-bottom: 14px;
}

.tour-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.tour-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 40ch;
}

.tour-copy a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
}

.tour-copy a:hover {
  text-decoration: underline;
}

.tour-mini-frame {
  width: 260px;
  height: 540px;
}

.tour-outro {
  text-align: center;
  padding: 64px 0 80px;
  border-top: 1px solid var(--line);
}

.tour-outro p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .tour-row,
  .tour-row:nth-child(even) {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .tour-copy p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- /swornin/preview/history ---------- */

.app-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.app-stat {
  flex: 1;
}

.app-stat-value {
  font-weight: 700;
  font-size: 20px;
  color: #0f1826;
  margin: 0;
}

.app-stat-label {
  font-size: 10px;
  color: #8a93a1;
  margin: 2px 0 0;
}

.app-graph-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a93a1;
  margin: 0 0 8px;
}

.app-graph-row {
  display: flex;
}

.app-day-labels {
  width: 20px;
  margin-top: 14px;
  height: 112px;
  position: relative;
  flex-shrink: 0;
}

.app-day-labels span {
  position: absolute;
  font-size: 8px;
  color: #8a93a1;
}

.app-graph-scroll {
  overflow-x: auto;
  flex: 1;
  min-width: 0;
}

.app-month-row {
  position: relative;
  height: 14px;
}

.app-month-label {
  position: absolute;
  font-size: 8px;
  color: #8a93a1;
}

.app-graph-weeks {
  display: flex;
  gap: 3px;
}

.app-week-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-day-cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.app-day-cell-split {
  display: flex;
  overflow: hidden;
  padding: 0;
}

.app-day-cell-split span {
  flex: 1;
}

.app-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 8px;
}

.app-legend span {
  font-size: 9px;
  color: #8a93a1;
}

.app-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.app-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ece8dd;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.app-history-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f1826;
  margin: 0 0 2px;
}

.app-history-meta {
  font-size: 11px;
  color: #8a93a1;
  margin: 0;
  text-transform: capitalize;
}

.app-history-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0f1826;
  flex-shrink: 0;
  margin-left: 8px;
}

.app-history-tag.is-broken {
  color: #C22E2E;
}
