:root {
  --brand-50: #eff8ff;
  --brand-100: #dbeefe;
  --brand-200: #bde3fe;
  --brand-500: #0e88c4;
  --brand-600: #0a6ba0;
  --brand-700: #0a5480;
  --brand-900: #0a3556;
  --accent-500: #ec4899;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink-900);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--slate-100);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}

.brand-name span {
  font-weight: 400;
  color: var(--ink-500);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
}

.nav-links a:hover {
  color: var(--brand-600);
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(10, 107, 160, 0.4);
}

.btn-primary:hover {
  background: var(--brand-700);
}

.btn-outline {
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--slate-200);
}

.btn-outline:hover {
  border-color: var(--brand-200);
  color: var(--brand-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tighter on phones so brand + both buttons fit on one row. */
@media (max-width: 479px) {
  .header-actions .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-light {
  background: #fff;
  color: var(--brand-900);
}

.btn-light:hover {
  background: var(--brand-50);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 64px 24px 80px;
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    padding-top: 96px;
  }
}

.hero-copy {
  max-width: 560px;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-copy {
    text-align: left;
  }
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  color: var(--ink-900);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 48px;
  }
}

.hero p {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-500);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn,
.download-buttons .btn {
  white-space: nowrap;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.hero-image-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 32px;
  background: var(--brand-100);
  filter: blur(64px);
}

.hero-image-wrap img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

/* Trust bar */
.trust-bar {
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 32px 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .trust-bar .container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-stat {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-700);
}

.trust-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-500);
}

/* Section headings */
.section {
  padding: 80px 24px;
}

.section-head {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-500);
}

/* Features */
.features-grid {
  max-width: 1152px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  border: 1px solid var(--slate-100);
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.15);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-card h3 {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.feature-card p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-500);
}

/* Screens */
.screens-section {
  background: var(--slate-50);
}

.screens-row {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 8px 16px;
}

@media (min-width: 1024px) {
  .screens-row {
    justify-content: center;
  }
}

.screen-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.screen-card img {
  height: 440px;
  width: auto;
  border-radius: 20px;
}

.screen-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
}

/* How it works */
.steps-grid {
  max-width: 1152px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-grid h3 {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.steps-grid p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-500);
}

/* Download CTA */
.download-cta {
  background: var(--brand-900);
  text-align: center;
  padding: 64px 24px 80px;
}

.download-cta img {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.download-cta h2 {
  margin: 24px 0 0;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}

.download-cta p {
  margin: 12px auto 0;
  max-width: 420px;
  color: var(--brand-100, #dbeefe);
}

.download-cta .btn {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 48px 0 0;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-about {
  max-width: 320px;
}

.footer-about .brand {
  margin-bottom: 12px;
}

.footer-about img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-about p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-cols h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0;
}

.footer-cols ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-500);
}

.footer-cols a:hover {
  color: var(--brand-600);
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
  font-size: 12px;
  color: var(--ink-500);
}

/* Legal pages */
.legal-main {
  max-width: 672px;
  margin: 0 auto;
  padding: 64px 24px;
}

.legal-main h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.legal-main .updated {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-500);
}

.legal-section {
  margin-top: 24px;
}

.legal-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.legal-section p,
.legal-section ol {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-700);
}

.legal-section ol {
  padding-left: 20px;
}

.legal-section a {
  color: var(--brand-600);
  text-decoration: underline;
}

/* Buttons inside legal sections keep their own colours (the rule above would
   otherwise paint their text the same blue as their background). */
.legal-section a.btn {
  text-decoration: none;
  margin-top: 4px;
}

.legal-section a.btn-primary {
  color: #fff;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.legal-divider {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--slate-200);
}

[dir='rtl'] .legal-section ol {
  padding-left: 0;
  padding-right: 20px;
}

/* ---- Account-deletion request form (delete-account.html) ---- */
[hidden] {
  display: none !important;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: #fff;
}

.request-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}

.request-form input[type='text'],
.request-form input[type='email'],
.request-form input[type='tel'],
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: var(--ink-700);
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: 2px solid var(--brand-200);
  border-color: var(--brand-600);
}

.request-form label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}

.request-form label.check input {
  margin-top: 3px;
}

.request-form .btn {
  align-self: flex-start;
  justify-content: center;
  min-width: 180px;
}

.request-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Honeypot: invisible to people, tempting to bots. */
.request-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.form-status-ok {
  background: #e7f7ee;
  color: #11693c;
}

.form-status-error {
  background: #fdeceb;
  color: #a02424;
}
