/* ============================================================
   PoftAI — site static. Stil comun pentru toate paginile.
   Estetică: flat alb, albastru (#2563EB) doar ca accent mic.
   Premium prin tipografie, ritm, bento, micro-interacțiuni —
   NU prin gradient sau suprafețe colorate.
   Tokens din pofti-ai/src/theme/colors.ts
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #71717a;
  --subtle: #a1a1aa;
  --surface: #f4f4f5;
  --surface-2: #fafafa;
  --border: #e4e4e7;
  --border-subtle: #f1f1f3;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-ring: rgba(37, 99, 235, 0.35);
  --success: #16a34a;

  --macro-protein: #ec4899;
  --macro-carbs: #f59e0b;
  --macro-fat: #a855f7;

  --maxw: 1120px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 3px 10px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 6px 16px rgba(10, 10, 10, 0.06), 0 18px 40px rgba(10, 10, 10, 0.07);
  --shadow-lg: 0 30px 70px rgba(10, 10, 10, 0.12);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --ink: #fafafa;
    --muted: #a1a1aa;
    --subtle: #71717a;
    --surface: #161618;
    --surface-2: #131315;
    --border: #27272a;
    --border-subtle: #1f1f23;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --accent-ring: rgba(59, 130, 246, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 800;
}
p {
  margin: 0;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.accent {
  color: var(--accent);
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}
.js .reveal-group.is-visible > *:nth-child(2) {
  transition-delay: 0.07s;
}
.js .reveal-group.is-visible > *:nth-child(3) {
  transition-delay: 0.14s;
}
.js .reveal-group.is-visible > *:nth-child(4) {
  transition-delay: 0.21s;
}
.js .reveal-group.is-visible > *:nth-child(5) {
  transition-delay: 0.28s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.06s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--subtle);
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* App Store badge (placeholder până e live) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
a.store-badge:hover {
  border-color: var(--subtle);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  text-decoration: none;
}
.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.store-badge .sb-small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.1;
}
.store-badge .sb-big {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

/* ---------- Logo / brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow svg {
  width: 15px;
  height: 15px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: -0.04em;
}
.hero .lead {
  margin-top: 22px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.55;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 18%, transparent);
}

/* hero visual + floating cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: clamp(258px, 78%, 330px);
  filter: drop-shadow(var(--shadow-lg));
  position: relative;
  z-index: 1;
}
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
.float-card .fc-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}
.float-card .fc-ico svg {
  width: 17px;
  height: 17px;
}
.float-card .fc-title {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.float-card .fc-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.fc-top {
  top: 8%;
  left: -6%;
}
.fc-bottom {
  bottom: 12%;
  right: -8%;
}
@media (prefers-reduced-motion: no-preference) {
  .float-card {
    animation: floaty 6s var(--ease) infinite;
  }
  .fc-bottom {
    animation-delay: -3s;
  }
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-note {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 8px;
  }
}
@media (max-width: 560px) {
  .fc-top {
    left: 0;
  }
  .fc-bottom {
    right: 0;
  }
}
@media (max-width: 420px) {
  .float-card {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 8vw, 100px) 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Bento (funcții) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(168px, auto);
  gap: 16px;
}
.bento-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.bento-cell:hover {
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.bento-lg {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
}
.bento-wide {
  grid-column: span 2;
}
.cell-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.cell-ico svg {
  width: 22px;
  height: 22px;
}
.bento-cell h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bento-cell p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
}
.bento-lg h3 {
  font-size: 22px;
}
.bento-lg p {
  font-size: 16px;
  max-width: 34ch;
}
/* mini visual in the large bento cell */
.bento-visual {
  margin-top: auto;
  padding-top: 22px;
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(150px, auto);
  }
  .bento-lg {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-wide {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-lg,
  .bento-wide {
    grid-column: span 1;
  }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.step:hover {
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.step .num {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
}
.step p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- FAQ (zero-JS via <details>) ---------- */
.faq {
  max-width: 780px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 22px;
  margin-bottom: 12px;
  background: var(--bg);
  transition: border-color 0.2s var(--ease);
}
.faq details[open] {
  border-color: var(--accent-ring);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 19px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.25s var(--ease);
  color: var(--muted);
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq summary .plus::before {
  top: 9px;
  left: 2px;
  right: 2px;
  height: 2px;
}
.faq summary .plus::after {
  left: 9px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary .plus::after {
  transform: scaleY(0);
}
.faq details[open] summary .plus {
  color: var(--accent);
}
.faq .answer {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: clamp(44px, 7vw, 76px) 24px;
}
.cta h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  max-width: 18ch;
  margin-inline: auto;
}
.cta p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.cta .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 52px 0 60px;
  margin-top: 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.footer-meta {
  margin-top: 30px;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- Legal / text pages ---------- */
.legal {
  padding: clamp(40px, 6vw, 76px) 0 68px;
}
.legal-wrap {
  max-width: 760px;
  margin-inline: auto;
}
.legal h1 {
  font-size: clamp(30px, 4.5vw, 46px);
}
.legal .updated {
  margin-top: 12px;
  color: var(--subtle);
  font-size: 14px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 44px;
  letter-spacing: -0.02em;
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 28px;
}
.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
  margin-top: 12px;
  line-height: 1.7;
}
.legal ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.legal li {
  margin-top: 8px;
}
.legal a {
  font-weight: 600;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 30px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
