/* yarigai.ai/content-os: the Content OS product page. Uses the tokens and components in style.css and page.css. */

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.pg-sec.dark { border-bottom-color: var(--night-line); }

/* ---------- hero ---------- */
.co-hero { padding: clamp(28px, 3.4vw, 56px) 0 clamp(56px, 7vw, 104px); background-image: radial-gradient(rgba(95, 224, 178, .07) 1px, transparent 1.3px); background-size: 16px 16px; border-bottom: 1px solid var(--night-line); }
.co-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.co-hero .crumbs, .co-hero .crumbs a { color: var(--night-mute); }
.co-hero .crumbs a:hover { color: var(--mint); }
.co-hero .crumbs span[aria-hidden] { color: var(--night-line); }
.co-hero .crumbs [aria-current] { color: var(--night-text); }
.co-hero .crumbs { margin-bottom: 18px; }
.co-name { margin-bottom: 10px; font: 500 16px/1.3 var(--sans); color: var(--mint); }
.co-hero .pg-h1 { color: var(--white); font-size: clamp(40px, 4.4vw, 64px); max-width: 15ch; }
.co-hero .pg-lede { margin-top: 20px; font-size: clamp(17px, 1.35vw, 19px); color: var(--night-text); max-width: 54ch; }
/* the hero CTA sits above the fold on a laptop screen and is the biggest control on the page */
.co-ctas { margin-top: 28px; align-items: center; }
.co-ctas .btn { height: 64px; padding: 0 30px; font-size: 17px; }
.co-ctas .co-cta { padding: 0 38px; font-size: 19px; font-weight: 600; gap: 12px; }
.co-cta .arr { width: 19px; height: 19px; stroke-width: 2; }
.co-btn-dark { border: 1px solid var(--night-line); color: var(--night-text); background: rgba(255, 255, 255, .03); }
.co-btn-dark:hover { border-color: var(--mint); color: var(--white); }
.co-note { margin-top: 20px; max-width: 54ch; font-size: 14.5px; line-height: 1.55; color: var(--night-mute); }
.co-note a { color: var(--night-text); text-underline-offset: 3px; text-decoration-color: var(--night-line); }
.co-note a:hover { text-decoration-color: var(--mint); }

/* two frames: the 16:9 and 9:16 shapes Content OS edits */
.co-frames { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: end; }
.co-frame { margin: 0; }
.co-screen { position: relative; border: 1px solid var(--night-line); border-radius: 14px; background-color: var(--night-2); background-image: radial-gradient(rgba(95, 224, 178, .1) 1px, transparent 1.3px); background-size: 14px 14px; }
.co-frame-wide .co-screen { aspect-ratio: 16 / 9; }
.co-frame-tall .co-screen { aspect-ratio: 9 / 16; }
.co-screen::before {
  content: ""; position: absolute; inset: 12px; opacity: .85;
  background:
    linear-gradient(var(--mint), var(--mint)) left top / 18px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) left top / 2px 18px no-repeat,
    linear-gradient(var(--mint), var(--mint)) right top / 18px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) right top / 2px 18px no-repeat,
    linear-gradient(var(--mint), var(--mint)) left bottom / 18px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) left bottom / 2px 18px no-repeat,
    linear-gradient(var(--mint), var(--mint)) right bottom / 18px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) right bottom / 2px 18px no-repeat;
}
.co-play { position: absolute; left: 50%; top: 50%; translate: -35% -50%; width: 0; height: 0; border-left: 18px solid var(--mint); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.co-screen-vid { overflow: hidden; background: #000; }
.co-screen-vid::before { content: none; }
.co-vid { display: block; width: 100%; height: 100%; object-fit: cover; }
.co-screen .co-vid { position: absolute; inset: 0; }
.co-frame figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--night-mute); }

