/* SmogDesk — site styles */
:root {
  --navy: #14234B;
  --navy-deep: #0E1936;
  --navy-card: #1B2D5C;
  --navy-line: #2D4273;
  --red: #D61F26;
  --red-dark: #B3171D;
  --blue: #1D5FA8;
  --bg: #F3F5F9;
  --white: #FFFFFF;
  --ink: #0F1A33;
  --body: #2A3448;
  --muted: #4B5568;
  --line: #DCE1EA;
  --on-navy: #C9D2E6;
  --on-navy-muted: #9FB0D3;
  --display: 'Archivo', system-ui, sans-serif;
  --text: 'IBM Plex Sans', system-ui, sans-serif;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-stretch: 115%; font-weight: 800; line-height: 1.08; margin: 0; color: var(--navy); }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * 40px); margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-weight: 600; font-size: 17px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: #6D7FA8; color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* Header */
.site-header { background: var(--navy); border-bottom: 1px solid #22335F; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-weight: 500; font-size: 16px; }
.nav a { color: #DCE3F2; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 16px; color: var(--white); text-decoration: none; }
.menu { display: none; }

/* Sections */
.section { padding: 96px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--on-navy); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.section-navy .eyebrow { color: #FF8A8E; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(34px, 4vw, 48px); }

.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(20, 35, 75, .14); background: var(--white); }
.section-navy .shot { border-color: #33466F; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

/* Hero */
.hero { background: var(--navy); padding: 80px 0 96px; text-align: center; }
.hero-copy { max-width: 920px; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { color: var(--white); font-stretch: 118%; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.01em; }
.hero p { color: var(--on-navy); font-size: 20px; max-width: 760px; }
.hero .eyebrow { color: #FF8A8E; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.platforms-line { font-size: 15px; color: var(--on-navy-muted) !important; }

/* Trust strip */
.strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 30px 0; }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip p { font-size: 18px; font-weight: 500; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; background: #E8EEF8; color: var(--navy); font-size: 14px; font-weight: 600; }

/* Features */
.features { display: flex; flex-direction: column; gap: 120px; }
.feature { display: flex; flex-direction: column; gap: 36px; }
.feature-head { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 64px; align-items: end; }
.feature-head > div { display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-size: clamp(28px, 3vw, 38px); font-stretch: 112%; }
.feature ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; color: var(--body); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #F8F9FC; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-family: var(--text); font-stretch: 100%; font-size: 20px; font-weight: 700; line-height: 1.3; }
.card p { color: var(--muted); }
.card-white { background: var(--white); }
.device { padding: 28px; border-radius: 12px; background: var(--navy-card); border: 1px solid var(--navy-line); display: flex; flex-direction: column; gap: 12px; }
.device strong { color: var(--white); font-size: 21px; }
.device span { color: var(--on-navy-muted); font-size: 16px; }

/* CTA */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { font-size: clamp(32px, 4vw, 46px); }

/* Page header */
.page-head { padding: 88px 0 48px; }
.page-head h1 { font-size: clamp(40px, 5vw, 56px); font-stretch: 118%; margin-bottom: 16px; }
.page-head.center { text-align: center; }
.page-head.center .lead { margin: 0 auto; }

/* Pricing */
.plan { max-width: 560px; margin: 0 auto; background: var(--white); border: 2px solid var(--navy); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.plan-name { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 26px; color: var(--navy); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1; color: var(--ink); }
.price span { font-size: 18px; color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--body); }

/* Download */
.store { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; gap: 24px; align-items: flex-start; }
.store-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.store h2 { font-family: var(--text); font-stretch: 100%; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.store p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

/* FAQ */
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.faq h2 { font-family: var(--text); font-stretch: 100%; font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.faq p { color: var(--muted); font-size: 16px; }
.help { background: var(--navy); border-radius: 14px; padding: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.help h2 { color: var(--white); font-size: 30px; }
.help p { color: var(--on-navy); }

/* Legal */
.legal { max-width: 800px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 48px; margin: 0 auto; }
.legal h2 { font-size: 24px; font-stretch: 105%; margin: 36px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--body); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }

/* Footer */
.site-footer { background: var(--navy-deep); padding: 56px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer img { height: 74px; width: auto; margin-bottom: 12px; }
.site-footer small { color: var(--on-navy-muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer nav a { color: var(--on-navy); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: var(--white); }

:focus-visible { outline: 3px solid #FF8A8E; outline-offset: 2px; }

/* Phone frames */
.phone { border: 9px solid #0A1230; border-radius: 34px; overflow: hidden; background: #0A1230; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.phone img { width: 100%; }

/* Hero: desktop + phone */
.hero-visual { position: relative; padding-right: 150px; }
.hero-visual .phone { position: absolute; right: 0; bottom: -48px; width: 270px; }

/* Sync section */
.sync { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 72px; align-items: center; }
.sync-copy { display: flex; flex-direction: column; gap: 20px; }
.sync-copy h2 { font-size: clamp(34px, 4vw, 48px); }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.checks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--body); }
.checks .ic { width: 40px; height: 40px; border-radius: 10px; background: #E8EEF8; display: flex; align-items: center; justify-content: center; }
.checks strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 2px; }
.sync-visual { position: relative; padding: 0 0 40px 0; }
.sync-visual .shot { width: 100%; }
.sync-visual .phone { position: absolute; left: -40px; bottom: 0; width: 180px; border-width: 7px; border-radius: 26px; }
.sync-badge { position: absolute; right: -12px; top: -18px; background: var(--navy); color: var(--white); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px rgba(20,35,75,.3); }
.device-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.device-chip { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 15px; background: #F8F9FC; }

/* Phone gallery */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.phones figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.phones figcaption { text-align: center; }
.phones figcaption strong { display: block; color: var(--white); font-size: 18px; }
.phones figcaption span { color: var(--on-navy-muted); font-size: 15px; }

/* Paper documents */
.papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.papers figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.paper { background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px rgba(20, 35, 75, .14); padding: 8px; }
.papers figcaption strong { display: block; color: var(--navy); font-size: 19px; }
.papers figcaption span { color: var(--muted); font-size: 16px; }

@media (max-width: 1080px) {
  .sync { grid-template-columns: 1fr; gap: 56px; }
  .sync-visual { max-width: 620px; margin-left: 40px; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-visual { padding-right: 70px; }
  .hero-visual .phone { width: 120px; bottom: -28px; border-width: 5px; border-radius: 18px; }
  .sync-visual { margin-left: 30px; }
  .sync-visual .phone { width: 110px; left: -30px; border-width: 5px; border-radius: 18px; }
  .sync-badge { font-size: 13px; padding: 8px 12px; right: 0; }
  .device-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; margin: 0 -16px; padding: 0 16px 8px; }
  .phones figure { flex: 0 0 68%; scroll-snap-align: center; }
  .papers { grid-template-columns: 1fr; }
}

/* Tablet */
@media (max-width: 1080px) {
  .feature-head { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-copy { margin-bottom: 36px; }
  .hero p { font-size: 18px; }
  .site-header .wrap { height: 68px; }
  .brand img { height: 48px; }
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--white); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--navy-card); }
  .menu-panel { position: absolute; right: 0; top: 52px; width: 220px; background: var(--navy); border: 1px solid var(--navy-line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(0,0,0,.3); }
  .menu-panel a { color: var(--white); text-decoration: none; padding: 12px 14px; border-radius: 8px; font-weight: 500; }
  .menu-panel a:hover { background: var(--navy-card); }
  .menu-panel .btn { margin-top: 6px; }
  .strip .wrap { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 40px; }
  .features { gap: 72px; }
  .feature { gap: 24px; }
  .feature ul { grid-template-columns: 1fr; }
  .shot { border-radius: 10px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .page-head { padding: 56px 0 32px; }
  .plan, .legal { padding: 28px 22px; }
  .price strong { font-size: 48px; }
  .store { padding: 24px; flex-direction: column; gap: 16px; }
  .help { padding: 28px; }
  .actions .btn { width: 100%; }
}

/* Mobile page: phone + text rows */
.mrows { display: flex; flex-direction: column; gap: 110px; }
.mrow { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 80px; align-items: center; }
.mrow.flip { grid-template-columns: minmax(0, 1fr) 320px; }
.mrow.flip .phone { order: 2; }
.mrow > div:not(.phone) { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.mrow h2 { font-size: clamp(28px, 3vw, 38px); font-stretch: 112%; }
.mrow ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--body); }
.page-hero { background: var(--navy); padding: 80px 0 96px; }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: center; }
.page-hero h1 { color: var(--white); font-stretch: 118%; font-size: clamp(40px, 5vw, 60px); margin-bottom: 18px; }
.page-hero p { color: var(--on-navy); font-size: 19px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo .phone:last-child { transform: translateY(48px); }
@media (max-width: 1080px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .duo { max-width: 480px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 48px 0 80px; }
  .mrows { gap: 64px; }
  .mrow, .mrow.flip { grid-template-columns: 1fr; gap: 28px; }
  .mrow .phone, .mrow.flip .phone { order: 0; max-width: 260px; margin: 0 auto; }
  .duo { gap: 14px; }
  .duo .phone { border-width: 6px; border-radius: 22px; }
}

/* Support contact box */
.help { align-items: stretch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: 12px; padding: 18px; }
.contact-item svg { flex-shrink: 0; margin-top: 2px; }
.contact-item span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 4px; }
.contact-item a, .contact-item strong { color: var(--white); font-weight: 600; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.contact-item a:hover { text-decoration: underline; color: var(--white); }
@media (max-width: 1080px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Quote button + earlier hamburger so the header never crowds */
.btn-quote { border: 1.5px solid #6D7FA8; color: var(--white) !important; background: transparent; }
.btn-quote:hover { border-color: var(--white); }
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--white); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--navy-card); }
  .menu-panel { position: absolute; right: 0; top: 52px; width: 240px; background: var(--navy); border: 1px solid var(--navy-line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(0,0,0,.3); }
  .menu-panel a { color: var(--white); text-decoration: none; padding: 12px 14px; border-radius: 8px; font-weight: 500; }
  .menu-panel a:hover { background: var(--navy-card); }
  .menu-panel .btn { margin-top: 6px; }
}
@media (max-width: 760px) { .contact-item a, .contact-item strong { font-size: 15.5px; } .help { padding: 24px 18px; } }

/* Quote form */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--navy); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #F8F9FC; border: 1.5px solid #C9D1DF; border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 95, 168, .18); background: var(--white); }
.form .btn { grid-column: 1 / -1; justify-self: start; border: none; cursor: pointer; font-family: inherit; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.hidden-field { position: absolute; left: -9999px; }
.aside { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1080px) { .quote-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .form { grid-template-columns: 1fr; padding: 24px 18px; } }
