:root {
  --ink: #16213A;
  --ink-soft: #3A4766;
  --paper: #EDF1F6;
  --paper-deep: #E2E8F0;
  --mist: #C9D3E0;
  --lamp: #F2A93B;
  --lamp-deep: #B87413;
  --moss: #4F7F6B;
  --white: #FBFCFE;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header {
  max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; font-family: var(--sans); font-size: .95rem; font-weight: 500; }
.site-header nav a { text-decoration: none; }
.site-header nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  background: var(--ink); color: var(--white); text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink); cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #24335a; }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-deep); }
.btn-amber { background: var(--lamp); border-color: var(--lamp); color: var(--ink); }
.btn-amber:hover { background: #f7bb5c; }

/* hero */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 700; max-width: 14ch; }
.lede { margin-top: 1.5rem; font-size: 1.2rem; max-width: 34em; color: var(--ink-soft); }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.note { margin-top: 1.25rem; font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }

/* phone demo */
.demo { display: flex; flex-direction: column; align-items: center; }
.phone {
  width: min(320px, 100%); background: var(--ink); border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 60px -25px rgba(22,33,58,.55);
}
.phone-screen {
  background: #1F2C4B; color: var(--white); border-radius: 33px; padding: 1.1rem 1.1rem 1rem;
  min-height: 560px; display: flex; flex-direction: column; gap: .9rem; font-family: var(--sans);
  transition: background .6s;
}
.status { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 600; color: var(--mist); }
.status-icon { display: inline-flex; color: var(--mist); }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.app {
  aspect-ratio: 1; border-radius: 14px; position: relative; opacity: .38; filter: grayscale(1);
  transition: opacity .5s, filter .5s;
}
.app.a1 { background: #7A93C9; } .app.a2 { background: #C97A8F; } .app.a3 { background: #7AC9A6; } .app.a4 { background: #C9B77A; }
.app::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='2' fill='%23fff'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E");
  transition: opacity .3s;
}
.apps-label { font-size: .8rem; color: var(--mist); margin-top: -.3rem; }

.passage {
  flex: 1; max-height: 290px; overflow-y: auto; background: var(--paper); color: var(--ink);
  border-radius: 18px; padding: 1.1rem 1.15rem; font-family: var(--serif); font-size: .98rem; line-height: 1.7;
  scrollbar-width: thin;
}
.passage h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.passage p + p { margin-top: .7rem; }
.passage sup { font-family: var(--sans); font-size: .66em; color: var(--lamp-deep); font-weight: 600; margin-right: .25em; }
.progress { height: 6px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--lamp); border-radius: 99px; transition: width .12s linear; }
.demo-hint { font-size: .85rem; color: var(--mist); min-height: 1.3em; }

.phone-screen.is-open { background: #234a43; }
.phone-screen.is-open .app { opacity: 1; filter: none; }
.phone-screen.is-open .app::after { opacity: 0; }
.phone-screen.is-open .progress span { background: #8fd3b4; }
.phone-screen.is-open .demo-hint { color: #bfe9d5; }
.phone-screen.is-open #shackle { transform: translateY(-2px) rotate(-20deg); transform-origin: 10.5px 7px; }

.demo-caption { margin-top: 1.1rem; font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); text-align: center; max-width: 28em; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* sections */
.section { padding: 5rem 0; }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.section-tint { background: var(--paper-deep); }
.section h2, .join h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
.section-intro { margin-top: 1rem; color: var(--ink-soft); font-size: 1.15rem; }

.steps { list-style: none; counter-reset: step; margin-top: 3rem !important; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--sans); font-weight: 600; color: var(--lamp-deep); margin-bottom: .5rem; }
.steps h3, .feature h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.steps p, .feature p { color: var(--ink-soft); }

.features { margin-top: 3rem !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2.5rem; }
.feature { max-width: 34ch; }



/* join */
.join { background: var(--ink); color: var(--white); padding: 5rem 0; }
.join-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.join p { margin-top: 1rem; color: var(--mist); max-width: 34em; font-size: 1.1rem; }
.form { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; max-width: 560px; }
.form input {
  flex: 1 1 260px; font: inherit; font-family: var(--sans); padding: .85rem 1.2rem; border-radius: 999px;
  border: 2px solid transparent; background: var(--white); color: var(--ink);
}
.form-msg { flex-basis: 100%; margin: 0 !important; font-family: var(--sans); font-size: .95rem !important; min-height: 1.4em; color: var(--lamp) !important; }

.site-footer { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 4rem; color: var(--ink-soft); }
.brand-line { font-weight: 700; color: var(--ink); }
.fine { margin-top: 1.5rem; font-family: var(--sans); font-size: .85rem; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 1.5rem; }
  .steps, .features { grid-template-columns: 1fr; gap: 2rem; }
  .site-header nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
