:root {
  --bg: #f4eee4;
  --card: #fffdf9;
  --soft: #f8e3de;
  --red: #d23b33;
  --red-dark: #c92f2d;
  --text: #211913;
  --muted: #8c7f70;
  --muted-2: #a89a89;
  --border: #e7decf;
  --shadow: 0 24px 70px rgba(33, 25, 19, .13);
  --shadow-soft: 0 14px 42px rgba(33, 25, 19, .08);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { overflow: hidden; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(18px);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 10px 16px;
  z-index: -1;
  border: 1px solid rgba(231, 222, 207, .72);
  border-radius: 999px;
  background: rgba(255, 253, 249, .76);
  box-shadow: 0 10px 40px rgba(33,25,19,.06);
}

.brand, .nav-links, .hero-actions, .trust-row, .mini-list, .privacy-points, .footer div {
  display: flex;
  align-items: center;
}

.brand { gap: 12px; font-weight: 760; font-size: 20px; }
.nav-links {
  gap: 18px;
  padding-right: 22px;
  color: var(--muted);
  font-weight: 650;
}
.nav-links a:not(.app-store-button):not(.facebook-button):hover { color: var(--red); }
.nav-cta { transform: scale(.8); transform-origin: center; }

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}
.language-switcher summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,253,249,.78);
  box-shadow: 0 10px 26px rgba(33,25,19,.06);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.language-switcher[open] summary {
  color: var(--red);
  border-color: rgba(210,59,51,.28);
  box-shadow: 0 14px 34px rgba(33,25,19,.1);
}
.language-switcher[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.language-current,
.language-menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: .02em;
}
.language-flag {
  display: inline-grid;
  place-items: center;
  width: 18px;
  font-size: 16px;
  line-height: 1;
}
.language-flag.quebec-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: url("./assets/quebec-flag.svg") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(33,25,19,.12);
}
.language-flag.catalonia-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #ffd800 0,
    #ffd800 11.111%,
    #da121a 11.111%,
    #da121a 22.222%
  );
  box-shadow: 0 0 0 1px rgba(33,25,19,.12);
}
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 4px;
  min-width: 112px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,253,249,.96);
  box-shadow: 0 20px 48px rgba(33,25,19,.16);
}
.language-menu a {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.language-menu a:hover,
.language-menu a[aria-current="page"] {
  color: var(--red);
  background: var(--soft);
}

[dir="rtl"] .nav-links {
  padding-right: 0;
  padding-left: 22px;
}
[dir="rtl"] .language-switcher summary::after {
  margin-left: 0;
  margin-right: 9px;
}
[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}
[dir="rtl"] .hero-copy,
[dir="rtl"] .section-heading,
[dir="rtl"] .showcase-copy,
[dir="rtl"] .feature-copy,
[dir="rtl"] .premium-copy,
[dir="rtl"] .legal-card {
  text-align: right;
}

.facebook-button {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #4195ff 0%, #1877f2 56%, #0f5fd6 100%);
  box-shadow: 0 14px 28px rgba(24,119,242,.25), inset 0 1px 0 rgba(255,255,255,.34);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.facebook-button::before {
  content: "";
  width: 23px;
  height: 23px;
  background: #fff;
  mask: url("./assets/facebook-mark.svg") center / contain no-repeat;
  -webkit-mask: url("./assets/facebook-mark.svg") center / contain no-repeat;
}
.facebook-button::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  border-radius: 13px 13px 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0));
  pointer-events: none;
}
.facebook-button:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #55a1ff 0%, #1877f2 58%, #0d55c6 100%);
  box-shadow: 0 18px 36px rgba(24,119,242,.31), inset 0 1px 0 rgba(255,255,255,.38);
}
.facebook-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: url("./assets/screenclips-site-icon.png") center / cover no-repeat;
  box-shadow: 0 14px 34px rgba(210,59,51,.35);
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 184px;
  min-height: 56px;
  padding: 9px 18px 10px 14px;
  color: #fff;
  background: linear-gradient(180deg, #1d1d20 0%, #050505 100%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.app-store-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #242427 0%, #090909 100%);
  box-shadow: 0 18px 42px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.16);
}
.nav-cta:hover { transform: scale(.8) translateY(-2px); }
.app-store-button > span:not(.apple-mark) {
  display: grid;
  gap: 1px;
}
.app-store-button small {
  display: block;
  font-size: 10.5px;
  font-weight: 520;
  line-height: 1;
  letter-spacing: .01em;
  opacity: .9;
}
.app-store-button strong {
  display: block;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.018em;
}
.apple-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  flex: 0 0 30px;
  background: none;
  color: #fff;
  position: relative;
  font-size: 0;
}
.apple-mark::before {
  content: "";
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section-shell.compact { padding-block: 76px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 90px);
  position: relative;
}
.hero::after, .how::before, .features::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(210,59,51,.18), rgba(210,59,51,0) 68%);
  pointer-events: none;
}
.hero::after { right: -200px; top: 80px; }

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 760;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 13px;
}
.eyebrow span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 7px rgba(210,59,51,.12);
}
.kicker.light { color: #fff; opacity: .88; }

h1, h2, h3, p { margin: 0; }
h1 {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(58px, 8.4vw, 108px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 780;
}
h2 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 760;
}
h3 { font-size: 24px; line-height: 1.08; letter-spacing: -.025em; font-weight: 740; }
p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.lead { margin-top: 28px; max-width: 670px; font-size: 23px; line-height: 1.42; letter-spacing: -.02em; }
.hero-actions { gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.secondary-link { color: var(--red); font-weight: 760; }
.trust-row { gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.trust-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,253,249,.74);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.hero-visual { position: relative; min-height: 720px; display: grid; place-items: center; }
.phone { width: min(100%, 340px); }
.phone-frame {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border-radius: 46px;
  background: #0b0b0c;
  box-shadow: 0 30px 90px rgba(33,25,19,.22);
}
.phone-frame img { border-radius: 38px; aspect-ratio: 9/19.5; object-fit: cover; object-position: top; }
.phone-island {
  position: absolute;
  z-index: 2;
  top: 24px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 34px; border-radius: 999px; background: #000;
}
.hero-phone { width: min(100%, 392px); transform: rotate(3deg); }
.floating-card {
  position: absolute;
  z-index: 3;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,253,249,.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}
.floating-card strong { display: block; font-size: 18px; }
.floating-card small { color: var(--muted); font-weight: 650; }
.card-left { left: 0; top: 132px; transform: rotate(-5deg); }
.card-right { right: 0; bottom: 160px; transform: rotate(4deg); }

.section-heading { max-width: 860px; margin-bottom: 34px; }
.section-heading h2 { margin-top: 12px; }
.section-heading p { margin-top: 18px; font-size: 21px; }
.section-heading.narrow { max-width: 720px; }

.problem-grid, .steps, .use-case-grid {
  display: grid;
  gap: 18px;
}
.problem-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card, .step-card, .use-case, .faq-list details {
  background: rgba(255,253,249,.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.feature-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--red);
  background: var(--soft);
  font-weight: 760;
  font-size: 24px;
}
.feature-card p, .step-card p { margin-top: 10px; }

.how { position: relative; }
.how::before { left: -240px; top: 240px; }
.steps { grid-template-columns: repeat(3, 1fr); margin-bottom: 62px; }
.step-card { padding: 28px; border-radius: var(--radius-lg); }
.step-card span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--red);
  font-size: 44px;
  font-weight: 760;
  letter-spacing: -.045em;
}
.showcase-grid, .feature-layout, .premium {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.showcase-copy p, .feature-copy > p, .premium-copy p { margin-top: 18px; font-size: 21px; }
.mini-list { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 26px; }
.mini-list span {
  padding: 12px 15px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--red-dark);
  font-weight: 700;
}

