/* Homepage (2026-10 redesign, review paragraphs 4, 5, 6, 7). Loaded after site.css and lines.css. */

/* ---------- Opening ---------- */
.home-hero { padding: 96px 0 40px; background:
  radial-gradient(900px 500px at 85% -10%, rgba(232,182,76,.16), transparent 60%),
  linear-gradient(180deg, var(--navy) 0%, var(--sea) 100%); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 44px; align-items: center; }
.home-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.08; max-width: 17ch; }
.home-hero .lede { margin-top: 16px; font-size: 1.15rem; max-width: 46ch; color: #c6d3e3; }
.hero-search { margin-top: 26px; display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 14px; padding: 6px 6px 6px 14px; max-width: 520px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--paper-muted); stroke-width: 2.2; stroke-linecap: round; }
.hero-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--paper-ink); font: inherit; font-size: 1.05rem; padding: 6px 4px; }
.hero-search input::placeholder { color: #6b778a; }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--teal), 0 10px 30px rgba(0,0,0,.25); }
.hero-search .btn { padding: 10px 18px; }
.hero-start { margin-top: 14px; color: #b9c7d8; font-size: .97rem; }
.hero-start a { color: #fff; text-underline-offset: 3px; display: inline-block; padding: 6px 0; margin: -6px 0; }
.hero-start a:hover { color: var(--gold-soft); }

.hero-photo { margin: 0; min-height: 420px; aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.hero-photo img { position: absolute; inset: 0; }
.hero-photo figcaption { font-size: .9rem; padding: 40px 18px 12px; }
.hero-photo figcaption > span { font-weight: 600; }
.hero-photo-year { font-weight: 400; opacity: .85; }
.hero-photo.is-empty { background: linear-gradient(160deg, #13315c, #0b2545); border: 1px solid rgba(255,255,255,.08); }

/* ---------- Three starting routes ---------- */
.routes { padding: 0 0 56px; background: linear-gradient(180deg, var(--sea) 0, var(--sea) 60px, var(--deep) 60px); }
.routes-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.route { position: relative; border-radius: 18px; padding: 22px 22px 18px; display: flex; flex-direction: column; }
.route-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.route h3 { font-size: 1.3rem; line-height: 1.25; margin-top: 4px; letter-spacing: -.01em; }
.route-form { margin-top: 14px; }
.route-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.route-form select, .route-form input { width: 100%; min-height: 48px; border-radius: 10px; font: inherit; font-size: 1rem; padding: 10px 12px; }
.route-alt { margin-top: auto; padding-top: 14px; font-size: .93rem; }
.route-alt a { font-weight: 600; display: inline-block; padding: 6px 0; margin: -6px 0; }

/* 1. Choosing: warm paper, navy action */
.route-choose { background: var(--paper); color: var(--paper-ink); border-top: 5px solid var(--gold); box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.route-choose .route-kicker { color: #8a5a00; }
.route-choose select { border: 1px solid var(--paper-line); background: #fff; color: var(--paper-ink); }
.route-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.route-choose .btn { margin-top: 12px; width: 100%; background: var(--navy); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.route-choose .btn:hover { background: var(--sea); }
.route-choose .route-alt a { color: #0d5c8c; }
.route-choose .route-alt { color: var(--paper-muted); }

/* 2. Booked: deep teal, ship search */
.route-booked { background: linear-gradient(160deg, #0f5a57, #0a3b40); color: #fff; border: 1px solid rgba(60,194,176,.4); }
.route-booked .route-kicker { color: #9ff0e3; }
.route-booked .route-alt { color: #cfe9e5; }
.route-booked .route-alt a { color: #fff; }

/* 3. Machine: casino plum with gold */
.route-machine { background: radial-gradient(120% 120% at 100% 0%, rgba(232,182,76,.22), transparent 55%), linear-gradient(160deg, #4a1838, #2a0d22); color: #fff; border: 1px solid rgba(232,182,76,.35); }
.route-machine .route-kicker { color: var(--gold); }
.route-machine .route-alt { color: #e8d6e1; }
.route-machine .route-alt a { color: var(--gold-soft); }

.route-booked input, .route-machine input { border: 0; background: #fff; color: var(--paper-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.route-booked input::placeholder, .route-machine input::placeholder { color: #6b778a; }

/* Typeahead */
.ta { position: relative; }
.ta-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); list-style: none; background: #fff; color: var(--paper-ink); border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.4); padding: 6px; max-height: 320px; overflow-y: auto; }
.ta-list a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--paper-ink); min-height: 44px; }
.ta-list a:hover, .ta-list a[aria-selected="true"] { background: var(--paper-2); }
.ta-list b { display: block; font-weight: 650; }
.ta-list small { display: block; color: var(--paper-muted); font-size: .84rem; line-height: 1.35; }
.ta-list mark { background: rgba(232,182,76,.35); color: inherit; border-radius: 2px; }
.ta-list .ta-empty { padding: 12px; color: var(--paper-muted); font-size: .94rem; }
.ta-list .ta-all a { color: #0d5c8c; font-weight: 600; font-size: .93rem; }

/* ---------- Section heads ---------- */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; margin-bottom: 26px; }
.home-head > div { max-width: 640px; }
.home-head p { margin-top: 8px; color: var(--muted); font-size: 1.04rem; }
.home-head-links { display: flex; gap: 10px; flex-wrap: wrap; }
.home-head-links .btn { padding: 10px 16px; }

/* ---------- Featured lines ---------- */
.home-lines { padding: 64px 0; background: var(--deep); }
.lc-feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lc-feature .lc-facts > div { grid-template-columns: 1fr; gap: 2px; }
.lc-feature .lc-type-casino { font-size: 1.45rem; }
@media (max-width: 1100px) { .lc-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Tool preview ---------- */
.home-try { padding: 64px 0; background: radial-gradient(900px 400px at 0% 0%, rgba(60,194,176,.12), transparent 60%), linear-gradient(180deg, #0a2140, var(--navy)); border-top: 1px solid rgba(255,255,255,.06); }
.try-tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0a2b29; background: var(--teal); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.home-try .home-head a { color: #9ff0e3; }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.try-form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px; }
.try-form fieldset { border: 0; }
.try-form legend, .try-form label { font-size: .9rem; font-weight: 600; color: #dfe7f1; margin-bottom: 6px; display: block; }
.try-form label small { font-weight: 400; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: rgba(7,26,51,.6); padding: 4px; border-radius: 12px; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 6px 8px; border-radius: 9px; text-align: center; color: #c9d5e4; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.seg span:hover { background: rgba(255,255,255,.06); }
.seg input:checked + span { background: var(--teal); color: #062623; }
.seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.try-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.try-form input[type=number] { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(7,26,51,.7); color: #fff; font: inherit; font-size: 1.02rem; padding: 8px 12px; }
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input[type=number] { padding-left: 26px; }
.try-assume { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.try-out { background: var(--paper); color: var(--paper-ink); border-radius: 18px; padding: 20px 22px; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.try-theo { font-size: .98rem; color: var(--paper-muted); }
.try-theo b { color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.try-list { list-style: none; counter-reset: r; margin-top: 14px; display: grid; gap: 10px; }
.try-list > li { counter-increment: r; position: relative; padding: 12px 14px 12px 52px; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); }
.try-list > li::before { content: counter(r); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--navy); color: #fff; }
.try-list > li:first-child { border-color: rgba(138,90,0,.45); background: #fffaf0; }
.try-list > li:first-child::before { background: var(--gold); color: var(--navy); }
.try-list > li.try-wait { padding-left: 14px; color: var(--paper-muted); }
.try-list > li.try-wait::before { display: none; }
.try-list h3 { font-size: 1.04rem; line-height: 1.3; }
.try-list h3 a { color: var(--paper-ink); text-decoration: none; }
.try-list h3 a:hover { text-decoration: underline; color: #0d5c8c; }
.try-list h3 small { font-weight: 400; color: var(--paper-muted); font-size: .9rem; }
.try-tier { margin-top: 2px; font-size: .9rem; font-weight: 600; color: #0d6b60; }
.try-why { margin-top: 4px; font-size: .95rem; color: var(--paper-muted); line-height: 1.5; }
.try-note { margin-top: 12px; font-size: .86rem; color: var(--paper-muted); }
.try-go { margin-top: 14px; width: 100%; text-align: center; background: var(--gold); color: var(--navy); }
.try-out dfn.term { color: var(--paper-ink); }

/* ---------- Recent changes ---------- */
.home-latest { padding: 60px 0; }
.home-latest .home-head p { color: var(--paper-muted); }
.more-updates { margin-top: 14px; }
.more-updates summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(13,107,96,.4); color: var(--teal-ink); background: rgba(13,107,96,.06); font-weight: 700; cursor: pointer; list-style: none; }
.more-updates summary::-webkit-details-marker { display: none; }
.more-updates summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 6px; transition: transform var(--t) var(--ease); }
.more-updates[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.more-updates summary span { font-weight: 400; }
.more-updates .timeline { margin-top: 16px; }

/* ---------- Basics and reference ---------- */
.home-more { padding: 56px 0 64px; }
.home-more-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.home-more h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.basics { list-style: none; margin-top: 14px; display: grid; gap: 12px; }
.basics li { padding-left: 16px; border-left: 3px solid rgba(138,90,0,.4); color: var(--paper-muted); }
.basics b { color: var(--paper-ink); }
.home-ref ul { list-style: none; margin-top: 12px; display: grid; gap: 4px; }
.home-ref a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; background: #fff; border: 1px solid var(--paper-line); }
.home-ref a:hover { border-color: rgba(13,92,140,.45); }
.home-ref b { display: block; color: var(--paper-ink); }
.home-ref small { display: block; color: var(--paper-muted); font-size: .88rem; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .routes { background: var(--deep); padding-top: 28px; }
  .routes-grid { grid-template-columns: 1fr 1fr; }
  .route-choose { grid-column: 1 / -1; }
  .try-grid { grid-template-columns: 1fr; }
  .home-more-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .home-hero { padding: 76px 0 18px; }
  .home-hero h1 { font-size: 1.9rem; max-width: none; }
  .home-hero .lede { font-size: 1rem; margin-top: 10px; line-height: 1.5; }
  .hero-search { margin-top: 16px; padding-left: 12px; }
  .hero-search .btn { display: none; }
  .hero-start { display: none; }
  .hero-photo { aspect-ratio: auto; height: 200px; border-radius: 14px; }
  .hero-photo figcaption { padding: 26px 12px 8px; font-size: .82rem; }
  .routes { padding: 20px 0 40px; }
  .routes-grid { grid-template-columns: 1fr; gap: 14px; }
  .route { padding: 18px 16px 16px; }
  .route h3 { font-size: 1.18rem; }
  .home-lines, .home-try, .home-latest { padding: 44px 0; }
  /* Featured lines scroll sideways on phones instead of stacking four tall cards */
  .lc-feature { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 16px; scrollbar-width: thin; }
  .lc-feature > .lc { flex: 0 0 82%; scroll-snap-align: start; }
  .try-form, .try-out { padding: 16px; }
  .try-list > li { padding-left: 46px; }
  .try-list > li::before { left: 12px; }
}
@media (max-width: 380px) { .route-pair, .try-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hero-photo.is-empty { display: none; } }

/* ---------- 404 page ---------- */
.nf-search { margin-top: 22px; }
.nf-dest { padding: 44px 0 60px; }
.nf-h { font-family: inherit; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 12px; }
.nf-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.nf-list a { display: block; height: 100%; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); text-decoration: none; }
.nf-list a:hover { border-color: rgba(13,92,140,.45); }
.nf-list b { display: block; color: var(--paper-ink); }
.nf-list small { display: block; color: var(--paper-muted); font-size: .9rem; margin-top: 2px; }
@media (max-width: 640px) { .nf-search .btn { display: inline-block; } }
