/* P2 Digital LLC site styles. Colors come from the AirGap Audio icon (navy tile, teal-to-blue wave). */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #0e182e;
  --muted: #56607a;
  --line: #e1e5ee;
  --brand: #2f6fe4;
  --brand-ink: #ffffff;
  --navy: #0e182e;
  --navy-2: #172541;
  --accent: var(--brand);
  --accent-soft: rgba(47, 111, 228, 0.1);
  --danger: #c2332b;
  --shadow: 0 1px 2px rgba(14, 24, 46, 0.05), 0 8px 24px rgba(14, 24, 46, 0.06);
  --shadow-lg: 0 2px 6px rgba(14, 24, 46, 0.06), 0 24px 60px rgba(14, 24, 46, 0.14);
  --radius: 16px;
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1222;
    --surface: #121b30;
    --surface-2: #18233c;
    --text: #edf1f8;
    --muted: #9aa6bf;
    --line: #233150;
    --brand: #5b93f5;
    --brand-ink: #0b1222;
    --accent-soft: rgba(91, 147, 245, 0.14);
    --danger: #ff7b72;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

/* Per-app accent colors */
.app-airgap { --accent: #0f8a80; --accent-soft: rgba(15, 138, 128, 0.1); }
.app-letech { --accent: #6366f1; --accent-soft: rgba(99, 102, 241, 0.1); }
@media (prefers-color-scheme: dark) {
  .app-airgap { --accent: #3cc4b7; --accent-soft: rgba(60, 196, 183, 0.13); }
  .app-letech { --accent: #8b8cf8; --accent-soft: rgba(139, 140, 248, 0.14); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); line-height: 1.6; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .btn { color: var(--brand-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: var(--brand-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px var(--accent-soft); }
.btn.small { padding: 9px 16px; font-size: 0.9rem; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.site-nav .btn, .btn.brand-btn { background: var(--brand); }

/* Sections */
section { padding: 72px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 620px; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 25% 40%, rgba(40, 194, 176, 0.16), transparent 70%),
    radial-gradient(40% 50% at 75% 30%, rgba(77, 144, 244, 0.18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
}
.hero .wrap { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { max-width: 15ch; }
.hero h1 .grad {
  background: linear-gradient(100deg, #1fae9f, #3d7ff0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; width: 100%; }
.principle { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.principle h3 { font-size: 1rem; margin-bottom: 2px; }
.principle p { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

.icon-badge {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.icon-badge svg { width: 20px; height: 20px; }

/* App cards */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-card {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.app-card-top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 4px 14px rgba(14, 24, 46, 0.18); }
.app-card h3 { font-size: 1.3rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.app-card p { color: var(--muted); }
.app-card-links { margin-top: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; font-size: 0.95rem; font-weight: 600; }
.app-card-links .quiet { color: var(--muted); font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.site-footer .brand { font-size: 0.98rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.copyright { width: 100%; color: var(--muted); font-size: 0.85rem; }

/* App bar (sub-navigation on app pages) */
.app-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.app-bar .wrap { display: flex; align-items: center; gap: 22px; height: 56px; overflow-x: auto; }
.app-bar .app-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); margin-right: auto; white-space: nowrap; }
.app-bar .app-name:hover { text-decoration: none; }
.app-bar .app-name img { width: 28px; height: 28px; border-radius: 22.5%; }
.app-bar nav { display: flex; gap: 4px; }
.app-bar nav a { color: var(--muted); font-size: 0.92rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.app-bar nav a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.app-bar nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* App hero */
.app-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.app-hero::before {
  content: ""; position: absolute; inset: -30% -20% auto 30%; height: 130%; z-index: -1;
  background: radial-gradient(45% 45% at 60% 45%, var(--accent-soft), transparent 70%);
}
.app-hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.app-hero-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.app-hero .app-icon { width: 88px; height: 88px; }
.app-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.app-hero .tags { margin-top: 0; }
.phone {
  justify-self: center; width: min(300px, 100%);
  border-radius: 40px; padding: 10px; background: var(--navy);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
}
.phone img { border-radius: 31px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* Screenshot strip */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.shot img { width: 100%; max-width: 270px; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption { font-size: 0.92rem; color: var(--muted); }
figure { margin: 0; }

/* Dark privacy panel */
.panel-dark {
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  color: #edf1f8; border-radius: 24px; padding: clamp(28px, 5vw, 52px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-dark .eyebrow { color: #3cc4b7; }
.panel-dark p { color: #b5c0d6; }
.panel-dark a { color: #6fd8cc; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: #3cc4b7; margin-top: 2px; }

/* Page header for support, privacy and contact */
.page-head { padding: 56px 0 8px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.15s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

.callout {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.callout h3 { margin-bottom: 2px; }
.callout p { color: var(--muted); }

/* Long-form text (privacy policy) */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 8px; }
.glance div { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.glance strong { font-size: 0.98rem; }
.glance span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.prose h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--accent); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; padding-top: 56px; }
.contact-intro { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.contact-notes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 16px; }
.contact-notes li { display: flex; gap: 14px; align-items: flex-start; }
.contact-notes strong { display: block; font-size: 0.98rem; }
.contact-notes span { color: var(--muted); font-size: 0.92rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.contact { display: flex; flex-direction: column; gap: 18px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 0.93rem; }
.contact label .muted { font-weight: 400; }
.contact input, .contact select, .contact textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.contact textarea { resize: vertical; min-height: 160px; }
.contact input:focus, .contact select:focus, .contact textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.contact button { align-self: flex-start; padding: 14px 26px; }
.contact .hp { position: absolute; left: -10000px; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.error {
  color: var(--danger); font-weight: 600; font-size: 0.95rem;
  padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent);
}

/* Thanks */
.thanks { min-height: 60vh; display: grid; place-items: center; padding: 64px 0; }
.thanks-card { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; max-width: 480px; }
.thanks-card .icon-badge { width: 64px; height: 64px; border-radius: 50%; }
.thanks-card .icon-badge svg { width: 30px; height: 30px; }

@media (max-width: 860px) {
  .app-hero .wrap, .panel-dark, .contact-layout { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .phone { transform: none; width: min(260px, 80%); }
  .principles, .glance { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 52px 0; }
  .hero { padding: 64px 0 48px; }
  .app-grid, .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shot { scroll-snap-align: center; }
  .contact .row { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

[id] { scroll-margin-top: 80px; }
.hero + section { padding-top: 24px; }
@media (max-width: 520px) {
  .app-bar .wrap { gap: 12px; }
  .app-bar .app-name-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .app-bar nav a { padding: 7px 10px; }
}
