/* Flexpatch site: one stylesheet, no external fonts or scripts. */

:root {
  --teal: #0F3D3A;
  --teal-2: #155550;
  --amber: #FFB547;
  --bg: #F6F8F7;
  --surface: #FFFFFF;
  --text: #13221F;
  --muted: #4B5D5A;
  --border: #D5E0DE;
  --link: #0E5C55;
  --note-bg: #FFF4DF;
  --note-border: #E8B04A;
  --code-bg: #EAF0EF;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #091A19;
    --surface: #0F2826;
    --text: #E6F0EE;
    --muted: #A7BBB8;
    --border: #23443F;
    --link: #FFC56E;
    --note-bg: #2A2414;
    --note-border: #8A6A28;
    --code-bg: #16332F;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 46rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--teal); padding: 8px 12px; font-weight: 700; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { background: var(--teal); color: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; margin-right: auto;
}
.brand svg { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.site-nav a { color: #fff; text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

.lang { display: inline-flex; border: 1px solid rgba(255,255,255,0.45); border-radius: 999px; overflow: hidden; font-size: 0.85rem; font-weight: 600; }
.lang a, .lang span { padding: 3px 10px; color: #fff; text-decoration: none; }
.lang [aria-current="true"] { background: var(--amber); color: var(--teal); }

/* Hero */
.hero { background: var(--teal); color: #fff; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p.lead { font-size: 1.15rem; max-width: 40rem; color: #DCEBE8; margin: 0 0 24px; }
.hero .small { color: #BFD6D2; font-size: 0.9rem; margin-top: 16px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-art { justify-self: center; width: min(220px, 60vw); }
@media (min-width: 760px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
}

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.3;
}
.btn-primary { background: var(--amber); color: var(--teal); }
.btn-primary:hover { background: #FFC56E; }
.btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
main { display: block; }
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--border); }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.section-intro { color: var(--muted); max-width: 42rem; margin-top: 0; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; counter-increment: step;
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--amber); color: var(--teal); font-weight: 800; margin-bottom: 8px;
}
.steps h3 { margin-top: 4px; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Feature table */
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 0.97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--teal); color: #fff; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.c, th.c { text-align: center; width: 5.5rem; }
.yes { color: #1A7A4C; font-weight: 800; }
.no { color: var(--muted); }
@media (prefers-color-scheme: dark) { .yes { color: #6FD39E; } }
td small, th small { display: block; color: var(--muted); font-weight: 400; font-size: 0.88rem; }
tbody th { font-weight: 600; }
h1, h2, h3, p, li, summary, td, th { overflow-wrap: break-word; }
@media (max-width: 420px) {
  th, td { padding: 8px; }
  td.c, th.c { width: 4rem; }
}

/* Pricing */
.plans { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.plan.featured { border: 2px solid var(--amber); }
.plan h3 { margin-top: 0; }
.price { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { padding-left: 1.2rem; margin: 12px 0 0; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
details p { margin: 8px 0 14px; }

/* Legal pages */
.legal { padding: 32px 0 48px; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin: 0 0 4px; }
.legal h2 { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 1.4rem; }
.legal h3 { font-size: 1.1rem; }
.legal li { margin: 4px 0; }
.meta { color: var(--muted); margin-top: 0; }
.note { background: var(--note-bg); border-left: 4px solid var(--note-border); padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.note p:first-child { margin-top: 0; } .note p:last-child { margin-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px 12px 36px; }
.toc li { margin: 2px 0; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; overflow-wrap: anywhere; }
.data-table td:first-child, .data-table th:first-child { width: 30%; }
@media (max-width: 560px) {
  .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table th { display: block; width: 100% !important; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { border-bottom: 1px solid var(--border); padding: 6px 0; }
  .data-table td, .data-table th { border: 0; padding: 4px 12px; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; color: var(--muted); font-size: 0.85rem; }
}

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound svg { width: 96px; height: 96px; }

/* Footer */
.site-footer { background: var(--teal); color: #CFE2DF; padding: 32px 0; font-size: 0.92rem; margin-top: 24px; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.site-footer p { margin: 6px 0; }
.disclaimer { color: #fff; font-weight: 600; }
