/* VeyaMe website styles. Plain CSS, no build step. Palette is a proposed web palette, tuned by eye to the Sage visual. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}

:root {
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-warm: #F2EFE7;
  --sage-soft: #E7EDE2;
  --sage: #4F6B5B;
  --sage-hover: #3E5648;
  --ink: #252C26;
  --muted: #626A61;
  --border: #D8DED3;
  --butter: #F3DC83;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: 32px;
  --section: 88px;
  --radius-card: 24px;
  --radius-hero: 32px;
  --shadow: 0 12px 32px rgba(37, 44, 38, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.08; font-weight: 680; letter-spacing: -.02em; }
h2 { font-size: clamp(36px, 3.1vw, 44px); line-height: 1.15; font-weight: 660; letter-spacing: -.015em; }
h3 { font-size: 24px; line-height: 1.25; font-weight: 640; letter-spacing: -.01em; }
p { margin: 0; }

a { color: var(--sage-hover); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sage-hover);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(1000px + 2 * var(--gutter)); }
.container-delete { max-width: calc(800px + 2 * var(--gutter)); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 20;
  padding: 12px 20px;
  background: var(--sage-hover);
  color: #fff;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; color: #fff; }

.section { padding-block: var(--section) 0; }
.section-title { margin-bottom: 40px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Buttons and status ─────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 180ms ease;
}
.btn:hover, .btn:active { background: var(--sage-hover); color: #fff; }

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
a.status-pill { min-height: 44px; }
a.status-pill:hover { background: var(--sage-hover); color: #fff; }

.play-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ── Header ─────────────────────────────────────── */

.site-header { background: var(--bg); position: relative; z-index: 10; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  min-height: 80px;
  padding-block: 8px;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  padding-block: 8px;
}
.wordmark:hover { color: var(--sage-hover); }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: background-color 180ms ease;
}
.site-nav a:hover { background: var(--sage-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 15px; color: var(--muted); }
.lang-switch a, .lang-switch span[aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}
.lang-switch a:hover { background: var(--sage-soft); color: var(--ink); }
.lang-switch [aria-current] { font-weight: 700; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover { background: var(--sage-soft); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ── Hero ───────────────────────────────────────── */

.hero { padding-top: 0; }
.hero-frame {
  position: relative;
  min-height: 620px;
  border-radius: var(--radius-hero);
  background: var(--surface-warm);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 48px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}
.hero-panel {
  position: relative;
  z-index: 1;
  width: 470px;
  max-width: 100%;
  padding: 44px;
  background: var(--bg);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
html[lang="bg"] .hero-panel h1 { font-size: clamp(36px, 3.5vw, 50px); }
.hero-sub { margin-top: 16px; font-size: 21px; line-height: 1.4; color: var(--muted); max-width: 22em; }
.hero-cta { margin-top: 28px; }
.sunburst { position: absolute; top: 20px; right: 28px; width: 38px; height: 38px; color: #D9B93F; }

.hero-device {
  position: absolute;
  right: clamp(32px, 7vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 262px;
}
.phone {
  padding: 8px;
  background: #2A302B;
  border-radius: 42px;
  box-shadow: 0 16px 40px rgba(37, 44, 38, .22);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 800;
  object-fit: contain;
  border-radius: 34px;
  background: #FDFEFB;
}
.device-caption {
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
}

/* ── Feature cards ──────────────────────────────── */

.underlined {
  display: inline-block;
  padding-bottom: .12em;
  background: url("../images/underline.svg") no-repeat left bottom / 100% .22em;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.feature-body { padding: 28px; }
.feature-body .icon { width: 36px; height: 36px; color: var(--sage); margin-bottom: 16px; stroke-width: 1.3; }
.feature-body p { margin-top: 8px; color: var(--muted); }
.feature-card img { width: 100%; height: 210px; object-fit: cover; }
.feature-card .feature-photo-end { margin-top: auto; }

/* ── Insights ───────────────────────────────────── */

.insights {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--sage-soft);
  border-radius: var(--radius-hero);
}
.insights-copy p { margin-top: 16px; max-width: 34em; }
.insights-note { color: var(--muted); font-size: 15px; }
.notice-card { order: -1; background: var(--surface); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); }
.notice-card h3 { font-size: 22px; margin-bottom: 16px; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: flex; gap: 16px; align-items: flex-start; padding-block: 16px; border-top: 1px solid var(--border); }
.notice-list li:first-child { border-top: 0; padding-top: 0; }
.notice-list li:last-child { padding-bottom: 0; }
.notice-list .icon { color: var(--sage); margin-top: 2px; }
.notice-list strong { display: block; font-weight: 620; }
.notice-list span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ── How it works ───────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-hover);
}
.step h3 { font-size: 22px; }
.step p { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.step-arrow { position: absolute; right: -38px; top: 16px; color: var(--muted); }
.steps-note { margin-top: 32px; color: var(--muted); font-size: 15px; max-width: 60ch; }

/* ── FAQ ────────────────────────────────────────── */

.faq { max-width: 860px; border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sage-hover); }
.faq summary .icon { color: var(--muted); transition: transform 180ms ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding-bottom: 20px; color: var(--muted); max-width: 65ch; }
.faq-answer p + p { margin-top: 8px; }
.faq-more { margin-top: 24px; }

/* ── Final CTA ──────────────────────────────────── */

.final-cta {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 56px 32px;
  border-radius: var(--radius-hero);
  background: var(--surface-warm);
  overflow: hidden;
}
.final-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.final-panel {
  position: relative;
  width: 620px;
  max-width: 100%;
  padding: 40px 32px;
  text-align: center;
  background: var(--bg);
  border-radius: 28px;
}
.final-panel h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; font-size: clamp(32px, 3.2vw, 44px); margin-bottom: 24px; }
html[lang="bg"] .final-panel h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 2.8vw, 38px); }

