/* Ordolis website. No outside fonts, scripts or trackers: everything is served from this folder. */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --ink: #1c1f23; --muted: #5b626b; --line: #e2e0d8;
  --accent: #0f766e; --accent-strong: #0b5f58; --accent-ink: #ffffff; --accent-soft: #e0f2ef; --logo-ink: #ffffff; --warn: #8a5a12; --mark: #fff3c4;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Light by default (owner, 25 November: the brand teal reads cyan in the dark palette); dark only when chosen with
   the switch in the header, remembered in this browser. Dark keeps a true teal: the tile stays the brand #0f766e. */
:root[data-theme="dark"] {
  --bg: #121416; --surface: #1a1d20; --ink: #e8e6e1; --muted: #a2a8ae; --line: #2c3035;
  --accent: #14a395; --accent-strong: #0f766e; --accent-ink: #ffffff; --accent-soft: #12302c; --logo-ink: #ffffff; --warn: #e0b060; --mark: #3b3418;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}
.theme { margin-left: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme:hover { color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); background: transparent; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.3rem var(--serif); color: var(--ink); text-decoration: none; }
.brand .logo, .part-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--logo-ink);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent-strong)); box-shadow: var(--shadow); }
.brand .logo svg, .part-logo svg { width: 19px; height: 19px; }
.part-logo { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px; }
.part-logo svg { width: 24px; height: 24px; }  /* the app's mark (harness/static/logo.svg) */
nav.links { display: flex; gap: 22px; margin-left: auto; }
nav.links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav.links a:hover { color: var(--ink); }
header.top .btn { padding: 8px 16px; font-size: .92rem; }

/* hero */
.hero { padding: 84px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .note { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* the sample answer card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.answer { padding: 22px; font-size: .95rem; }
.answer .q { font-weight: 600; margin-bottom: 14px; }
.answer .chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chip { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chip.plain { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.answer .text { margin-bottom: 14px; }
.cite { font: 600 .78rem var(--mono); color: var(--accent); }
.src { border-top: 1px solid var(--line); padding: 10px 0 2px; font-size: .85rem; }
.src .quote { font-style: italic; }
.src .quote mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }
.src .from { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.src .from b { font: 600 .75rem var(--mono); color: var(--ink); }

/* sections */
section { padding: 76px 0; scroll-margin-top: 64px; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 46em; margin-bottom: 40px; }
.grid { display: grid; gap: 20px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.part { padding: 24px; }
.part .name { font: 600 1.35rem var(--serif); margin-bottom: 4px; }
.part .role { color: var(--accent); font-weight: 600; font-size: .85rem; margin-bottom: 10px; }
.part p { color: var(--muted); font-size: .95rem; margin: 0; }
.feat h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: .95rem; margin: 0; }
.feat { padding: 4px 0; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.pain .said { font: italic 1.15rem var(--serif); margin-bottom: 6px; }
.pain p { color: var(--muted); font-size: .95rem; margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.logos span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--muted); }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { padding: 28px; display: flex; flex-direction: column; }
.tier.best { border: 2px solid var(--accent); position: relative; }
.tier.best::before { content: "Recommended"; position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tier .tname { font: 600 1.4rem var(--serif); }
.tier .for { color: var(--muted); font-size: .92rem; min-height: 3em; }
.tier .price { font: 600 2.6rem var(--serif); margin: 10px 0 0; }
.tier .price small { font: 400 .95rem var(--sans); color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.tier li { padding: 6px 0 6px 24px; position: relative; font-size: .94rem; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tier li.inc { color: var(--muted); }
.tier li.inc::before { display: none; }
.tier .btn { text-align: center; }
.terms { color: var(--muted); font-size: .9rem; margin-top: 22px; }
.terms li { margin-bottom: 4px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; }
.final .lede { margin: 0 auto 26px; }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three, .pains, .tiers { grid-template-columns: 1fr; }
  nav.links { display: none; }
  header.top .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid.four, .grid.two { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
}

/* ---- filing animations (html.anim: set only when the visitor allows motion). Cards rise out of a folder or a
   cabinet drawer, which then drops away; papers slide in as they're filed. ---- */
.anim .pocket { position: relative; }
.anim .pocket.filing { clip-path: inset(-80px -80px 0 -80px); }   /* hides what's still below the folder's lip */
.anim .pocket > .f-item { position: relative; z-index: 1; transform: translateY(78%); transition: transform .9s cubic-bezier(.2,.75,.25,1) var(--d, 0s); }
.anim .pocket.open > .f-item { transform: none; }
.f-back, .f-front { position: absolute; left: -6px; right: -6px; bottom: 0; pointer-events: none;
  transition: transform .7s cubic-bezier(.5,0,.75,.2), opacity .6s ease-in; }
.f-back { height: 70%; z-index: 0; border-radius: 12px; background: color-mix(in srgb, var(--accent) 26%, var(--bg)); }
.f-back.folder::before { content: ""; position: absolute; top: -18px; left: 22px; width: 132px; height: 20px; border-radius: 10px 10px 0 0; background: inherit; }
.f-front { height: 56%; z-index: 2; border-radius: 10px 10px 16px 16px; background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.f-front.folder { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.f-front.drawer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.f-front.drawer .label { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 4px; padding: 6px 14px; background: var(--surface); }
.f-front.drawer .handle { width: 120px; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.f-back.drawer { height: 64%; border-radius: 8px; }
.anim .pocket.done > .f-front, .anim .pocket.done > .f-back { transform: translateY(105%); opacity: 0; }

.anim .reveal { opacity: 0; transition: opacity .6s ease var(--d, 0s), transform .75s cubic-bezier(.2,.75,.25,1) var(--d, 0s); }
.anim .reveal.rise { transform: translateY(18px); }
.anim .reveal.paper { transform: translateY(30px) rotate(-1.6deg); transform-origin: 20% 100%; }
.anim .reveal.file { transform: translateX(-30px); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .checklist li.reveal::before { transform: rotate(-45deg) scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0s) + .35s); }
.anim .checklist li.reveal.in::before { transform: rotate(-45deg) scale(1); }
@media (prefers-reduced-motion: reduce) { .f-back, .f-front { display: none; } .anim .reveal, .anim .pocket > .f-item { opacity: 1; transform: none; transition: none; } }