/* ---------- the five steps ---------- */
.co-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.co-step { position: relative; padding: 28px 22px 0 0; }
.co-step + .co-step { padding-left: 22px; border-left: 1px solid var(--line); }
.co-step-ai::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--jade); }
.co-step-n { display: block; margin-bottom: 18px; font: 400 clamp(40px, 4vw, 56px)/1 var(--pixel); color: var(--ink); }
.co-step-ai .co-step-n { color: var(--jade); }
.co-who { font: 500 14px/1.3 var(--sans); color: var(--mute); }
.co-step-ai .co-who { color: var(--jade-ink); }
.co-step h3 { margin-top: 4px; font: 600 22px/1.15 var(--sans); letter-spacing: -.03em; }
.co-step-d { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.co-flow-note { margin-top: 40px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.co-flow-note a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.co-flow-note a:hover { text-decoration-color: var(--jade); }

/* ---------- copy beside a screenshot ---------- */
.co-feat { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.co-flip .co-feat-copy { order: 2; }
.co-lede { margin-top: 18px; max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.co-points { margin-top: 24px; border-top: 1px solid var(--line); }
.co-points li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.co-points li::before { content: ""; position: absolute; left: 2px; top: calc(12px + .62em); width: 7px; height: 7px; background: var(--jade); }
.co-sub { margin-top: 30px; font: 600 19px/1.2 var(--sans); letter-spacing: -.02em; }
.co-sub + .co-points { margin-top: 12px; }
.co-prose p { margin-top: 16px; max-width: 52ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

.co-shot { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.co-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.co-shot-vid .co-vid { aspect-ratio: 16 / 10; background: var(--night-2); }
/* empty image slot, swapped for the screenshot by tools/build_pages.py once the file exists */
.co-slot { aspect-ratio: 16 / 10; display: grid; place-items: center; background-image: var(--dots); background-size: 16px 16px; }
.co-slot svg { width: 72px; height: 45px; fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.co-slot svg path { fill: var(--line-2); stroke: none; }

/* ---------- formats ---------- */
.co-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co-format { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.co-shape { justify-self: center; border: 2px solid var(--ink); border-radius: 8px; background-image: var(--dots); background-size: 10px 10px; }
.co-shape-wide { width: 112px; aspect-ratio: 16 / 9; }
.co-shape-tall { width: 54px; aspect-ratio: 9 / 16; }
.co-format h3 { font: 600 22px/1.2 var(--sans); letter-spacing: -.03em; }
.co-format p { margin-top: 8px; font-size: 16px; line-height: 1.55; }

/* ---------- review (dark) ---------- */
.co-review .pg-h2 { color: var(--night-text); }
.co-review .co-points, .co-review .co-points li { border-color: var(--night-line); color: var(--night-text); }
.co-review .co-points li::before { background: var(--mint); }
.co-review .co-shot { border-color: var(--night-line); background: var(--night-2); }
.co-gallery { display: grid; gap: 12px; }
.co-cap { font-size: 14.5px; color: var(--night-mute); }
.co-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 160px)); gap: 10px; }
.co-thumb { display: block; padding: 0; border: 1px solid var(--night-line); border-radius: 10px; overflow: hidden; opacity: .55; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.co-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.co-thumb:hover { opacity: .85; }
.co-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--mint); }

/* ---------- your accounts ---------- */

/* ---------- who it's for ---------- */
.co-who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ---------- time-saved calculator ---------- */
.co-calc { background-color: var(--bg-2); background-image: var(--dots); background-size: 16px 16px; }
.co-calc-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.co-sliders { margin-top: 0; }
.co-hours { margin-top: 36px; border-top: 1px solid var(--line-2); }
.co-hours-h { padding: 18px 0 4px; font: 600 17px/1.3 var(--sans); color: var(--ink); }
.co-num { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.co-num span { font-size: 15.5px; line-height: 1.35; color: var(--ink-2); }
.co-num small { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); }
.co-num input { flex: none; width: 104px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font: 500 17px/1 var(--mono); color: var(--ink); text-align: right; outline: none; transition: border-color .2s, box-shadow .2s; }
.co-num input::placeholder { color: var(--mute); font-family: var(--sans); font-size: 15px; }
.co-num input:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(14, 143, 106, .14); }
.co-calc-right { position: sticky; top: calc(var(--nav-h) + 28px); padding: clamp(26px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.co-calc-n { font: 400 clamp(64px, 8vw, 120px)/.95 var(--pixel); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.co-calc-n--long { font-size: clamp(44px, 5.2vw, 80px); }
.co-calc-t { margin-top: 14px; font: 500 20px/1.3 var(--sans); letter-spacing: -.02em; color: var(--jade-ink); }
.co-calc-h { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 18px/1.2 var(--sans); letter-spacing: -.015em; color: var(--ink-2); }
.co-calc-h span { font: 400 clamp(36px, 3.6vw, 48px)/1 var(--pixel); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.co-calc-sub { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.co-calc-sub span { color: var(--ink); font-weight: 600; }
.co-parts { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 24px 0 0; border-top: 1px solid var(--line); }
.co-parts dt, .co-parts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.co-parts dd { padding-left: 16px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.co-calc-note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.co-calc-right .btn { margin-top: 22px; }
.co-sources { margin-top: 36px; max-width: 96ch; font-size: 13.5px; line-height: 1.6; color: var(--mute); }
.co-sources a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.co-sources a:hover { text-decoration-color: var(--jade); }

/* ---------- enquiry form (the rest comes from the homepage form in style.css) ---------- */
.co-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.co-pills label { flex: 1 1 0; min-width: max-content; }
.co-pills-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.co-pills-4 label { min-width: 0; }
.f small { font-size: 13px; font-weight: 400; color: var(--night-mute); }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .co-hero-in, .co-feat, .co-calc-in { grid-template-columns: 1fr; }
  .co-frames { max-width: 560px; }
  .co-flip .co-feat-copy { order: 0; }
  .co-calc-right { position: static; }
  .co-flow { grid-template-columns: 1fr; }
  .co-step, .co-step + .co-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .co-step-n { grid-row: 1 / span 3; margin: 0; font-size: 36px; }
  .co-who, .co-step h3, .co-step-d { grid-column: 2; }
  .co-flow-note { margin-top: 28px; }
}
@media (max-width: 820px) {
  .co-formats, .co-who-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .co-format { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 22px 20px; }
  .co-shape-wide { width: 72px; }
  .co-shape-tall { width: 38px; }
  .co-num input { width: 88px; }
  .co-pills-4 { grid-template-columns: 1fr 1fr; }
  .co-frame figcaption { font-size: 12.5px; }
}

/* the shared header goes dark over the dark sections (js/content-os.js adds .on-dark) */
.nav.on-dark .pg-cta { background: var(--mint); color: var(--night); }
.nav.on-dark .pg-cta:hover { background: var(--white); }
