/* LPU Verto home page. Shared tokens and components live in style.css. */

/* ===== Hero: statement left, the campus right ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 64px;
}
@media (min-width: 1024px) {
    .hero {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 32px;
        align-items: center;
        min-height: calc(100svh - var(--nav-h));
        padding-top: 24px;
        padding-bottom: 48px;
    }
    .hero-copy { grid-column: 1 / span 6; }
    .hero-media { grid-column: 7 / span 6; }
}
.hero-title {
    font-size: clamp(52px, 7vw, 112px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: .95;
    color: var(--ink);
}
.hero-lead { margin-top: 32px; max-width: 46ch; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.hero-media { position: relative; margin: 0; }
.hero-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-alt);
}
@media (min-width: 1024px) {
    .hero-photo { aspect-ratio: auto; height: min(72svh, 680px); margin-left: 12%; }
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }

/* The three sites float over the photograph's lower-left corner */
.hero-sites {
    position: relative;
    margin: -64px 12px 0;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--bg);   /* a piece of the page ground cut out of the photo */
}
@media (min-width: 1024px) {
    .hero-sites { position: absolute; left: 0; bottom: 40px; width: min(400px, 62%); margin: 0; }
}
.hero-sites-name { padding: 2px 4px 12px; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.hero-sites ul { display: flex; flex-direction: column; gap: 4px; }
.site-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
}
.site-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); min-width: 4.4em; }
.site-addr { flex: 1; min-width: 0; font-size: 14px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-row .arrow, .tool-row .arrow { align-self: center; flex-shrink: 0; color: var(--accent); }

/* ===== Chapters: statement on one side, its proof on the other ===== */
.solutions { display: flex; flex-direction: column; }
.chapter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 112px;
}
@media (min-width: 1024px) {
    .chapter { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; margin-top: 176px; align-items: center; }
    .chapter > .chapter-text { grid-column: 1 / span 6; }
    .chapter > .chapter-media { grid-column: 8 / span 5; }
    .chapter-flip > .chapter-media { grid-column: 1 / span 5; grid-row: 1; }
    .chapter .photo-4x5 { width: 82%; }
    .chapter-flip .photo-4x5 { margin-left: auto; }
    .chapter-flip > .chapter-text { grid-column: 7 / span 6; }
}
.chapter-text .t-lead { margin-top: 24px; }
.chapter-text > .t-body { margin-top: 24px; color: var(--muted); }
.chapter-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Feature rows: alternate white / slate-100, name left, sentence right */
.feature-rows { margin-top: 32px; display: flex; flex-direction: column; gap: 2px; }
.feature-rows li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 24px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
}
.feature-rows li:nth-child(even) { background: var(--surface-alt); }
.feature-rows h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.feature-rows p { font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (min-width: 640px) {
    .feature-rows li { grid-template-columns: 5fr 7fr; align-items: baseline; }
}
.feature-rows-lg li { padding: 24px 28px; }
.feature-rows-lg h3 { font-size: 20px; }

/* Pictures: square corners off, one radius, one crop per role */
.chapter-media { position: relative; margin: 0; }
.photo { overflow: hidden; border-radius: var(--radius); background: var(--surface-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-4x5 { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 9; }
@media (max-width: 1023px) {
    .chapter-media .photo-4x5 { aspect-ratio: 4 / 3; }
}

/* Interface fragments: real pieces of the sites, laid over a photograph's corner */
.ui-card {
    position: relative;
    margin: -96px 16px 0 auto;
    width: min(88%, 400px);
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
}
@media (min-width: 1024px) {
    .ui-card { position: absolute; margin: 0; right: 0; bottom: -48px; }
    .chapter-flip .ui-card { right: auto; left: 0; }
}
.ui-meta { font-size: 13px; color: var(--muted-2); }
.ui-title { margin-top: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.ui-text { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ui-mcq { margin: 18px -22px -22px; padding: 18px 22px 22px; border-radius: 0 0 var(--radius) var(--radius); background: #0f172a; color: #fff; }
html.dark .ui-mcq { background: #232323; }
.ui-meta-dark { color: #94a3b8; }
.ui-q { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.ui-opts { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 14px; }
.ui-opts span { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); }
.ui-opts .is-right { background: var(--accent); color: #020617; font-weight: 600; }

.ui-url { margin-top: 8px; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ui-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }
.ui-row { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.ui-ok { font-weight: 600; color: var(--ok); }
.ui-bar { margin-top: 10px; height: 6px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.ui-bar span { display: block; height: 100%; background: var(--accent); }

/* Figures: tone tiles, label above, value below */
.figures { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Value first, its name under it: a label above a figure reads as an eyebrow */
.figure { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.figure dt { font-size: 14px; color: var(--muted-2); }
.figure dt { margin-top: 4px; }
.figure dd { font-size: clamp(26px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); }
.figure-lead { background: var(--tint); }
html.dark .figure-lead dt { color: #d6b89c; }

/* ===== The wide campus band ===== */
.band { margin: 112px 0 0; }
@media (min-width: 1024px) { .band { margin-top: 176px; } }
.band-frame { height: clamp(280px, 56vw, 640px); overflow: hidden; background: var(--surface-alt); }
.band-frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.band figcaption { margin-top: 12px; }

/* ===== Tools ===== */
.tools { margin-top: 128px; }
@media (min-width: 1024px) { .tools { margin-top: 192px; } }
.tools-title {
    font-size: clamp(36px, 5.4vw, 80px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    max-width: 14ch;
    color: var(--ink);
}
.tools-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) {
    .tools-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; margin-top: 72px; align-items: start; }
    .att { grid-column: 1 / span 6; }
    .tool-list { grid-column: 8 / span 5; }
}

.att { padding: 24px; border-radius: var(--radius); background: var(--surface); }
@media (min-width: 640px) { .att { padding: 36px; } }
.att-fields { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 520px) { .att-fields { grid-template-columns: 1fr 1fr; } }
.att-field label { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.stepper { margin-top: 8px; display: flex; align-items: stretch; gap: 4px; }
.stepper input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px 8px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-alt);
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}
html.dark .stepper input { background: var(--bg); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--ring); outline-offset: 0; }
.step {
    flex: 0 0 52px;
    border: 0;
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--ink);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    transition: background-color .2s ease, transform .1s ease;
}
html.dark .step { background: rgba(255, 255, 255, .06); }
.step:hover { background: var(--tint-btn); }
.step:active { transform: translateY(1px); }

.att-result { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--tint); }
.att-pct { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.att-pct > span:first-child { font-size: clamp(56px, 6vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; color: var(--ink-strong); }
.att-pct-label { font-size: 18px; color: var(--muted); }
.att-bar { position: relative; margin-top: 18px; height: 10px; border-radius: 999px; background: rgba(15, 23, 42, .1); }
html.dark .att-bar { background: rgba(255, 255, 255, .1); }
.att-bar > span { display: block; height: 100%; max-width: 100%; border-radius: 999px; background: var(--accent); transition: width .45s var(--ease), background-color .3s ease; }
.att-bar.is-low > span { background: var(--bad); }
.att-mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.att-say { margin-top: 18px; font-size: 20px; line-height: 1.45; color: var(--ink); max-width: 34ch; }
.att-say strong { font-weight: 800; }
.att-say.is-low strong { color: var(--bad); }
.att-note { margin-top: 20px; max-width: 60ch; }
.att-error { color: var(--bad); }

.tool-list-name { font-size: 16px; font-weight: 600; color: var(--muted-2); }
.tool-list ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tool-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
}
.tool-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.tool-what { grid-column: 1; font-size: 14px; color: var(--muted-2); }
.tool-row .arrow { grid-column: 2; grid-row: 1 / span 2; }
.tool-private { margin-top: 24px; color: var(--muted); max-width: 44ch; }
.tool-list .photo-wide { margin-top: 32px; }

/* ===== About: the campus as a drop cap ===== */
.about { margin-top: 128px; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) {
    .about { margin-top: 192px; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
    .about-facts { grid-column: 1 / span 3; grid-row: 1; padding-top: 104px; }
    .about-body { grid-column: 4 / span 9; }
}
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; order: 2; }
@media (min-width: 1024px) { .about-facts { grid-template-columns: 1fr; gap: 24px; order: 0; } }
.about-facts dt { font-size: 14px; color: var(--muted-2); }
.about-facts dd { margin-top: 2px; font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.about-facts .text-link { text-underline-offset: 4px; }
.about-lead {
    font-size: clamp(20px, 2.3vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 42ch;
}
.about-lead { margin-top: 40px; }
.about-lead::after { content: ''; display: table; clear: both; }
.about-more { margin-top: 28px; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 60ch; }
@media (min-width: 768px) { .about-more { font-size: 20px; } }
.about-cap {
    float: left;
    width: 3.75em;
    height: 3.75em;
    margin: .2em .5em .1em 0;
    object-fit: cover;
    border-radius: var(--radius);
}
@media (max-width: 639px) { .about-cap { width: 4.6em; height: 4.6em; } }

/* ===== Why ===== */
.why { margin-top: 128px; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) {
    .why { margin-top: 176px; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
    .why-photo { grid-column: 1 / span 5; }
    .why-body { grid-column: 7 / span 6; }
}
@media (max-width: 1023px) { .why-photo { aspect-ratio: 16 / 9; } }

/* ===== FAQ: questions large on the left, answers beside ===== */
.faq { margin-top: 128px; }
@media (min-width: 1024px) { .faq { margin-top: 192px; } }
.faq-head, .faq-q {
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.faq-head { color: var(--muted-2); }
.faq-q { color: var(--ink); max-width: 22ch; }
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 48px; }
.faq-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.faq-a p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 44ch; }
.faq-a .text-link { text-underline-offset: 4px; }
@media (min-width: 1024px) {
    .faq-list { margin-top: 64px; gap: 72px; }
    .faq-row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: baseline; }
    .faq-q { grid-column: 1 / span 6; }
    .faq-a { grid-column: 8 / span 5; }
}

/* ===== Closing band: the sentence with a blank ===== */
.closing { margin-top: 128px; }
@media (min-width: 1024px) { .closing { margin-top: 192px; } }
.closing-band { padding: 40px 24px; border-radius: var(--radius); background: var(--tint); }
@media (min-width: 768px) { .closing-band { padding: 72px 64px; } }
.suggest-line {
    font-size: clamp(30px, 4.4vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--ink-strong);
}
.suggest-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: clamp(22px, 3vw, 40px);
}
.suggest-row input {
    flex: 1 1 12em;
    min-width: 0;
    height: 1.9em;
    padding: 0 .5em;
    border: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .75);
    color: var(--ink-strong);
    font-size: 1em;
    font-weight: 600;
    letter-spacing: -0.02em;
}
html.dark .suggest-row input { background: rgba(255, 255, 255, .08); }
.suggest-row input::placeholder { color: #64748b; font-weight: 500; }
html.dark .suggest-row input::placeholder { color: #8a8a8a; }
.suggest-row input:focus-visible { outline: 2px solid var(--ring); outline-offset: 0; }
.suggest-go { height: 1.9em; font-size: 1em; padding: 0 .7em; letter-spacing: -0.02em; font-weight: 700; }
.suggest-go:focus-visible { outline-offset: 3px; }
.suggest-note { margin-top: 20px; color: var(--muted); }
@media (max-width: 519px) { .suggest-go { flex: 1 1 100%; } }
