/* Shared look for the Kept web pages (home, get, guides). Same palette as support.html and the app. */
:root {
  --ground: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #1B1B1E;
  --ink-soft: #46464C;
  --muted: #74747B;
  --accent: #A96F12;
  --accent-fill: #EFAC2C;
  --on-accent: #1A1408;
  --accent-wash: #F3E7D0;
  --hair: #E1E1E4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B0B0C;
    --surface: #1C1C1E;
    --ink: #F5F6F7;
    --ink-soft: #C3C3C8;
    --muted: #8C8C93;
    --accent: #F6B945;
    --accent-fill: #F6B945;
    --on-accent: #1A1408;
    --accent-wash: #2A2213;
    --hair: #2C2C30;
  }
}
:root[data-theme="dark"] {
  --ground: #0B0B0C;
  --surface: #1C1C1E;
  --ink: #F5F6F7;
  --ink-soft: #C3C3C8;
  --muted: #8C8C93;
  --accent: #F6B945;
  --accent-fill: #F6B945;
  --on-accent: #1A1408;
  --accent-wash: #2A2213;
  --hair: #2C2C30;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
:lang(ar), [dir="rtl"] { font-family: "IBM Plex Sans Arabic", "Inter", sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }

header.mast { display: flex; align-items: center; gap: 12px; padding: 28px 0 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.mast nav { margin-inline-start: auto; display: flex; gap: 16px; font-size: 14px; }
.mast nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.mast nav a:hover { color: var(--accent); }

h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 40px 0 12px; }
.lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 26px; max-width: 34em; text-wrap: pretty; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; margin: 44px 0 10px; text-wrap: balance; }
h3 { font-size: 17px; margin: 26px 0 6px; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
strong { font-weight: 600; color: var(--ink); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 26px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--accent-fill); color: var(--on-accent);
}
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--hair); }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0 0; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.guide-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.guide-list a { display: block; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); text-decoration: none; color: var(--ink); font-weight: 600; }
.guide-list a span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }

article p, article li { font-size: 17px; color: var(--ink-soft); }
article ol, article ul { padding-inline-start: 22px; }
article li { margin: 0 0 8px; }
.callout { background: var(--accent-wash); border-radius: 18px; padding: 20px 22px; margin: 34px 0 0; }
.callout p { margin: 0 0 12px; color: var(--ink); }

footer.foot {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  font-size: 13px; color: var(--muted);
}
footer.foot a { font-weight: 500; }
