/* myflarely.com. Colors are the app's tokens (docs/Flarely-Design-Handoff.md), light and dark. */

:root {
  --bg: #FBFAF7;
  --surface: #F3EFE9;
  --raised: #EAE5DD;
  --hairline: #E3DDD3;
  --text: #1C1A17;
  --text2: #5A544C;
  --text3: #645D54;
  --primary: #D63A5A;
  --on-primary: #FFFFFF;
  --accent-text: #C8304F;
  --selected: #FDD5DC;
  --coral: #F25571;
  --radius: 18px;
  --gutter: 20px;
  --measure: 680px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --surface: #211E1B;
    --raised: #2A2622;
    --hairline: #332E28;
    --text: #F3EFE9;
    --text2: #B9B1A6;
    --text3: #9A9286;
    --primary: #F25571;
    --on-primary: #1C1A17;
    --accent-text: #FF8FA3;
    --selected: #A3243F;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 10px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: 1040px; }

/* Header and footer */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--text2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-footer { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--hairline); color: var(--text3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--text2); }

/* Type */

h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; margin: 44px 0 10px; }
h3 { font-size: 18px; line-height: 1.3; margin: 26px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--text3); }
.lede { font-size: 19px; color: var(--text2); }
.meta { color: var(--text3); font-size: 15px; }
strong { font-weight: 650; }

/* Home */

.hero { padding: 40px 0 24px; display: grid; gap: 36px; align-items: center; }
.hero-icon { width: 112px; height: 112px; border-radius: 26px; }
.hero h1 { font-size: clamp(36px, 7vw, 56px); }
.badge { display: inline-block; margin-top: 8px; padding: 10px 18px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 15px; text-decoration: none; }
.badge.quiet { background: var(--raised); color: var(--text); }

.features { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 22px; margin: 0; }
.feature h2 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--text2); font-size: 16px; }

.promise { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--selected); color: var(--text); }
.promise h2 { margin-top: 0; font-size: 20px; }
.promise p:last-child { margin-bottom: 0; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr auto; padding-top: 64px; }
  .hero-icon { width: 168px; height: 168px; border-radius: 38px; order: 2; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

/* Policy and support pages */

.page { padding-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.card > :last-child { margin-bottom: 0; }
.toc { font-size: 15px; }
.toc ol { margin: 6px 0 0; columns: 2 220px; column-gap: 28px; }
.toc li { break-inside: avoid; }

.table-scroll { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
th { color: var(--text3); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

details { border-bottom: 1px solid var(--hairline); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text3); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > :not(summary) { margin-top: 10px; color: var(--text2); }

.help { background: var(--selected); border-color: transparent; }