/* ── Footer ─────────────────────────────────────── */

.site-footer { margin-top: var(--section); border-top: 1px solid var(--border); padding-block: 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: start; }
.footer-about p { margin-top: 8px; max-width: 40ch; color: var(--muted); font-size: 15px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 0 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.footer-links a:hover { color: var(--sage-hover); }
.copyright { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

/* ── Inner pages ────────────────────────────────── */

.page-intro { padding-block: 48px 40px; }
.page-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-hover);
  font-size: 14px;
  font-weight: 600;
}
.page-intro h1 { max-width: 16em; }
.page-sub { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: 19px; line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 180ms ease;
}
.chips a:hover { background: var(--sage-soft); color: var(--ink); }

.help-group { padding-top: 48px; scroll-margin-top: 16px; }
.help-group h2 { font-size: clamp(28px, 2.4vw, 34px); margin-bottom: 20px; }

.note-card {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--sage-soft);
}
.note-card h2, .note-card h3 { margin-bottom: 8px; }
.note-card p + p { margin-top: 12px; }
.note-plain { background: var(--surface-warm); font-size: 16px; color: var(--ink); }
.help-group .faq { max-width: none; }
.after-faq { margin-top: 32px; }

mark.confirm {
  background: var(--butter);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: .94em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Legal template */
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 64px; justify-content: space-between; align-items: start; }
.legal-side { position: sticky; top: 24px; font-size: 15px; }
.legal-side h2, .toc-mobile summary { font-size: 15px; font-weight: 620; letter-spacing: 0; }
.legal-side h2 { margin-bottom: 8px; }
.toc-list { margin: 0; padding: 0; list-style: none; }
.toc-list a { display: flex; align-items: center; min-height: 36px; padding-block: 4px; color: var(--muted); line-height: 1.3; text-decoration: none; }
.toc-list a:hover { color: var(--ink); text-decoration: underline; }
.toc-mobile { display: none; margin-bottom: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding-inline: 16px; }
.toc-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile .toc-list { padding-bottom: 12px; }
.toc-mobile .toc-list a { min-height: 44px; }

.legal-text { font-size: 16.5px; line-height: 1.7; }
.legal-text section { padding-block: 32px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.legal-text section:first-of-type { border-top: 0; padding-top: 0; }
.legal-text h2 { font-size: clamp(26px, 2.2vw, 30px); line-height: 1.2; margin-bottom: 12px; }
.legal-text p + p, .legal-text ul + p, .legal-text p + ul { margin-top: 12px; }
.legal-text ul { margin-bottom: 0; padding-left: 22px; }
.legal-text li + li { margin-top: 6px; }

.draft-note {
  margin-bottom: 32px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--sage-soft);
  font-size: 15.5px;
  line-height: 1.55;
}
.draft-note strong { display: block; margin-bottom: 4px; }

