/* Prompt Mint — shared styles. No frameworks, no JS dependency. */

:root {
  --bg: #121110;
  --bg-2: #1a1815;
  --panel: #1f1c19;
  --line: #2e2a25;
  --ink: #f0eee6;
  --muted: #a39e90;
  --accent: #d97757;
  --accent-2: #e8a87c;
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: "SF Arabic", -apple-system, "Geeza Pro", Tahoma, sans-serif; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18,17,16,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav.main { margin-inline-start: auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--muted); font-size: 15px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.lang {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: 14px; color: var(--muted);
}
.lang:hover { color: var(--ink); border-color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */

.hero { padding: 76px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 20% 55%;
  background: radial-gradient(closest-side, rgba(217,119,87,.30), transparent);
  filter: blur(70px); pointer-events: none;
}
.hero h1 {
  position: relative;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.1; letter-spacing: -.02em; font-weight: 800;
  margin-bottom: 16px;
}
.hero p.lede {
  position: relative;
  color: var(--muted); font-size: clamp(17px, 2.2vw, 21px);
  max-width: 640px; margin: 0 auto 28px;
}
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 650; font-size: 16px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); text-decoration: none; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- devices ---------- */

.devices {
  display: grid; gap: 30px; align-items: end; justify-items: center;
  grid-template-columns: 1fr; margin: 52px 0 10px;
}
.devices img {
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.55));
  width: auto; max-width: 100%;
}
/* phone/tablet are capped by height so they sit side by side sensibly */
.devices img:not(.mac) { max-height: 380px; }
.devices .mac { max-height: 300px; }

@media (min-width: 720px) {
  .devices { grid-template-columns: auto auto; justify-content: center; }
  .devices img:not(.mac) { max-height: 440px; }
  .devices .mac { grid-column: 1 / -1; max-height: 340px; margin-top: 6px; }
}

/* ---------- sections ---------- */

section { padding: 56px 0; }
h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.01em; margin-bottom: 14px; font-weight: 750; }
h3 { font-size: 20px; margin: 26px 0 8px; font-weight: 680; }
p { margin-bottom: 14px; color: #ddd8cc; }
.muted { color: var(--muted); }

.grid {
  display: grid; gap: 16px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-top: 0; font-size: 18px; }
.card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }

.stat { font-size: 30px; font-weight: 800; color: var(--accent); display: block; }

/* ---------- prose (legal + blog) ---------- */

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 38px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 22px; color: #ddd8cc; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; }
.prose th { background: var(--bg-2); }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- blog ---------- */

.posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; display: block; color: inherit;
}
.post-card:hover { border-color: var(--accent); text-decoration: none; }
.post-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.post-card p { font-size: 15px; color: var(--muted); margin: 0; }
.tag { font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

article.post h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.15; margin-bottom: 10px; letter-spacing: -.02em; }
article.post .meta { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
article.post p { font-size: 17px; }

/* ---------- footer ---------- */

footer.site { border-top: 1px solid var(--line); padding: 34px 0 46px; margin-top: 40px; }
footer.site .cols { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); font-size: 15px; }
footer.site a:hover { color: var(--ink); }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .fine { color: #6f6a60; font-size: 13px; margin-top: 18px; }

/* ---------- a11y ---------- */

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
