/* Operacta. Alpha Efficiency design language: Inter for the interface, Lora for the editorial line,
   neutral canvas and ink, 8 px grid, radii 8/12/18/28, quiet elevation, state layers, 120/240 ms motion.
   Operacta's own accent is AE Orange, used for marks and fills; AE Blue stays the link and focus colour.
   Inter and Lora are SIL OFL 1.1 (licences in /fonts/inter/OFL.txt and /fonts/lora/OFL.txt),
   self-hosted latin subsets from Fontsource 5.3.0. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lora/lora-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ae-blue: #1994ff;
  --ae-red: #ed462f;
  --ae-orange: #ffb000;
  --ae-yellow: #ffec00;
  --canvas: #fdfdfd;
  --surface: #ffffff;
  --sunken: #f4f3f1;
  --line: #eeeeee;
  --hairline: #e5e5e5;
  --ink: #303030;
  --ink-2: #5c5c5c;
  --link: #0063b8;
  /* Operacta accent: AE Orange for fills, a deep amber for text on light surfaces (>= 4.5:1). */
  --accent: #ffb000;
  --accent-ink: #7a4f00;
  --accent-bg: #fff3d1;
  --tonal-bg: #e3f1ff;
  --tonal-ink: #0063b8;
  --btn-bg: #303030;
  --btn-ink: #ffffff;
  --mark-tile: #303030;
  --mark-ring: #fdfdfd;
  --glass: rgba(253, 253, 253, 0.76);
  --state: 0, 0, 0;
  --hover: .08;
  --press: .12;
  --e1: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .06);
  --e2: 0 2px 6px rgba(0, 0, 0, .07), 0 10px 24px rgba(0, 0, 0, .08);
  --r-sm: 8px;
  --r-btn: 12px;
  --r-panel: 18px;
  --r-card: 28px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --dur-quick: 120ms;
  --dur-standard: 240ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --margin: clamp(16px, 4vw, 64px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1c1c1c;
    --surface: #303030;
    --sunken: #3a3a3a;
    --line: #3d3d3d;
    --hairline: #474747;
    --ink: #fdfdfd;
    --ink-2: #c4c4c4;
    --link: #8cc8ff;
    --accent-ink: #ffc845;
    --accent-bg: #4a3a12;
    --tonal-bg: #1f3a57;
    --tonal-ink: #8cc8ff;
    --btn-bg: #ffb000;
    --btn-ink: #1c1c1c;
    --mark-tile: #fdfdfd;
    --mark-ring: #303030;
    --glass: rgba(28, 28, 28, 0.76);
    --state: 255, 255, 255;
    --hover: .06;
    --press: .1;
    --e1: none;
    --e2: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }
