/* Carry Sound — site styles. Colors match the app: AppGreen #4AD962 (Theme.kt) and the
   beadmin status key (Permitted, Restricted, Open, Concealed). System fonts, like the app. */
:root {
  --green: #4AD962;
  --green-ink: #0D2A12;
  --green-strong: #2E7D32;
  --green-deep: #1B5E20;
  --ink: #17212B;
  --muted: #4D5A67;
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --surface-2: #F0F4F8;
  --line: #DDE3E9;
  --link: #2E7D32;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --chip-permitted: #A5F96F;
  --chip-restricted: #E0A6A5;
  --chip-open: #D3D3D3;
  --chip-concealed: #F2AA3C;
  --chip-ink: #1B1B1B;
  --radius: 16px;
  --max: 1080px;
  --prose: 740px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8EEEA;
    --muted: #A9B6AE;
    --bg: #0E1411;
    --surface: #151D18;
    --surface-2: #1B2520;
    --line: #2A3630;
    --link: #7FE08F;
    --green-strong: #7FE08F;
    --green-deep: #A8EEB2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 480px) {
  .brand img { height: 24px; }
  .nav { gap: 0; }
  .nav a { font-size: 14px; padding: 8px 8px; }
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--green); color: var(--green-ink);
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-2); filter: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px;
  border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--chip-ink); white-space: nowrap;
}
.chip-permitted { background: var(--chip-permitted); }
.chip-restricted { background: var(--chip-restricted); }
.chip-open { background: var(--chip-open); }
.chip-concealed { background: var(--chip-concealed); }

/* Home */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0 88px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-strong); }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.phone {
  max-width: 360px; margin: 0 auto; padding: 14px;
  border-radius: 36px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.screen { border-radius: 26px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.alert {
  display: flex; gap: 12px; align-items: flex-start; margin: 12px; padding: 12px 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.alert img { width: 26px; flex: none; margin-top: 2px; }
.alert p { margin: 0; font-size: 14px; line-height: 1.4; }
.alert strong { display: block; font-size: 14px; }
.list { list-style: none; margin: 0; padding: 4px 0 8px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.list .meta { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; }
.section .intro { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-weight: 800; margin-bottom: 14px; }

.legend { display: grid; gap: 12px; }
@media (min-width: 760px) { .legend { grid-template-columns: repeat(2, 1fr); } }
.legend div { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.legend .chip { flex: none; min-width: 148px; justify-content: center; }
.legend p { margin: 3px 0 0; color: var(--muted); }
@media (max-width: 480px) { .legend div { flex-direction: column; gap: 8px; } .legend .chip { min-width: 0; } }

.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.checks li { position: relative; padding: 14px 16px 14px 48px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230D2A12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.notice {
  border-left: 4px solid var(--chip-concealed); background: var(--surface);
  border-radius: 0 12px 12px 0; padding: 16px 18px; margin: 0;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

/* Text pages */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.updated { color: var(--muted); margin: 0; }
.prose { max-width: var(--prose); padding-bottom: 72px; }
.prose h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 10px; scroll-margin-top: 80px; }
.prose h3 { font-size: 18px; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .caps { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.summary h2 { margin-top: 0; font-size: 19px; }
.summary ul { margin-bottom: 0; }
.toc { columns: 2 220px; column-gap: 32px; padding-left: 20px; margin: 12px 0 0; }
.toc li { break-inside: avoid; margin: 4px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 20px 0 8px; }
.contact-card p { margin: 0; }
.contact-card .big { font-size: 22px; font-weight: 700; margin: 4px 0 6px; }

details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin: 10px 0; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; position: relative; padding-right: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 18px 16px; }
details > div p:first-child { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer p { margin: 6px 0 0; }
