/* Pre-Trip Drill — site styles. Derived from drivinglog.acsimsek.com; one file, no framework, no web fonts. */

:root {
  color-scheme: light;
  --teal: #1f4e79;
  --teal-dark: #12304c;
  --teal-soft: #e4eef8;
  --sky: #2e7fd1;
  --night: #c2410c;
  --day: #e58f2a;
  --ink: #10262d;
  --muted: #5b6b70;
  --line: #dbe6e8;
  --bg: #f5f8fb;
  --card: #ffffff;
  --amber: #b8651b;
  --radius: 22px;
  --shadow: 0 24px 65px rgba(18, 48, 76, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* Top bar */
.topbar { background: rgba(245, 248, 251, 0.88); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(219, 230, 232, .8); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.topbar nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.topbar nav a:hover { color: var(--teal-dark); }
.topbar nav .btn { padding: 9px 14px; font-size: .95rem; }
@media (max-width: 900px) { .topbar nav { gap: 14px; } .topbar nav a:not(.btn):not([href="/guides/"]) { display: none; } }
@media (max-width: 480px) { .topbar nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff !important; padding: 13px 20px; border-radius: 14px; text-decoration: none; font-weight: 700; border: 1.5px solid var(--teal); box-shadow: 0 10px 24px rgba(31, 78, 121, .2); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn.secondary { background: rgba(255,255,255,.82); color: var(--teal) !important; box-shadow: none; }
.btn.secondary:hover { background: var(--teal-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }

/* Hero */
.hero { padding: 76px 0 58px; overflow: hidden; background: radial-gradient(circle at 82% 15%, rgba(85,73,183,.14), transparent 28%), radial-gradient(circle at 14% 5%, rgba(46,148,209,.14), transparent 28%), linear-gradient(155deg, #f8fbff 0%, #edf8f7 58%, #f3efff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.03fr .97fr; gap: 54px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { color: var(--teal-dark); font-size: clamp(2.55rem, 6.2vw, 4.25rem); max-width: 12ch; }
.hero .lede { font-size: 1.22rem; color: var(--muted); max-width: 34ch; }
.eyebrow { color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; padding: 0; list-style: none; }
.badges li { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 999px; }
.phone { justify-self: center; width: min(320px, 80vw); border-radius: 46px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.9); overflow: hidden; background: #fff; }
.phone img { display: block; width: 100%; height: auto; }
.hero-visual { position: relative; min-height: 650px; display: grid; place-items: center; isolation: isolate; }
.hero-visual .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: linear-gradient(135deg, rgba(31,78,121,.28), rgba(85,73,183,.2)); filter: blur(2px); z-index: -1; }
.hero-visual .phone-main { width: min(330px, 73vw); transform: rotate(-2.5deg) translateX(-40px); }
.hero-visual .phone-float { position: absolute; width: 205px; right: -6px; bottom: 18px; transform: rotate(5deg); box-shadow: 0 30px 70px rgba(32, 25, 82, .24); }
.trust-strip { background: var(--teal-dark); color: white; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); padding: 0; }
.trust-strip .wrap > div { padding: 22px; background: var(--teal-dark); display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-strip strong { font-size: 1.65rem; line-height: 1; }
.trust-strip span { font-size: .82rem; opacity: .76; margin-top: 6px; }
@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-visual { min-height: 550px; }
  .hero-visual .phone-main { transform: rotate(-2deg) translateX(-24px); }
  .hero-visual .phone-float { right: 5%; width: 175px; }
  .phone { width: min(260px, 70vw); }
}
@media (max-width: 560px) { .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.steps .card { position: relative; padding-top: 26px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.split .phone { width: min(300px, 76vw); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .phone { order: 2; } }
.checks { list-style: none; padding: 0; margin: 14px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft); border: 1.5px solid var(--teal); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Product tour */
.product-tour { background: linear-gradient(180deg, #f5f8fb, #eef8f7); overflow: hidden; }
.product-tour .section-head { max-width: 720px; }
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
.screen-card { min-width: 0; border-radius: 28px; padding: 24px 18px 0; overflow: hidden; border: 1px solid rgba(255,255,255,.9); background: linear-gradient(155deg, #fff4dc, #fff); box-shadow: 0 18px 45px rgba(20,50,60,.08); }
.screen-card.night { background: linear-gradient(155deg, #e9e7ff, #fff); }
.screen-card.pro-card { background: linear-gradient(155deg, #dcf4f1, #fff); }
.screen-card > div:first-child { min-height: 180px; }
.screen-card span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(244,162,41,.17); color: #a45d00; font-size: .78rem; font-weight: 800; }
.screen-card.night span { background: rgba(85,73,183,.14); color: var(--night); }
.screen-card.pro-card span { background: rgba(31,78,121,.14); color: var(--teal); }
.screen-card h3 { margin-top: 16px; font-size: 1.25rem; }
.screen-card p { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.screen-card .phone { width: 100%; max-width: 285px; border-radius: 38px 38px 0 0; border-bottom: 0; box-shadow: 0 16px 35px rgba(14, 42, 52, .14); }
@media (max-width: 820px) { .screen-grid { grid-template-columns: 1fr; } .screen-card { display: grid; grid-template-columns: 1fr 210px; gap: 12px; align-items: end; } .screen-card > div:first-child { min-height: 0; align-self: center; } }
@media (max-width: 540px) { .screen-card { grid-template-columns: 1fr; } .screen-card .phone { max-width: 250px; } }

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

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pricing .card h3 { display: flex; justify-content: space-between; align-items: baseline; }
.pricing .price { font-size: 1.4rem; font-weight: 750; color: var(--teal-dark); }
.pricing ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.pricing li { margin: 6px 0; }
.pricing .card.pro { border-color: var(--teal); box-shadow: var(--shadow); }

/* State finder */
.finder { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.finder input { width: 100%; padding: 14px 16px; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; margin: 10px 0 14px; }
.finder input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 550; font-size: .95rem; }
.chips a:hover { border-color: var(--teal); background: var(--teal-soft); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.guide-grid li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.guide-grid a { display: block; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.guide-grid a:hover { border-color: var(--teal); }
.guide-grid strong { display: block; font-weight: 650; }
.guide-grid span { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.guide-grid li[hidden] { display: none; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--teal); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 14px; }

/* Guide pages */
.guide-hero { background: linear-gradient(160deg, #eef7f7, #f7fafa 70%); border-bottom: 1px solid var(--line); padding: 44px 0 34px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.guide-hero h1 { color: var(--teal-dark); font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.55rem; line-height: 1.1; color: var(--teal-dark); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: .9rem; }
.prose { padding-top: 34px; padding-bottom: 20px; }
.prose h2 { margin-top: 1.9em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose th[scope=row] { width: 42%; font-weight: 600; background: #fbfdfd; }
.callout { background: var(--teal-soft); border-radius: 14px; padding: 16px 18px; }
.callout.warn { background: #fdf3e7; color: #6b3d0f; }
.sources { font-size: .95rem; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px; }
.cta-panel { background: var(--teal-dark); color: #fff; border-radius: var(--radius); padding: 28px; margin: 36px 0; }
.cta-panel h2 { color: #fff; margin-bottom: .3em; }
.cta-panel p { color: #d6ebed; max-width: 60ch; }
.cta-panel .btn { background: #fff; color: var(--teal-dark) !important; border-color: #fff; }
.cta-panel .btn.secondary { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.cta-panel .fineprint { font-size: .85rem; color: #b9d9dd; margin: 14px 0 0; }
.cta-inline { display: grid; grid-template-columns: 1fr 150px; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.cta-inline h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.cta-inline p { color: var(--muted); margin: 0 0 12px; font-size: .95rem; }
.cta-inline .phone { width: 150px; border-radius: 26px; box-shadow: 0 12px 30px rgba(14,42,52,.14); }
@media (max-width: 560px) { .cta-inline { grid-template-columns: 1fr; } .cta-inline .phone { width: 180px; justify-self: center; } }

/* Printable log sheets */
.sheet-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; }
.sheet-actions .btn { font: inherit; font-weight: 700; cursor: pointer; }
.sheet-rules { margin: 1em 0; padding-left: 20px; color: var(--muted); }
.sheet-head { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 18px 0; }
.sheet-head div, .signature div { border-bottom: 1px solid var(--ink); padding-top: 24px; font-size: .88rem; color: var(--muted); }
.sheet table.log { font-size: .9rem; }
.sheet table.log th, .sheet table.log td { padding: 8px; height: 34px; border-right: 1px solid var(--line); }
.sheet table.log th:last-child, .sheet table.log td:last-child { border-right: 0; }
.sheet table.log th[scope=col] { background: #fbfdfd; font-weight: 650; }
.sheet table.log th[scope=row] { width: auto; }
.sheet-cert { margin-top: 18px; font-size: .95rem; }
.signature { display: grid; grid-template-columns: 2fr 1fr; gap: 18px 28px; margin: 12px 0 28px; }
@media print {
  .topbar, footer, .cta-panel, .cta-inline, .sheet-actions, .state-nav, .crumbs, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 9.5pt; line-height: 1.3; }
  .guide-hero { background: none; border: 0; padding: 0; }
  .guide-hero h1 { font-size: 17pt; margin-bottom: .2em; }
  .guide-hero .lede { margin: 0 0 .4em; }
  .wrap { max-width: none; padding: 0; }
  .prose { padding-top: 4px; }
  .prose h2 { font-size: 13pt; margin-top: 1em; }
  .prose table, .sheet table.log { border-radius: 0; border: 1px solid #000; margin: .6em 0; }
  .prose th, .prose td { padding: 5px 7px; }
  .sheet table.log th, .sheet table.log td { border: 1px solid #000; height: 24px; padding: 3px 5px; font-size: 8.5pt; }
  .callout { background: none; border: 1px solid #000; padding: 6px 8px; font-size: 8.5pt; }
  .sheet-rules { color: #000; font-size: 8.5pt; margin: .5em 0; }
  .sheet-head { gap: 6px 24px; margin: 10px 0; }
  .sheet-head div, .signature div { color: #000; border-bottom-color: #000; padding-top: 16px; font-size: 8pt; }
  .sheet-cert { margin: 8px 0 0; font-size: 8.5pt; }
  .signature { grid-template-columns: 2fr 1fr 2fr 1fr; gap: 6px 18px; margin: 4px 0 8px; }
  .disclaimer { font-size: 7pt; margin-top: .6em; padding-top: .4em; }
  a { color: #000; text-decoration: none; }
  @page { margin: 11mm 12mm; }
}
.disclaimer { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5em; padding-top: 1em; }
.state-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; font-weight: 600; }

/* Text pages */
.page { padding-top: 44px; padding-bottom: 20px; }
.page h1 { color: var(--teal-dark); font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
.page h2 { margin-top: 1.8em; font-size: 1.35rem; }
code { background: var(--teal-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--teal-dark); }
footer .legal { flex-basis: 100%; font-size: .85rem; margin-top: 8px; }

/* Pre-Trip Drill additions */
.price-box { background: var(--card); border: 1.5px solid var(--teal); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.price-box .big { font-size: 2.2rem; font-weight: 800; color: var(--teal-dark); letter-spacing: -0.02em; }
.price-box .strike { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 1.1rem; margin-left: 8px; }
.price-box .fine { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }
.form { display: grid; gap: 10px; margin-top: 14px; }
.form label { font-weight: 600; font-size: .92rem; }
.form input, .form select { width: 100%; padding: 12px 14px; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.form input:focus, .form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form button { font: inherit; cursor: pointer; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: .95rem; margin-top: 8px; min-height: 1.4em; }
.form-msg.ok { color: #14663a; } .form-msg.err { color: #9b2c2c; }
.section-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.section-list li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.section-list b { display: block; }
.section-list span { color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 5px; border: 1.5px solid var(--ink); border-radius: 4px; }
.checklist .say { color: var(--muted); font-size: .92rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--teal-soft); color: var(--teal-dark); vertical-align: middle; }
.badge.warn { background: #fdf3e7; color: #6b3d0f; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
@media print {
  .price-box, .form, .hero, .topbar, footer, .cta-panel, .no-print { display: none !important; }
  .checklist li { border-bottom: 1px solid #999; padding: 3px 0; font-size: 9pt; }
  .checklist li::before { border-color: #000; }
  .section-list li { border: 0; padding: 2px 0; }
}
