/* Plenara site styles — no build step, no dependencies beyond the Inter webfont. */

:root {
  --bg: #faf9f6;
  --bg-translucent: rgba(250, 249, 246, 0.86);
  --bg-alt: #f1efe9;
  --card: #ffffff;
  --fg: #17151d;
  --muted: #625d70;
  --border: #e6e2ec;
  --accent: #5a4bd6;
  --accent-2: #9b6dff;
  --ring: rgba(90, 75, 214, 0.22);
  --shadow: 0 6px 20px rgba(23, 21, 29, 0.08);
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e14;
    --bg-translucent: rgba(15, 14, 20, 0.82);
    --bg-alt: #15131c;
    --card: #1a1823;
    --fg: #f2f0f7;
    --muted: #a8a3b8;
    --border: #2a2735;
    --accent: #9d8cff;
    --accent-2: #c7adff;
    --ring: rgba(157, 140, 255, 0.28);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 32px; } }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-translucent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.nav nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.nav nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav nav a:hover { color: var(--fg); background: var(--bg-alt); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 120%;
  background: radial-gradient(55% 55% at 75% 35%, var(--ring), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; max-width: 860px; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 32px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}
@media (prefers-color-scheme: dark) { .btn.primary { color: #0f0e14; } }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.sub { margin: 0 0 32px; max-width: 660px; color: var(--muted); font-size: 1.05rem; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 3fr 2fr; align-items: start; } }
.two-col p { margin: 0 0 16px; color: var(--muted); }
.two-col p:last-child { margin-bottom: 0; }

.facts {
  list-style: none;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.facts li { display: grid; gap: 2px; }
.facts strong {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts span { font-weight: 500; overflow-wrap: anywhere; }

.grid3 { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 { margin: 16px 0 8px; font-size: 1.15rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
@media (prefers-color-scheme: dark) { .icon { color: #0f0e14; } }
.icon svg { width: 22px; height: 22px; }

/* Footer */
.site-footer {
  padding: 52px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.92rem;
}
.foot-grid { display: grid; gap: 32px 24px; }
@media (min-width: 540px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand, .foot-col:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.5fr 0.8fr 0.8fr 1.7fr; }
  .foot-brand, .foot-col:last-child { grid-column: auto; }
}
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { margin: 0; max-width: 300px; }
.foot-col h4 {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}
.foot-col a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--fg); text-decoration: underline; }
.foot-col address { margin: 0 0 10px; font-style: normal; line-height: 1.55; }
.foot-col address strong { color: var(--fg); font-weight: 600; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.foot-bottom p { margin: 0; }

/* Inner pages (privacy, terms, support) */
.page { padding: 56px 0 80px; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page .meta { margin: 0 0 32px; color: var(--muted); }
.page h2 { margin: 40px 0 10px; font-size: 1.35rem; }
.page h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.page p, .page li { color: var(--fg); }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.notice {
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.notice p { margin: 0; }
.faq details {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.contact-box {
  display: grid;
  gap: 6px;
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-box strong { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

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

/* Narrow phones: keep the nav on one line */
@media (max-width: 480px) {
  .nav nav { gap: 0; }
  .nav nav a { padding: 6px 7px; font-size: 0.88rem; }
  .nav nav a[href$="#apps"] { display: none; }
}