/* Delete account */
.delete-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.delete-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.delete-card h2 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
.delete-card ol, .delete-card ul { margin: 12px 0 0; padding-left: 22px; }
.delete-card li + li { margin-top: 6px; }
.delete-card p + p, .delete-card ul + p { margin-top: 12px; }
.delete-action { margin-top: 16px; }
.delete-more { margin-top: 32px; }
.delete-more h2 { font-size: 26px; margin-bottom: 8px; }
.delete-more section + section { margin-top: 32px; }
.delete-more .note-card h2 { font-size: 24px; }
.delete-more p + p { margin-top: 12px; }

/* 404 */
.notfound { padding-block: 72px; }
.notfound-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 32px; }
.notfound-pair h2 { font-size: 28px; margin-bottom: 8px; }
.notfound-pair p { color: var(--muted); }
.notfound-pair .btn { margin-top: 16px; }
.notfound-pair .btn + p { margin-top: 12px; }

/* ── Tablet ─────────────────────────────────────── */

@media (max-width: 1100px) {
  :root { --gutter: 24px; --section: 72px; }
  .hero-frame { padding: 32px; min-height: 560px; }
  .hero-panel { width: 400px; padding: 36px; }
  .hero-device { right: 28px; width: 236px; }
  .insights { padding: 40px; gap: 32px; }
  .steps { gap: 24px 40px; }
  .legal-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:nth-child(3) { grid-column: 1 / -1; }
  .feature-card:nth-child(3) img { height: 260px; }
  .insights { grid-template-columns: minmax(0, 1fr); }
  .notice-card { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-arrow { display: none; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-side { display: none; }
  .toc-mobile { display: block; }

  /* Hero: one column. Text first, then photo with the phone. */
  .hero-frame { display: block; min-height: 0; padding: 0; background: transparent; overflow: visible; border-radius: 0; }
  .hero-panel { width: 100%; padding: 0 0 28px; background: transparent; box-shadow: none; border-radius: 0; }
  .sunburst { display: none; }
  .hero-media {
    position: relative;
    padding: 32px 24px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }
  .hero-device { position: relative; right: auto; top: auto; transform: none; width: min(260px, 70vw); }
}

/* ── Mobile menu (only once JS has enhanced it) ── */

@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }
  .header-inner { min-height: 68px; gap: 4px 8px; }
  .wordmark { font-size: 30px; margin-right: auto; }
  .header-actions { order: 2; margin-left: 0; gap: 8px; }
  .js .menu-toggle { order: 3; }
  .header-actions .status-pill { display: none; }
  .site-nav { order: 4; width: 100%; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 100%;
    width: auto;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: flex; min-height: 48px; }
  .site-header .container { position: relative; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 56px; --radius-card: 20px; --radius-hero: 24px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(36px, 10.4vw, 40px); }
  html[lang="bg"] .hero-panel h1 { font-size: clamp(32px, 9.4vw, 38px); }
  h2 { font-size: clamp(28px, 8vw, 32px); }
  h3 { font-size: 22px; }
  .section-title { margin-bottom: 28px; }
  .hero-sub { font-size: 18px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card:nth-child(3) img { height: 210px; }
  .feature-body { padding: 24px; }
  /* Same reading order on every card: text, then photo. */
  .feature-card .feature-photo-first { order: 2; margin-top: auto; }
  .insights { padding: 24px; gap: 24px; }
  .notice-card { padding: 20px; }
  .final-cta { padding: 28px 16px; }
  .final-panel { padding: 28px 20px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .page-intro { padding-block: 24px 24px; }
  .page-sub { font-size: 17px; }
  .delete-cards { grid-template-columns: minmax(0, 1fr); }
  .delete-card, .note-card { padding: 22px; }
  .notfound-pair { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .btn { width: 100%; }
  .legal-text h2 { font-size: 26px; }
}

@media (min-width: 901px) {
  .hero-media { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