p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
strong { font-weight: 600; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible, summary:focus-visible, .skip:focus {
  outline: 2px solid var(--ae-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 16px; top: -128px; z-index: 10;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--surface); color: var(--ink); border-radius: var(--r-btn); box-shadow: var(--e2);
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; }

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

/* Buttons and plain links: the colour never changes, an overlay does. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: var(--r-btn); background-color: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-image var(--dur-quick) var(--ease-standard);
}
.btn:hover { background-image: linear-gradient(rgba(var(--state), var(--hover)), rgba(var(--state), var(--hover))); text-decoration: none; }
.btn:active { background-image: linear-gradient(rgba(var(--state), var(--press)), rgba(var(--state), var(--press))); }
@media (prefers-color-scheme: light) {
  .btn:hover { background-image: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)); }
  .btn:active { background-image: linear-gradient(rgba(255, 255, 255, .18), rgba(255, 255, 255, .18)); }
}
.btn .glyph { width: 18px; height: 18px; }
.plain {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-btn); color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background-color var(--dur-quick) var(--ease-standard);
}
.plain:hover { background-color: rgba(var(--state), var(--hover)); }
.plain:active { background-color: rgba(var(--state), var(--press)); }

.glyph { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.wordmark svg { width: 32px; height: 32px; display: block; }
.wordmark .tile { fill: var(--mark-tile); }
.wordmark .ring { fill: none; stroke: var(--mark-ring); stroke-width: 3; }
.wordmark .owner { fill: var(--accent); stroke: var(--mark-tile); stroke-width: 1.5; }
.wordmark b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

/* Restrained glass navigation */
.bar-shell { position: sticky; top: 0; z-index: 5; padding-top: 16px; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px; padding: 0 16px 0 20px; border-radius: var(--r-panel);
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--e1); border: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav .btn { min-height: 44px; padding: 0 20px; margin-left: 8px; }

main { padding-top: 40px; }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--e1); }
@media (prefers-color-scheme: dark) { .card { border: 1px solid var(--line); } }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center;
  padding: 64px; box-shadow: var(--e2);
}
.eyebrow {
  display: flex; align-items: flex-start; gap: 10px; max-width: 34em;
  font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--accent-ink);
}
.eyebrow::before { content: ""; flex: none; width: 24px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--accent); }
h1 {
  margin-top: 20px; max-width: 15em;
  font-size: clamp(34px, 2.6vw + 20px, 58px); line-height: 1.06; letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { margin-top: 24px; font-size: 18px; line-height: 1.55; max-width: 34em; color: var(--ink); }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; min-height: 36px; padding: 6px 14px;
  border-radius: var(--r-sm); background: var(--accent-bg); color: var(--accent-ink);
  font-size: 15px; font-weight: 500;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px rgba(255, 176, 0, .25); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 32px; }

/* Abstract ownership illustration: shapes only, no product interface. */
.figure { display: block; width: 100%; height: auto; max-width: 420px; justify-self: center; }
.figure .sheet { fill: var(--sunken); }
.figure .bar-fill { fill: var(--hairline); }
.figure .bar-strong { fill: var(--ink-2); opacity: .55; }
.figure .o1 { fill: var(--accent); }
.figure .o2 { fill: var(--ae-blue); }
.figure .o3 { fill: var(--ae-red); }
.figure .rail { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 4 6; opacity: .6; }
.figure .hub { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.figure .hub-dot { fill: var(--accent); }
.figure .check { fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.figure .check-bg { fill: var(--accent-bg); }
@media (prefers-reduced-motion: no-preference) {
  .figure .rail { animation: flow 2.4s linear 3; }
  .figure .row { animation: rise 600ms var(--ease-standard) both; }
  .figure .row:nth-of-type(2) { animation-delay: 120ms; }
  .figure .row:nth-of-type(3) { animation-delay: 240ms; }
}
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { margin-top: 112px; }
.kicker { display: block; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
h2 { margin-top: 12px; max-width: 22em; font-size: clamp(28px, 1vw + 22px, 40px); line-height: 1.12; letter-spacing: -0.018em; text-wrap: balance; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 40em; }
.closing { margin-top: 32px; font-family: var(--serif); font-size: clamp(20px, .6vw + 17px, 24px); line-height: 1.4; max-width: 32em; }

/* Audience */
.pains { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.pains li { grid-column: span 2; padding: 28px; }
.pains li:nth-child(4), .pains li:nth-child(5) { grid-column: span 3; }
.pains .icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-btn); background: var(--accent-bg); color: var(--accent-ink);
}
.pains p { margin-top: 20px; font-size: 17px; line-height: 1.5; }

/* Problem */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.split .card { padding: 40px; }
.split p { font-size: 17px; line-height: 1.6; }
.split .contrast { background: var(--ink); color: var(--canvas); box-shadow: var(--e2); }
.split .contrast a { color: inherit; }
@media (prefers-color-scheme: dark) { .split .contrast { background: var(--sunken); color: var(--ink); } }
.diagram { display: block; width: 120px; height: 48px; margin-bottom: 24px; }
.diagram .node { fill: var(--ae-blue); }
.diagram .node-b { fill: var(--accent); }
.diagram .node-c { fill: var(--ae-red); }
.diagram .node-d { fill: currentColor; opacity: .5; }
.diagram .wire { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .45; }
.agents-list a { font-weight: 500; }

/* Approach */
.plan { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 32px; counter-reset: plan; }
.plan li { grid-column: span 2; display: flex; flex-direction: column; gap: 20px; padding: 28px; counter-increment: plan; }
.plan li:nth-child(4) { grid-column: 2 / span 2; }
.plan li:nth-child(5) { grid-column: span 2; }
.plan li::before {
  content: counter(plan); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--r-sm); background: var(--ink); color: var(--canvas); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.plan p { font-size: 16px; line-height: 1.55; }
.plan .later { background: transparent; box-shadow: none; border: 1.5px dashed var(--hairline); }
.plan .later::before { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--ink-2); }

/* Boundaries */
.bounds { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; padding: 56px 64px; background: var(--accent-bg); box-shadow: none; }
.bounds h2 { margin-top: 0; }
.bounds p { font-family: var(--serif); font-size: clamp(19px, .5vw + 16px, 22px); line-height: 1.5; color: var(--ink); }
@media (prefers-color-scheme: dark) { .bounds { border: 1px solid #5a4716; } }

/* Where this goes */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.compare .card { padding: 36px; }
.compare p { font-size: 18px; line-height: 1.5; }
.compare .label {
  display: flex; width: fit-content; align-items: center; min-height: 30px; padding: 0 12px; margin-bottom: 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; background: var(--sunken); color: var(--ink-2);
}
.compare .aim { box-shadow: var(--e2); outline: 2px solid var(--accent); outline-offset: -2px; }
.compare .aim .label { background: var(--accent-bg); color: var(--accent-ink); }
.invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 24px; padding: 40px; }
.invite p { max-width: 40em; font-size: 17px; line-height: 1.6; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 32px; max-width: 880px; }
.faq details { border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--e1); }
@media (prefers-color-scheme: dark) { .faq details { border: 1px solid var(--line); } }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 24px;
  border-radius: var(--r-panel); cursor: pointer; list-style: none; font-size: 17px; font-weight: 600;
  transition: background-color var(--dur-quick) var(--ease-standard);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background-color: rgba(var(--state), .04); }
