/* ============================================================
   PROSHNO — shared design system
   Used by index.html, contact.html, report-missing.html, for-schools.html
   ============================================================ */

:root {
    --paper: #F6F1E4;
    --paper-2: #EFE8D6;
    --line: #B9C6DE;
    --ink: #20293A;
    --ink-soft: #4B5061;
    --muted: #7A7362;
    --red: #A3321D;
    --red-dark: #7E2716;
    --green: #2E6B4E;
    --green-dark: #204C38;
    --amber: #B67F22;
    --navy: #233451;
    --card: #FFFDF7;
    --border: #DCD3BC;
    --shadow: 0 1px 0 rgba(32, 41, 58, 0.04), 0 8px 20px -12px rgba(32, 41, 58, 0.25);
    --radius: 10px;
    --hole: #F6F1E4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

h1,
h2,
h3,
.display {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink);
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.ruled {
    background-image: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 34px,
            rgba(185, 198, 222, 0.35) 35px);
}

/* ============ HEADER ============ */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 241, 228, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    transform: rotate(-8deg);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text .name {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.28rem;
    letter-spacing: 0.01em;
}

.brand-text .sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

nav.links {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav.links a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding-bottom: 4px;
}

nav.links a:hover {
    color: var(--ink);
}

nav.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--red);
    transition: width .2s ease;
}

nav.links a:hover::after {
    width: 100%;
}

nav.links a.active {
    color: var(--ink);
}

nav.links a.active::after {
    width: 100%;
}

nav.links a.nav-cta{
    background:var(--ink);
    color:var(--paper) !important;
    padding:10px 18px !important;
    border-radius:6px;
    font-weight:600 !important;
    font-size:0.85rem !important;
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}

nav.links a.nav-cta::after{
    display:none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    display: block;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 18px;
    border-top: 1px dashed var(--border);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--ink-soft);
    padding: 12px 4px;
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--border);
}

.mobile-menu a.active {
    color: var(--red);
    font-weight: 600;
}

.mobile-menu.open {
    display: flex;
}

/* ============ HERO (homepage) ============ */
.hero {
    padding: 64px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero .eyebrow {
    margin-bottom: 14px;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
    line-height: 1.04;
}

.hero h1 em {
    font-style: italic;
    color: var(--red);
}

.hero p.lede {
    margin-top: 20px;
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 46ch;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--red);
    color: #FBF6EA;
    box-shadow: 0 6px 0 var(--red-dark);
}

.btn-primary:hover {
    box-shadow: 0 4px 0 var(--red-dark);
    transform: translateY(2px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

.hero-stats {
    display: flex;
    gap: 26px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats .num {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--navy);
}

.hero-stats .lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* --- Hall ticket signature card --- */
.ticket {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 30px 30px 26px 46px;
    transform: rotate(1.6deg);
}

.ticket::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 26px;
    background-image: radial-gradient(circle at 13px 0, var(--hole) 6px, transparent 6.5px);
    background-size: 26px 30px;
    background-repeat: repeat-y;
    border-right: 1px dashed var(--border);
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.ticket-head .t1 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.ticket-head .t2 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 3px;
}

.stamp {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: 8px;
    padding: 5px 10px;
    transform: rotate(-9deg);
    white-space: nowrap;
}

.ticket-field {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.88rem;
}

.ticket-field span:first-child {
    color: var(--muted);
}

.ticket-field span:last-child {
    font-weight: 600;
    text-align: right;
}

.ticket-foot {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-foot .barcode {
    flex: 1;
    height: 26px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px);
    opacity: 0.75;
}

.ticket-foot .id {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
}

/* tear divider */
.tear {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 34px;
    color: var(--muted);
}

.tear::before,
.tear::after {
    content: "";
    flex: 1;
    height: 0;
    border-top: 1.5px dashed var(--border);
}

.tear span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============ HOW IT WORKS / STEP CARDS ============ */
.how {
    padding: 10px 0 56px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 38px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-top: 10px;
}

.section-head p {
    color: var(--ink-soft);
    margin-top: 12px;
    font-size: 1rem;
}

.steps-mini {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.step-mini {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px;
    box-shadow: var(--shadow);
}

.step-mini .qno {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--red);
    font-weight: 700;
}

.step-mini h3 {
    font-size: 1rem;
    margin-top: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
}

.step-mini p {
    font-size: 0.83rem;
    color: var(--muted);
    margin: 6px 0 0;
}

/* ============ FINDER (homepage) ============ */
.finder {
    padding: 10px 0 30px;
    scroll-margin-top: 90px;
}

.finder-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 34px clamp(18px, 4vw, 44px) 30px;
}