.use-case-grid { grid-template-columns: repeat(3, 1fr); }
.use-case {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
}
.use-case span { grid-row: 1/3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); color: var(--red); font-weight: 760; }
.use-case strong { font-size: 22px; letter-spacing: -.02em; font-weight: 740; }
.use-case small { color: var(--muted); font-weight: 650; font-size: 15px; }

.features { position: relative; }
.features::before { right: -260px; top: 180px; }
.feature-layout { grid-template-columns: 1.1fr .9fr; }
.feature-list { display: grid; gap: 16px; margin-top: 28px; }
.feature-list .feature-card { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
.feature-list .feature-icon { margin: 0; }
.feature-list .feature-card p { grid-column: 2; }

.privacy-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  align-items: center;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-xl);
  color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.24), transparent 28%), linear-gradient(135deg, var(--red), #e04d46);
  box-shadow: 0 30px 90px rgba(210,59,51,.27);
}
.privacy-card h2 { margin-top: 12px; }
.privacy-card p { color: rgba(255,255,255,.82); margin-top: 18px; font-size: 21px; }
.privacy-points { flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.privacy-points span { padding: 13px 16px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 700; }

.premium { grid-template-columns: 1fr .85fr; }
.premium-copy .app-store-button { margin-top: 28px; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 22px 26px; border-radius: 22px; }
.faq-list summary { cursor: pointer; font-size: 21px; font-weight: 740; letter-spacing: -.02em; }
.faq-list p { margin-top: 12px; }

.final-cta { padding-top: 40px; }
.final-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  padding: clamp(42px, 8vw, 82px);
  border-radius: 46px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.final-card p { max-width: 720px; font-size: 21px; }
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-weight: 650;
}
.footer div { gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--red); }
.footer a[aria-current="page"] { color: var(--red); }

