/* ingijy / Ownsteps — shared styles. Visual idea: a well-printed technical manual. */

@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #18213a;
  --cobalt: #2645d6;
  --cobalt-deep: #1b33a6;
  --marker: #ffe04a;
  --lead: #5d6675;
  --rule: #dce1e8;
  --wash: #f3f5f9;
  --error: #b42318;
  --measure: 34rem;
  --wide: 72rem;
  --body: "Plex", system-ui, sans-serif;
  --display: "Plex Condensed", "Plex", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121829;
    --ink: #e8ecf5;
    --cobalt: #7f97ff;
    --cobalt-deep: #a9b8ff;
    --lead: #a3abbb;
    --rule: #2a3350;
    --wash: #1a2136;
    --error: #ff8a7a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }

/* ---------- header / footer ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.wordmark { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--display); letter-spacing: -0.005em; }
.wordmark svg { width: 1.35rem; height: 1.35rem; }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.site-nav a { color: var(--lead); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.site-foot { border-top: 1px solid var(--rule); margin-top: 6rem; padding: 2.5rem 0 3rem; color: var(--lead); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-foot a { color: var(--lead); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--lead); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 3rem; font-size: 1.6rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.muted { color: var(--lead); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.25rem; border-radius: 6px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-plain { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn-plain:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 1.5rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--lead); }

/* launch waitlist */
.notify { margin-top: 2rem; max-width: 30rem; }
.notify label { display: block; font-weight: 500; margin-bottom: 0.6rem; }
.notify-row { display: flex; gap: 0.5rem; }
.notify input[type="email"] {
  flex: 1; min-width: 0; padding: 0.75rem 0.9rem; border: 1px solid var(--rule); border-radius: 6px;
  font: 400 1rem/1.2 var(--body); color: var(--ink); background: var(--paper);
}
.notify input[type="email"]:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 22%, transparent); }
.notify button[disabled] { opacity: 0.6; cursor: progress; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.notify-msg { margin-top: 0.6rem; min-height: 1.4em; font-size: 0.95rem; }
.notify[data-state="done"] .notify-msg { color: var(--ink); }
.notify[data-state="done"] .notify-msg::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.45rem; border: 2px solid var(--cobalt); border-radius: 50%; vertical-align: 0.05em; }
.notify[data-state="error"] .notify-msg { color: var(--error); }
@media (max-width: 420px) { .notify-row { flex-direction: column; } }

/* ---------- the demo: a mock app with callouts, and the guide it produces ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--paper); }
.demo-app { position: relative; background: var(--wash); border-right: 1px solid var(--rule); min-height: 22rem; }
.demo-bar { display: flex; gap: 0.35rem; align-items: center; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); background: var(--paper); }
.demo-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--rule); }
.demo-bar span { margin-left: 0.5rem; font-size: 0.75rem; color: var(--lead); }
.demo-screen { position: relative; padding: 1.1rem; font-size: 0.82rem; }
.demo-screen h4 { margin: 0 0 0.9rem; font: 600 0.95rem/1.2 var(--body); }
.mock-btn { display: inline-block; padding: 0.45rem 0.7rem; border-radius: 5px; background: var(--ink); color: var(--paper); font-weight: 600; }
.mock-row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); color: var(--lead); }
.mock-form { display: none; }
.mock-form label { display: block; margin-top: 0.7rem; color: var(--lead); font-size: 0.75rem; }
.mock-input { margin-top: 0.25rem; height: 2rem; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); padding: 0.4rem 0.55rem; color: var(--ink); }
.mock-save { margin-top: 1rem; }
.demo[data-view="form"] .mock-list { display: none; }
.demo[data-view="form"] .mock-form { display: block; }

.cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none; transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1); z-index: 3; opacity: 0; }
.demo.playing .cursor { opacity: 1; }

/* callout: the one bold element — a ring with a leader line to a numbered tag */
.callout { position: absolute; width: 0; height: 0; z-index: 2; }
.callout .ring { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border: 2.5px solid var(--cobalt); border-radius: 50%; transform: scale(0.4); opacity: 0; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.2s; }
.callout .lead-line { position: absolute; left: 13px; top: -13px; width: 26px; height: 2px; background: var(--cobalt); transform-origin: left center; transform: rotate(-35deg) scaleX(0); transition: transform 0.25s 0.15s; }
.callout .tag { position: absolute; left: 32px; top: -40px; min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem; border-radius: 0.7rem; background: var(--cobalt); color: #fff; font: 700 0.8rem/1.4rem var(--display); text-align: center; opacity: 0; transition: opacity 0.2s 0.3s; }
.callout.on .ring { transform: scale(1); opacity: 1; }
.callout.on .lead-line { transform: rotate(-35deg) scaleX(1); }
.callout.on .tag { opacity: 1; }

.demo-guide { padding: 1.1rem 1.1rem 1.25rem; background: var(--paper); }
.demo-guide h5 { margin: 0; font: 700 1.05rem/1.2 var(--display); }
.demo-guide .meta { font-size: 0.75rem; color: var(--lead); margin-top: 0.2rem; }
.demo-guide ol { list-style: none; margin: 1rem 0 0; padding: 0; }
.demo-guide li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; padding: 0.6rem 0; border-top: 1px solid var(--rule); font-size: 0.85rem; opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s; }
.demo-guide li.on { opacity: 1; transform: none; }
.demo-guide li b { font: 700 0.95rem/1.35 var(--display); color: var(--cobalt); }
.demo-guide .thumb { margin-top: 0.4rem; height: 2.4rem; border: 1px solid var(--rule); border-radius: 4px; position: relative; background:
  linear-gradient(var(--rule), var(--rule)) 10% 30% / 35% 3px no-repeat,
  linear-gradient(var(--rule), var(--rule)) 10% 55% / 60% 3px no-repeat,
  linear-gradient(var(--rule), var(--rule)) 10% 80% / 45% 3px no-repeat,
  var(--wash); }