.finder-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
}

.quick-search {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.quick-search input {
    width: 100%;
    padding: 11px 14px 11px 36px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--paper);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--ink);
}

.quick-search input:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}

.quick-search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--muted);
}

.stepper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 14px 12px;
    transition: opacity .2s ease, filter .2s ease;
}

.field.locked {
    opacity: 0.45;
    filter: grayscale(0.5);
}

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.field.done .field-num {
    background: var(--green);
}

.field-label label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
}

.field select {
    width: 100%;
    padding: 9px 10px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--card);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.87rem;
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234B5061'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 26px;
}

.field select:disabled {
    cursor: not-allowed;
}

.field select:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}

.finder-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.finder-actions .hint {
    font-size: 0.82rem;
    color: var(--muted);
}

.finder-buttons {
    display: flex;
    gap: 12px;
}

.btn-reset {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--ink-soft);
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
}

.btn-reset:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-find {
    background: var(--navy);
    color: #F6F1E4;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 5px 0 #172236;
}

.btn-find:hover {
    box-shadow: 0 3px 0 #172236;
    transform: translateY(2px);
}

.btn-find:disabled {
    background: #B7AF9B;
    box-shadow: none;
    cursor: not-allowed;
}

/* ============ RESULTS (homepage) ============ */
.results {
    padding: 20px 0 80px;
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.results-head h3 {
    font-size: 1.2rem;
    font-family: 'Fraunces', serif;
}

.results-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.paper-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 18px 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    animation: cardIn .45s ease forwards;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paper-card .clip {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 20px;
    height: 30px;
    color: var(--muted);
    opacity: 0.85;
}

.paper-card .badge {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.badge.first {
    background: #E4EBF6;
    color: var(--navy);
}

.badge.second {
    background: #F7ECD9;
    color: var(--amber);
}

.badge.third {
    background: #E4EFE7;
    color: var(--green-dark);
}

.paper-card h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.25;
}

.paper-card .school {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
    margin-top: 2px;
}

.paper-meta .info {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.5;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    padding: 9px 13px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-transform: uppercase;
    flex-shrink: 0;
}

.dl-btn:hover {
    background: var(--red);
}

.dl-btn svg {
    width: 13px;
    height: 13px;
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    background: var(--paper-2);
}

.empty-state .pencil {
    width: 34px;
    height: 34px;
    margin: 0 auto 14px;
    color: var(--muted);
}

.empty-state h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
}

.empty-state p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

.prompt-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
    font-size: 0.92rem;
}

/* toast */
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--ink);
    color: var(--paper);
    padding: 13px 22px;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform .3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
}

#toast .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* ============ FOOTER ============ */
footer {
    border-top: 1px solid var(--border);
    background: var(--paper-2);
    padding: 44px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 28px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 12px;
    max-width: 34ch;
}

.footer-col h5 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.87rem;
    padding: 5px 0;
}

.footer-col a:hover {
    color: var(--red);
}

.footer-col a.active {
    color: var(--red);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border);
    padding-top: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    margin: 0;
}

/* ============================================================
   SUBPAGE COMPONENTS
   (Contact / Report Missing Paper / For Schools)
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 18px;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--red);
}

/* Page hero (smaller than homepage hero) */
.page-hero {
    padding: 52px 0 38px;
    border-bottom: 1px dashed var(--border);
}

.page-hero .eyebrow {
    margin-bottom: 14px;
    display: inline-block;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.07;
    max-width: 20ch;
}

.page-hero p.lede {
    margin-top: 16px;
    font-size: 1.02rem;
    color: var(--ink-soft);
    max-width: 58ch;
}

.page-hero .hero-actions {
    margin-top: 26px;
}

/* stat strip (trust bar) */
.stat-strip {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 26px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    margin: 6px 0 46px;
}

/* Two column content layout */
.content-section {
    padding: 50px 0 80px;
}

.content-section.tight {
    padding-top: 10px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
}

.content-grid.reverse {
    grid-template-columns: 1fr 1.6fr;
}

/* Form card */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 34px clamp(18px, 4vw, 40px) 36px;
}

.form-card h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.form-card .form-sub {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-block label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
}

.field-block label .req {
    color: var(--red);
    margin-left: 2px;
}

.field-block label .optional {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--muted);
    opacity: 0.75;
    font-size: 0.72rem;
}

.field-block input[type=text],
.field-block input[type=email],
.field-block input[type=tel],
.field-block select,
.field-block textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--paper);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
}

