/* ============================================================
   Use case landings of www.oria.tools (built by tools/oria_landing.py).
   Loaded only by those pages, on top of arpia-v2.css + oria-tools.css,
   so the home keeps its own cache stamp. Tokens are the site's own:
   red = the ungoverned "before", green = the governed result, gold = ARPIA.
   ============================================================ */

/* ---------- hero: copy left, the form right, one column on the phone ---------- */
.uc-hero { padding: 7.5rem 0 3.5rem; }
.uc-hero .dp-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; align-items: start; }
.uc-hero h1 { color: var(--white); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; margin: 0 0 1.1rem; text-wrap: balance; }
.uc-sub { color: var(--mist); font-size: 1.1rem; line-height: 1.65; max-width: 560px; margin: 0 0 1.5rem; }
.uc-results { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.65rem; }
.uc-results li { position: relative; padding-left: 1.7rem; color: #e4e4e4; font-size: 1rem; line-height: 1.55; }
.uc-results li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--green); }
.uc-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin: 0 0 1.7rem; color: var(--mist); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.uc-marks img { width: 36px; height: 36px; background: #f2f0ea; border-radius: 8px; padding: 4px; box-sizing: border-box; }
.uc-marks .uc-mark-by { color: var(--gold); font-weight: 600; }
.uc-hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.uc-hero-cta .uc-or { color: var(--mist); font-size: 0.92rem; }
.uc-hero-cta .uc-or a { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* the form card: paper on the dark hero, fully visible on the first screen */
.uc-card { background: var(--white); border-radius: 16px; padding: 1.7rem 1.7rem 1.5rem; box-shadow: 0 30px 70px rgba(0,0,0,0.45); scroll-margin-top: 5.5rem; }
.uc-card h2 { color: var(--ink); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 0.35rem; }
.uc-card-sub { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; margin: 0 0 1.1rem; }
.uc-form .form-group { margin-bottom: 0.85rem; }
.uc-form label { font-size: 0.82rem; }
.uc-form input, .uc-form select, .uc-form textarea { padding: 0.68rem 0.85rem; font-size: 0.98rem; }
.uc-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234c4c4c' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.uc-form textarea { min-height: 84px; }
.uc-form [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,80,80,0.15); }
.uc-form input:focus-visible, .uc-form select:focus-visible, .uc-form textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.dp-hero .uc-card .cta-btn { display: block; width: 100%; text-align: center; background: var(--ink); color: var(--white) !important; border: 0; font-size: 1rem; padding: 0.95rem 1.2rem; margin-top: 0.3rem; }
.dp-hero .uc-card .cta-btn:hover { background: #000; }
.dp-hero .uc-card .cta-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dp-hero .uc-card .cta-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.uc-msg { min-height: 1.3rem; margin: 0.7rem 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }
.uc-msg.is-err { color: #a83a3a; }
.uc-msg.is-ok { color: #1f7a3a; font-weight: 500; }
.uc-fine { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; margin: 0.6rem 0 0; }
.uc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- proof strip ---------- */
.uc-proof { background: var(--coal); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 1rem 0; }
.uc-proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; }
.uc-proof li { position: relative; padding-left: 1.3rem; color: var(--mist); font-size: 0.86rem; line-height: 1.5; }
.uc-proof li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }

/* ---------- sections on paper ---------- */
.uc-section { padding: 5rem 0; }
.uc-kicker { font-size: 0.74rem; letter-spacing: 0.2em; font-weight: 600; color: var(--gold); margin-bottom: 1rem; text-transform: uppercase; }
.uc-section .dp-h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; margin-bottom: 1rem; text-wrap: balance; max-width: 820px; }
.uc-intro { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; max-width: 720px; margin: 0 0 2.2rem; }

/* the problem: three to five operational facts, each its own card with the red "ungoverned" mark */
.uc-pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.uc-pains li { position: relative; padding: 1.1rem 1.3rem 1.1rem 1.5rem; background: var(--white); border: 1px solid var(--line-light); border-left: 3px solid var(--red); border-radius: 10px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

/* before / with Oria */
.uc-bw { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.uc-bw-col { border-radius: 14px; padding: 1.6rem 1.6rem 1.4rem; border: 1px solid var(--line-light); }
.uc-bw-col.is-before { background: var(--paper-2); border-top: 3px solid var(--red); }
.uc-bw-col.is-with { background: var(--white); border-top: 3px solid var(--green); }
.uc-bw-k { font-size: 0.74rem; letter-spacing: 0.18em; font-weight: 600; text-transform: uppercase; margin-bottom: 1rem; color: var(--ink-soft); }
.uc-bw-col.is-with .uc-bw-k { color: #1f7a3a; }
.uc-bw ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.uc-bw li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }
.uc-bw li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.uc-bw-col.is-before li::before { content: "\2013"; color: var(--red); }
.uc-bw-col.is-with li::before { content: "\2713"; color: var(--green); }
.uc-bw-col.is-with li { color: var(--ink); }

/* how it works: the home's three numbered cards, plus the line about the ERP */
.uc-section .ot-steps { margin-top: 0; }
.uc-section .ot-steps h3 { color: var(--ink); font-size: 1.05rem; font-weight: 600; margin: 0 0 0.4rem; }
.uc-note { margin: 1.6rem 0 0; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line-light); border-left: 3px solid var(--gold); border-radius: 10px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 820px; }

/* the demonstration: real screens, each with its caption */
.uc-demo { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.uc-demo.is-two { grid-template-columns: 1fr 1fr; }
.uc-demo.is-three { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.uc-demo.is-one figure { max-width: 760px; }   /* a single smaller screen after the wide one: not a half-empty grid */
.uc-demo figure { margin: 0; }
.uc-demo .ot-shot { box-shadow: 0 24px 60px rgba(0,0,0,0.18); }
.uc-demo figcaption { display: flex; gap: 0.9rem; align-items: baseline; margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.uc-demo figcaption .uc-cap-n { flex: none; color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; }
.uc-demo-note { margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6; }

/* why Oria on ARPIA: the dark band, the home's four cards and the category line */
.uc-why { padding: 5rem 0; }
.uc-why .dp-h2 { color: var(--white); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; margin-bottom: 1rem; max-width: 820px; text-wrap: balance; }
.uc-why .uc-intro { color: var(--mist); }
.uc-why .ot-tools { margin-top: 0; }
.uc-category { margin: 2.2rem 0 0; padding: 1.2rem 1.4rem; border: 1px solid #2b2b2b; border-left: 3px solid var(--gold); border-radius: 10px; color: #d9d9d9; font-size: 1.02rem; line-height: 1.6; max-width: 860px; }
.uc-category a { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.uc-category a:hover { color: var(--gold); }

/* security, control and integration: six short answers */
.uc-qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.uc-qa article { background: var(--white); border: 1px solid var(--line-light); border-radius: 12px; padding: 1.3rem 1.4rem; }
.uc-qa h3 { color: var(--ink); font-size: 1.02rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.5rem; }
.uc-qa p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; margin: 0; }

/* questions people ask about this case */
.uc-faq { max-width: 860px; }
.uc-faq details { border-top: 1px solid var(--line-light); }
.uc-faq details:last-child { border-bottom: 1px solid var(--line-light); }
.uc-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.05rem 0; color: var(--ink); font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.uc-faq summary::-webkit-details-marker { display: none; }
.uc-faq summary::after { content: "+"; flex: none; color: var(--gold); font-size: 1.3rem; line-height: 1; font-weight: 400; }
.uc-faq details[open] summary::after { content: "\2013"; }
.uc-faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.uc-faq .uc-a { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; margin: 0; padding: 0 2.4rem 1.2rem 0; max-width: 760px; }
.uc-faq .uc-a a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* final call: the home's dark block, two choices */
.dp-cta .uc-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- phones and small laptops ---------- */
@media (max-width: 1000px) {
    .uc-hero .dp-wrap { gap: 2.4rem; }
    .uc-qa { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    /* one column: the title, the subtitle, then the form, then the rest of the copy */
    .uc-hero { padding: 6.2rem 0 3rem; }
    .uc-hero .dp-wrap { display: flex; flex-direction: column; gap: 0; }
    .uc-hero-copy { display: contents; }
    .uc-hero .dp-kicker { order: 1; align-self: flex-start; }
    .uc-hero h1 { order: 2; }
    .uc-sub { order: 3; }
    .uc-card { order: 4; margin: 0.4rem 0 2rem; padding: 1.4rem 1.2rem 1.2rem; }
    .uc-results { order: 5; }
    .uc-marks { order: 6; }
    .uc-hero-cta { order: 7; }
    .uc-pains, .uc-bw, .uc-demo.is-two, .uc-demo.is-three, .uc-qa { grid-template-columns: 1fr; }
    .uc-section, .uc-why { padding: 3.6rem 0; }
    .uc-proof ul { justify-content: flex-start; gap: 0.45rem 1.4rem; }
}
@media (max-width: 480px) {
    .uc-hero h1 { font-size: 1.85rem; }
    .uc-form .form-group { margin-bottom: 0.75rem; }
    .uc-demo figcaption { flex-direction: column; gap: 0.3rem; }
}

/* ---------- motion: these pages are complete at rest; nothing waits for a scroll ---------- */
@media (prefers-reduced-motion: reduce) {
    .uc-hero h1, .dp-hero h1 { animation: none; }
    html { scroll-behavior: auto; }
    .cta-btn, .cta-btn:hover { transition: none; transform: none; }
}
