/* RecW website — red-black, matching the app (docs/design.md). No frameworks. */
:root {
  --bg: #0b0b0e;
  --card: #17171c;
  --card-2: #23232a;
  --text: #f2f2f4;
  --muted: #a2a2ac;
  --red: #e5262b;
  --red-dark: #b81d21;
  --green: #5dcaa5;
  --line: #2c2c34;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Rubik", "Heebo", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
a { color: var(--text); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { padding: 18px 0; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header.site img { height: 48px; width: auto; }
header.site nav a { color: var(--muted); text-decoration: none; margin-inline-start: 18px; font-size: 16px; }
header.site nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero .icon { width: 120px; height: 120px; border-radius: 20px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.25; margin: 20px 0 8px; font-weight: 700; }
.hero p.sub { color: var(--muted); font-size: 20px; margin: 0 0 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 20px; font-weight: 600; padding: 16px 32px; border-radius: 999px;
  min-height: 56px;
}
.btn:hover { background: var(--red-dark); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.small { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: 28px; margin: 0 0 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 6px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .emoji { font-size: 28px; }

/* Steps */
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
ol.steps li {
  counter-increment: s; position: relative;
  background: var(--card); border-radius: var(--radius);
  padding: 18px 70px 18px 20px; margin-bottom: 12px;
}
ol.steps li::before {
  content: counter(s); position: absolute; right: 18px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
ol.steps strong { display: block; }
ol.steps span { color: var(--muted); }
.note { background: var(--card-2); border-right: 4px solid var(--red); border-radius: 0; padding: 14px 18px; margin: 16px 0; }

/* Expandable illustrated guide (e.g. Play Protect) */
details.guide { background: var(--card); border: 1px solid var(--red); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
details.guide summary { cursor: pointer; font-weight: 700; }
details.guide .guide-body { margin-top: 12px; }
details.guide .guide-body p { color: var(--muted); }
details.guide ol.steps li { background: var(--card-2); }
details.guide figure { margin: 16px auto; text-align: center; }
details.guide figure img { max-width: 280px; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
details.guide figcaption { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* FAQ */
details { background: var(--card); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Article (guides) */
article { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
article h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.3; }
article p, article li { color: #d8d8de; }
article .cta { text-align: center; margin: 32px 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  header.site nav { display: none; }
  .hero { padding-top: 40px; }
}

/* Shared isrApp layout */
:root {
  --bg: #0b0b0e;
  --card: #151518;
  --line: #34343c;
  --red: #bc2228;
  --muted: #bcbcc5;
}
body { font-size: 1.0625rem; padding-bottom: 4.5rem; }
header.site { background: #101013; padding: 10px 0; }
header.site .wrap { flex-wrap: wrap; }
header.site img { height: 40px; display: block; border-radius: 8px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
header.site nav a { font-size: .9375rem; margin: 0; padding: 6px 0; }
.hero { padding: 34px 20px 16px; text-align: start; }
.hero-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(16px, 5vw, 54px);
  padding: clamp(20px, 5vw, 48px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.hero .icon { width: 100%; height: auto; max-width: 220px; justify-self: center; }
.hero h1 { margin-top: 0; font-size: clamp(1.85rem, 5vw, 3rem); }
.hero p.sub, .btn { font-size: 1.125rem; }
.hero-help { display: inline-block; margin: 10px 12px 0; }
.btn { border-radius: 12px; padding: 12px 20px; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card, details, ol.steps li { border: 1px solid var(--line); }
h2 { font-size: 1.65rem; }
.card h3 { font-size: 1.2rem; }
.small, footer.site, details.guide figcaption { font-size: .9375rem; }
article h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
a { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 5; background: var(--card); padding: 10px 16px; }
.skip-link:not(:focus) { clip-path: inset(50%); }
.a11y-launcher {
  position: fixed;
  z-index: 4;
  inset-inline-end: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ff777c;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 48px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.a11y-panel {
  width: min(25rem, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: var(--card);
  color: var(--text);
}
.a11y-panel::backdrop { background: #000b; }
.a11y-heading, .a11y-panel label { display: flex; align-items: center; gap: .5rem; }
.a11y-heading { justify-content: space-between; }
.a11y-heading h2 { margin: 0; }
.a11y-panel label { flex-wrap: wrap; min-height: 44px; margin-block: .4rem; }
.a11y-panel :is(button, select) {
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-2);
  color: var(--text);
  padding-inline: .55rem;
}
.a11y-panel input { accent-color: var(--red); width: 1.1em; height: 1.1em; }
:root[data-text-size="125"] { font-size: 125%; }
:root[data-text-size="150"] { font-size: 150%; }
:root[data-text-size="200"] { font-size: 200%; }
:root[data-a11y-contrast] {
  --bg: #000;
  --card: #000;
  --card-2: #151515;
  --line: #fff;
  --text: #fff;
  --muted: #fff;
}
[data-a11y-links] a { text-decoration: underline !important; text-decoration-thickness: .13em !important; }
html[data-a11y-motion] { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 560px) {
  .hero-frame { grid-template-columns: 1fr; text-align: center; }
  .hero .icon { max-width: 136px; }
}
/* Home: a recording-focused composition, scoped away from guides. */
.home { --bg: #09090b; }
.home .wrap { max-width: 1120px; }
.home header.site { background: var(--bg); padding-block: 18px; }
.home .hero { padding: 76px 0 64px; }
.home .hero-frame { background: none; border: 0; border-radius: 0; padding: 0 24px; grid-template-columns: 1.15fr 1fr; gap: 64px; }
.home .hero-intro { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--muted); margin: 0 0 24px; }
.record-dot { width: 10px; height: 10px; background: #ff4048; border-radius: 50%; box-shadow: 0 0 0 5px #ff404815; }
.home .hero h1 { font-size: clamp(2.6rem, 5.1vw, 4.3rem); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 28px; }
.home .hero p.sub { font-size: 1.2rem; line-height: 1.85; max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.home .btn { background: #c82732; padding: 16px 26px; gap: 28px; border-radius: 14px; box-shadow: 0 8px 32px #bc222822; }
.home .btn:hover { background: #a91e29; }
.home .hero-help { margin: 0; text-underline-offset: 6px; }
.compatibility { color: var(--muted); font-size: .85rem; max-width: 30rem; margin-top: 22px; }
.recording-preview { min-width: 0; background: var(--card); border: 1px solid #484047; border-radius: 30px; padding: 28px; box-shadow: -18px 22px 0 -8px #09090b, -18px 22px 0 -7px #60232a; }
.preview-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .75rem; }
.preview-top img { width: 100px; border-radius: 8px; }
.recording-preview h2 { font-size: 1.8rem; line-height: 1.3; margin: 28px 0; }
.preview-row { display: flex; gap: 12px; align-items: center; padding-block: 18px; }
.preview-row strong { display: block; font-size: .95rem; }
.preview-row small { display: block; color: var(--muted); font-size: .75rem; }
.call-direction { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; font-size: 1.3rem; }
.incoming { background: #3a171d; color: #ff8287; }
.outgoing { background: #12352b; color: #78dbb4; }
.saved-star { color: #f2c976; margin-inline-start: auto; }
.duration { color: var(--muted); font-size: .8rem; margin-inline-start: auto; }
.wave-player { background: #27171d; border-radius: 14px; padding: 18px 12px; display: flex; gap: 12px; align-items: center; direction: ltr; font-size: .75rem; }
.play-symbol { color: #ff747b; }
.wave { display: flex; height: 40px; flex: 1; gap: 3px; align-items: center; }
.wave i { flex: 1; height: var(--h); border-radius: 2px; background: #ef5862; }
.preview-bottom { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; }
.preview-bottom span { color: #ff747b; margin-inline-end: 5px; }
.home .features { padding-block: 50px 70px; border-block: 1px solid var(--line); }
.home .features h2 { margin-bottom: 34px; }
.home .features .grid { gap: 36px; }
.home .features .card { background: none; border: 0; padding: 0; }
.home .features .emoji { color: #ff747b; font-size: 2rem; }
.home .features .card p { font-size: 1rem; }
.home #install, .home #faq { padding-block: 72px; }
.home ol.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home ol.steps li { margin: 0; background: transparent; }
.home #faq { border-top: 1px solid var(--line); }
.home #faq details { background: transparent; border-width: 0 0 1px; border-radius: 0; padding-block: 22px; }
[data-a11y-contrast] .recording-preview, [data-a11y-contrast] .wave-player { background: #000; border: 1px solid #fff; }
@media (max-width: 800px) {
 .home .hero { padding-block: 42px; }
 .home .hero-frame { grid-template-columns: 1fr; gap: 40px; text-align: start; }
 .recording-preview { width: 100%; max-width: 440px; justify-self: center; }
 .home .hero h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
 .home .hero-copy { max-width: 560px; }
 .home ol.steps { grid-template-columns: 1fr; }
 .home #install, .home #faq { padding-block: 44px; }
}
@media (max-width: 380px) { .recording-preview { padding: 18px; } .preview-row { gap: 8px; } }
/* Shared controls use physical left positioning in both RTL and LTR. */
:root { --floating-bottom: max(16px, env(safe-area-inset-bottom)); }
.a11y-launcher, .install-launcher { position: fixed; z-index: 4; inset-inline-end: auto; right: auto; left: max(16px, env(safe-area-inset-left)); width: 54px; height: 54px; min-height: 54px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: #bc2228; color: #fff; border: 1px solid #ff8a90; box-shadow: 0 4px 18px #0005; text-decoration: none; cursor: pointer; }
.a11y-launcher { bottom: var(--floating-bottom); }
.install-launcher { bottom: calc(var(--floating-bottom) + 66px); }
header.site .wrap { display: grid; grid-template-columns: auto 1fr auto; direction: ltr; }
header.site .wrap > a:first-child { grid-column: 3; grid-row: 1; }
header.site nav { grid-column: 2; grid-row: 1; justify-content: center; direction: rtl; }
header.site .tools-link { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-size: .8rem; }
header.site .tools-link img { height: 66px; width: 66px; object-fit: contain; border-radius: 0; }
footer.site { padding-bottom: 150px; }
:root[data-theme="light"] { color-scheme: light; --bg: #faf8f8; --card: #fff; --card-2: #eee8e9; --text: #20191b; --muted: #5c5055; --line: #cfc3c7; }
[data-theme="light"] .home, [data-theme="light"] header.site { --bg: #faf8f8; background: var(--bg); }
[data-theme="light"] article :is(p,li) { color: var(--text); }
[data-theme="light"] .recording-preview { box-shadow: -18px 22px 0 -8px #faf8f8, -18px 22px 0 -7px #d3aeb4; }
[data-theme="light"] .wave-player { background: #f7e6e9; }
[data-theme="light"] .saved-star { color: #8a5900; }
[data-theme="light"] :focus-visible { outline-color: #7b1221; }
:root[data-a11y-contrast], :root[data-theme="light"][data-a11y-contrast] { --bg:#000; --card:#000; --card-2:#151515; --line:#fff; --text:#fff; --muted:#fff; color-scheme: dark; }
[data-a11y-contrast] .home, [data-a11y-contrast] header.site { --bg:#000; background:#000; }
[data-a11y-motion] *, [data-a11y-motion] *::before, [data-a11y-motion] *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }
@media (max-width:560px) { header.site .wrap { grid-template-columns: 1fr 1fr; } header.site .wrap > a:first-child { grid-column:2; justify-self:end; } header.site .tools-link { grid-column:1; justify-self:start; } header.site .tools-link span { max-width: 5em; line-height:1.3; } header.site .tools-link img { width:50px; height:50px; } header.site nav { grid-column:1 / -1; grid-row:2; } }
[data-a11y-contrast] .wave-player { background:#000; color:#fff; border:1px solid #fff; }
[data-a11y-contrast] :focus-visible { outline-color:#fff; }
/* Bright, readable navigation and a red glass tools button. */
header.site nav a, header.site .tools-link {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}
header.site nav { gap: 8px 24px; }
header.site nav a { padding-block: 10px; }
header.site nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 7px; }
header.site .tools-link {
  padding: 8px 16px;
  border: 1px solid rgba(255, 91, 105, .6);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(159, 30, 44, .52), rgba(68, 13, 22, .68));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 200, 205, .14), 0 5px 24px rgba(218, 34, 55, .16);
}
header.site .tools-link:hover {
  border-color: #ff8290;
  background: linear-gradient(135deg, rgba(185, 36, 53, .65), rgba(91, 17, 29, .8));
}
[data-theme="light"] header.site { background: #171014; }
[data-theme="light"] header.site :focus-visible { outline-color: #fff; }
[data-a11y-contrast] header.site .tools-link { background:#000; border-color:#fff; box-shadow:none; backdrop-filter:none; }
@media (max-width:560px) {
  header.site .tools-link { padding: 7px 10px; gap: 8px; border-radius: 14px; }
  header.site .tools-link span { max-width: 5em; }
  header.site nav { gap: 6px 20px; }
}