.legal-page {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(210,59,51,.12), rgba(210,59,51,0) 30%),
    var(--bg);
}
.legal-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  overflow: visible;
}
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 34px;
}
.legal-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.legal-card {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,253,249,.78);
  box-shadow: var(--shadow-soft);
}
.legal-card h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.legal-card h2 {
  margin-top: 34px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.legal-card p,
.legal-card ul {
  margin: 14px 0 0;
}
.legal-card ul {
  padding-left: 22px;
}
.legal-card li + li {
  margin-top: 10px;
}
.legal-footer {
  padding-inline: 0;
}

@media (max-width: 980px) {
  .nav-links > a:not(.app-store-button) { display: none; }
  .hero, .showcase-grid, .feature-layout, .premium, .privacy-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero-visual { min-height: 640px; }
  .problem-grid, .steps, .use-case-grid { grid-template-columns: 1fr 1fr; }
  .privacy-points { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .section-shell { padding: 64px 18px; }
  .section-shell.compact { padding-block: 54px; }
  .nav { padding-inline: 8px; }
  .nav-links { gap: 4px; padding-right: 0; }
  .brand span { display: none; }
  .brand .app-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
  .language-switcher summary {
    min-height: 36px;
    padding: 0 10px;
  }
  .language-current,
  .language-menu a {
    gap: 6px;
    font-size: 12px;
  }
  .language-flag {
    width: 16px;
    font-size: 15px;
  }
  .language-menu {
    min-width: 104px;
    border-radius: 16px;
  }
  .language-menu a {
    min-height: 34px;
    padding-inline: 9px;
  }
  .facebook-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .facebook-button::before {
    width: 18px;
    height: 18px;
  }
  .nav-cta {
    min-width: 40px;
    width: 40px;
    min-height: 40px;
    padding: 8px;
    justify-content: center;
    transform: none;
  }
  .nav-cta:hover { transform: translateY(-2px); }
  .nav-cta > span:not(.apple-mark) { display: none; }
  h1 { font-size: clamp(54px, 17vw, 76px); }
  h2 { font-size: clamp(34px, 11vw, 48px); }
  .lead, .section-heading p, .showcase-copy p, .premium-copy p, .privacy-card p { font-size: 18px; }
  .hero-visual { min-height: 580px; }
  .hero-phone { width: 315px; }
  .floating-card { display: none; }
  .problem-grid, .steps, .use-case-grid { grid-template-columns: 1fr; }
  .feature-list .feature-card { grid-template-columns: 1fr; }
  .feature-list .feature-card p { grid-column: auto; }
  .footer { flex-direction: column; }
  .legal-nav { align-items: flex-start; flex-direction: column; }
  .legal-actions { justify-content: flex-start; }
  .legal-card { border-radius: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone-frame { animation: float 7s ease-in-out infinite; }
  .floating-card { animation: drift 6s ease-in-out infinite; }
  .card-right { animation-delay: -2s; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
  @keyframes drift { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
}