.faq summary .glyph { transition: transform var(--dur-standard) var(--ease-standard); color: var(--ink-2); }
.faq details[open] summary .glyph { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 46em; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 112px; padding: 32px 0 48px; border-top: 1px solid var(--hairline); color: var(--ink-2); font-size: 14px; }
.foot .wordmark b { font-size: 17px; }
.foot a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 48px; }
  .figure { max-width: 380px; justify-self: start; }
  .pains, .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pains li, .pains li:nth-child(4), .pains li:nth-child(5),
  .plan li, .plan li:nth-child(4), .plan li:nth-child(5) { grid-column: auto; }
  .pains li:nth-child(5), .plan li:nth-child(5) { grid-column: 1 / -1; }
  .bounds { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 48px; }
}
@media (max-width: 720px) {
  .nav .plain { display: none; }
  .bar { height: 64px; padding: 0 10px 0 14px; }
  .nav .btn { margin-left: 0; padding: 0 16px; }
  main { padding-top: 24px; }
  .hero { padding: 32px 24px; gap: 32px; border-radius: 24px; }
  .lede { font-size: 17px; }
  .section { margin-top: 80px; }
  .pains, .plan, .split, .compare { grid-template-columns: minmax(0, 1fr); }
  .pains li:nth-child(5), .plan li:nth-child(5) { grid-column: auto; }
  .split .card, .compare .card, .invite { padding: 28px 24px; }
  .bounds { padding: 32px 24px; }
  .cta-row .btn, .invite .btn { width: 100%; }
  .faq summary { padding: 14px 18px; }
  .faq details p { padding: 0 18px 20px; }
}
@media (max-width: 380px) {
  .wordmark b { font-size: 17px; }
  .nav .btn { padding: 0 12px; font-size: 15px; }
}

/* 404 */
.notfound { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