.field-block select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234B5061'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    background-color: var(--paper);
}

.field-block textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.55;
}

.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
    border-color: var(--navy);
}

.field-block .field-hint {
    font-size: 0.76rem;
    color: var(--muted);
}

.form-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 14px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 36ch;
}

.demo-note {
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 16px;
    font-family: 'IBM Plex Mono', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-note svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.btn-submit {
    background: var(--red);
    color: #FBF6EA;
    border: none;
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 5px 0 var(--red-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    box-shadow: 0 3px 0 var(--red-dark);
    transform: translateY(2px);
}

.btn-submit svg {
    width: 15px;
    height: 15px;
}

/* Success panel */
.success-panel {
    display: none;
    text-align: center;
    padding: 44px 16px;
}

.success-panel.show {
    display: block;
}

.success-panel .stamp-big {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--green);
    border: 2.5px solid var(--green);
    border-radius: 10px;
    padding: 10px 22px;
    transform: rotate(-6deg);
    margin-bottom: 20px;
}

.success-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.success-panel p {
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 46ch;
    margin: 0 auto;
    line-height: 1.6;
}

.success-panel .btn {
    margin-top: 24px;
}

/* Sidebar cards */
.side-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 26px 24px;
    margin-bottom: 18px;
}

.side-card h3 {
    font-size: 1rem;
    font-family: 'Fraunces', serif;
    margin-bottom: 14px;
}

.side-card .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.86rem;
}

.side-card .row:last-child {
    border-bottom: none;
}

.side-card .row span:first-child {
    color: var(--muted);
}

.side-card .row span:last-child {
    font-weight: 600;
    text-align: right;
}

.side-card p.note {
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.6;
}

.side-card p.note a {
    color: var(--red);
    text-decoration: underline;
}

.side-card ol.numbered {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-card ol.numbered li {
    display: flex;
    gap: 12px;
    font-size: 0.87rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.side-card ol.numbered .n {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red);
    flex-shrink: 0;
}

.side-card ul.tips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-card ul.tips li {
    display: flex;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.side-card ul.tips li svg {
    width: 15px;
    height: 15px;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* channel list */
.channel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--paper);
}

.channel .icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--card);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red);
}

.channel .icon svg {
    width: 16px;
    height: 16px;
}

.channel .txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.channel .txt .lbl {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
}

.channel .txt .val {
    font-size: 0.88rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Chip radio group */
.chip-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    position: relative;
}

.chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.chip label {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--paper);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.chip input:checked+label {
    background: var(--navy);
    border-color: var(--navy);
    color: #F6F1E4;
}

.chip input:focus-visible+label {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* Feature / benefit cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 22px;
    box-shadow: var(--shadow);
}

.feature-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--paper-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-bottom: 16px;
}

.feature-card .icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-size: 1.02rem;
    font-family: 'Fraunces', serif;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Process list (numbered steps, vertical) */
.process-list {
    display: flex;
    flex-direction: column;
}

.process-item {
    display: flex;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px dashed var(--border);
}

.process-item:first-child {
    padding-top: 0;
}

.process-item:last-child {
    border-bottom: none;
}

.process-num {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--red);
    width: 46px;
    flex-shrink: 0;
}

.process-item h3 {
    font-size: 1.04rem;
    margin-bottom: 6px;
}

.process-item p {
    font-size: 0.89rem;
    color: var(--muted);
    max-width: 62ch;
    line-height: 1.6;
}

/* ============ RESPONSIVE ============ */
@media (max-width:920px) {
    nav.links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .ticket {
        transform: none;
        margin-top: 10px;
    }

    .steps-mini {
        grid-template-columns: repeat(2, 1fr);
    }

    .stepper {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .stepper {
        grid-template-columns: 1fr;
    }

    .steps-mini {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 20px;
    }

    .finder-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .finder-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-submit-row .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .process-item {
        flex-direction: column;
        gap: 6px;
    }

    .stat-strip {
        gap: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .paper-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    * {
        transition: none !important;
    }
}

/* ============ LOADER ============ */
#loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity .5s ease, visibility .5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--red);
    border-top-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    color: var(--ink);
}

.loader-bar {
    width: 140px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--red);
    border-radius: 2px;
    animation: loaderBar 1.1s ease-in-out infinite;
}

@keyframes loaderBar {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(350%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader-mark {
        animation: none;
        border-top-color: var(--red);
    }

    .loader-bar span {
        animation: none;
        width: 100%;
        transform: none;
    }
}