.demo-guide .thumb::after { content: ""; position: absolute; width: 0.7rem; height: 0.7rem; border: 2px solid var(--cobalt); border-radius: 50%; left: var(--x, 30%); top: var(--y, 40%); transform: translate(-50%, -50%); }
.demo-replay { margin-top: 0.75rem; font: 500 0.8rem/1 var(--body); color: var(--lead); background: none; border: 0; padding: 0.3rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; visibility: hidden; }
.demo.done .demo-replay { visibility: visible; }

/* ---------- sections ---------- */
.section { padding: 5rem 0 0; }
.section-head { max-width: var(--measure); }
.section-head p { margin-top: 1rem; color: var(--lead); }

.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font: 700 3.2rem/1 var(--display); color: var(--cobalt); margin-bottom: 0.9rem; }
.steps p { margin-top: 0.6rem; color: var(--lead); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.netlog { border: 1px solid var(--rule); border-radius: 8px; font-size: 0.9rem; overflow: hidden; }
.netlog-head { display: flex; justify-content: space-between; padding: 0.7rem 1rem; background: var(--wash); border-bottom: 1px solid var(--rule); color: var(--lead); font-size: 0.82rem; }
.netlog-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); }
.netlog-row:last-child { border-bottom: 0; }
.netlog-row span:last-child { color: var(--lead); }
.netlog-total { font-weight: 600; }

.honest { margin-top: 3rem; padding: 1.5rem 1.6rem; border-left: 3px solid var(--marker); background: var(--wash); max-width: 46rem; }
.honest h3 { font-size: 1.15rem; }
.honest p { margin-top: 0.5rem; color: var(--lead); }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 3rem; border: 1px solid var(--rule); border-radius: 10px; max-width: 52rem; }
.plan { padding: 2rem; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan .price { font: 700 3rem/1 var(--display); margin-top: 1rem; }
.plan .price small { font: 400 1rem/1 var(--body); color: var(--lead); margin-left: 0.35rem; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.plan li { padding: 0.5rem 0; border-top: 1px solid var(--rule); }
.plan-pro { box-shadow: inset 0 3px 0 var(--cobalt); }
.compare { margin-top: 1.25rem; font-size: 0.92rem; color: var(--lead); max-width: 52rem; }

.faq { margin-top: 2.5rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cobalt); font: 700 1.3rem/1 var(--display); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.7rem; color: var(--lead); max-width: var(--measure); }

/* ---------- studio home ---------- */
.studio { padding: 6rem 0 2rem; }
.studio h1 { max-width: 14ch; }
.studio .lede { margin-top: 1.5rem; }
.product-line { display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; gap: 2rem; align-items: baseline; padding: 1.75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 4rem; }
.product-line h2 { font-size: 1.8rem; }
.product-line p { color: var(--lead); max-width: var(--measure); }

/* ---------- legal pages ---------- */
.legal { padding: 4rem 0 0; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal .updated { margin-top: 0.75rem; color: var(--lead); font-size: 0.92rem; }
.legal .prose { margin-top: 2.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .product-line { grid-template-columns: 1fr; gap: 0.75rem; }
}
@media (max-width: 620px) {
  .hero { padding: 3rem 0 3.5rem; }
  .demo { grid-template-columns: 1fr; }
  .demo-app { border-right: 0; border-bottom: 1px solid var(--rule); }
  .pricing { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .site-nav { gap: 1rem; }
  .site-nav .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
