/* FoeAmp website - one shared style for every page. Light and dark follow the phone / computer setting. */
:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1e2430; --sub: #5d6470; --line: #e2e0da;
  --brand: #e8700a; --brand-ink: #9a4a00; --brand-soft: #ffe7cc; --head: #15171c; --head-ink: #f2f2f0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121317; --card: #1c1e24; --ink: #ecedf0; --sub: #a3a8b2; --line: #2c2f37;
          --brand: #f08a2c; --brand-ink: #ffb066; --brand-soft: #3a2614; --head: #0b0c0f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
a { color: var(--brand-ink); }
img { max-width: 100%; height: auto; display: block; }

/* header + nav */
.top { background: var(--head); color: var(--head-ink); }
.top .in { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--head-ink); text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 9px; }
/* the FoeAmp wordmark, as in the app (Wordmark.kt): a bold curly italic "forte" f, 1.27x the size, leaning over
   "oeAmp" by 0.06 em, which is upright bold sans */
@font-face { font-family: "Forte F"; src: url("fonts/PlayfairDisplay-Italic.ttf") format("truetype");
             font-style: italic; font-weight: 400 900; font-display: block; }
.wm { font-size: 24px; font-weight: 700; font-style: normal; letter-spacing: 0; white-space: nowrap; }
.wm .f { font-family: "Forte F", serif; font-style: italic; font-weight: 700; font-size: 1.27em; line-height: 0;
         margin-right: -.06em; }
nav { display: flex; gap: 4px 16px; flex-wrap: wrap; margin-left: auto; }
nav a { color: #c9ccd2; text-decoration: none; font-size: 15px; padding: 4px 0; }
nav a:hover, nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px var(--brand); }

/* layout */
main { max-width: 1040px; margin: 0 auto; padding: 28px 16px 40px; }
.narrow { max-width: 760px; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.5px; }
h2 { font-size: 22px; margin: 34px 0 10px; }
h3 { font-size: 17px; margin: 18px 0 4px; }
.card > h3:first-child { margin-top: 0; }
.card > p:last-child { margin-bottom: 0; }
p.lead { font-size: 18px; color: var(--sub); margin: 0 0 20px; max-width: 680px; }
.sub { color: var(--sub); }
.small { font-size: 14px; }
.card { background: var(--card); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 700;
         padding: 1px 8px; border-radius: 9px; vertical-align: 2px; margin-left: 4px; }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700;
       padding: 10px 18px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--brand); }
.btn[aria-disabled] { opacity: .55; pointer-events: none; }

/* home hero */
.hero { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.phones { display: flex; gap: 12px; justify-content: center; align-items: flex-end; }
.phone { background: #0b0c0f; border-radius: 22px; padding: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.3); width: 38%; }
.phone img { border-radius: 17px; }
.phone.big { width: 46%; }
.wide img { border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
figcaption { font-size: 13px; color: var(--sub); text-align: center; margin-top: 6px; }
figure { margin: 0; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }

/* legal pages */
.legal h2 { font-size: 19px; margin-top: 28px; }
.legal li { margin-bottom: 6px; }
.note { border-left: 4px solid var(--brand); background: var(--card); padding: 10px 14px; border-radius: 6px; margin: 16px 0; }
.todo { background: #fff2a8; color: #5a4a00; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* skins page */
.grid.two { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.skin img { border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; background: var(--line); }
.skin h3 { margin-top: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
                    background: var(--brand); color: #fff; font-weight: 700; text-align: center; line-height: 28px; }

/* FAQ */
details { background: var(--card); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; }

footer { border-top: 1px solid var(--line); }
footer .in { max-width: 1040px; margin: 0 auto; padding: 18px 16px 28px; font-size: 14px; color: var(--sub);
             display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer a { color: var(--sub); }
