/* ==================================================
   1. DESIGN TOKENS
================================================== */

:root {
  --burgundy: #6e1418;
  --burgundy-dark: #43080b;
  --gold: #c99b4b;

  --paper: #efe1c4;
  --paper-light: #fffaf1;

  --text: #31231d;
  --text-muted: #76675c;

  --border: rgba(110, 20, 24, 0.12);
  --card-background: rgba(255, 250, 241, 0.91);

  --shadow-small: 0 10px 28px rgba(58, 25, 12, 0.09);
  --shadow-large: 0 20px 55px rgba(58, 25, 12, 0.16);

  --content-width: 1160px;
  --hero-width: 1520px;

  --radius-small: 14px;
  --radius-medium: 22px;
  --radius-large: 28px;

  --section-spacing: clamp(32px, 4vw, 56px);
  --content-spacing: 24px;
  --card-gap: 22px;
}

/* ===========================
   Videos
=========================== */
.download-buttons{
    margin-top:35px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.appstore-button{
    background:#8b1d1d;
    color:white;
    text-decoration:none;
    padding:16px 34px;
    border-radius:12px;
    font-size:1.1rem;
    font-weight:700;
    transition:.25s;
}

.appstore-button:hover{
    background:#6f1717;
    transform:translateY(-2px);
}

.secondary-button{
    background:white;
    color:#8b1d1d;
    border:2px solid #8b1d1d;
    text-decoration:none;
    padding:16px 34px;
    border-radius:12px;
    font-size:1.1rem;
    font-weight:700;
    transition:.25s;
}

.secondary-button:hover{
    background:#8b1d1d;
    color:white;
}
.download-section{
    padding:70px 20px;
    text-align:center;
    background:#faf8f4;
}

.download-section h2{
    font-size:2.2rem;
    color:#5a0d12;
    margin-bottom:15px;
}

.download-section p{
    max-width:800px;
    margin:0 auto 30px;
    font-size:1.1rem;
    line-height:1.7;
    color:#555;
}

.download-section img{
    transition:.25s;
}

.download-section img:hover{
    transform:scale(1.05);
}

.video-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
    text-align: center;
}

.video-section h2 {
    margin-bottom: 15px;
}

.video-section p {
    color: #666;
    margin-bottom: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    padding: 20px;
}

.video-card h3 {
    margin-bottom: 15px;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 10px;
}


/* ==================================================
   2. RESET AND BASE STYLES
================================================== */

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-width: 320px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  color: var(--text);
  line-height: 1.65;

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(255, 255, 255, 0.9),
      transparent 34rem
    ),
    var(--paper);
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* ==================================================
   3. TYPOGRAPHY
================================================== */

h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 16px;

  font-family: Georgia, "Times New Roman", serif;
  color: var(--burgundy);
  line-height: 1.17;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.45rem);
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 10px;

  color: var(--burgundy);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.lead {
  max-width: 850px;
  margin-bottom: 0;

  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
}


/* ==================================================
   4. HEADER AND NAVIGATION
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  background: rgba(255, 250, 241, 0.95);
  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(var(--content-width), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  margin-right: auto;

  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--burgundy);
}

.lang-btn,
.menu-btn {
  padding: 9px 13px;

  color: var(--burgundy);
  font-weight: 800;

  background: rgba(255, 255, 255, 0.53);
  border: 1px solid rgba(110, 20, 24, 0.3);
  border-radius: 999px;

  cursor: pointer;
}

.menu-btn {
  display: none;
}


/* ==================================================
   5. MAIN LAYOUT
================================================== */

.wide {
  width: min(var(--hero-width), calc(100% - 28px));
  margin: 0 auto;
}

.section {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;

  /*
   Reduced from:
   clamp(58px, 8vw, 104px)
  */
  padding: var(--section-spacing) 0;
}

/*
Reduce the space where two normal sections meet.
*/

.section + .section {
  padding-top: clamp(20px, 3vw, 36px);
}

/*
Prevent extra spacing before the footer.
*/

main > .section:last-child {
  padding-bottom: clamp(36px, 4vw, 52px);
}


/* ==================================================
   6. HERO
================================================== */

.hero {
    padding-top: 16px;
    padding-bottom: 12px;
}

.hero img {
  width: 100%;

  border-radius: 24px;
  box-shadow: var(--shadow-large);
}

.actions {
  margin-top: 20px;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}


/* ==================================================
   7. BUTTONS
================================================== */

.btn {
  min-height: 50px;
  padding: 12px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;

  border: 1px solid transparent;
  border-radius: 12px;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  color: #ffffff;
  background: var(--burgundy);
}

.primary:hover {
  background: var(--burgundy-dark);
}

.secondary {
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.53);
  border-color: var(--burgundy);
}

.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.27);
  border-color: rgba(0, 0, 0, 0.13);
}

.light {
  color: var(--burgundy-dark);
  background: #fff7e9;
}

.disabled {
  opacity: 0.65;
  pointer-events: none;
}


/* ==================================================
   8. PANELS AND CARDS
================================================== */

.panel,
.card,
.support {
  background: var(--card-background);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-small);
}

.panel {
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-medium);
}

.panel + .panel {
  margin-top: 24px;
}

.card {
  padding: 28px;
  border-radius: var(--radius-medium);
}

.card p,
.panel p,
.split p {
  color: var(--text-muted);
}

.card span {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;

  display: grid;
  place-items: center;

  color: var(--gold);
  font-weight: 900;

  background: var(--burgundy);
  border-radius: 16px;
}


/* ==================================================
   9. CONTENT GRID
================================================== */

.grid {
  margin-top: 26px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}


/* ==================================================
   10. FEATURE LIST
================================================== */

.feature-list {
  margin-top: 20px;
  margin-bottom: 0;
  padding-left: 22px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.feature-list li {
  padding-left: 2px;
}


/* ==================================================
   11. SPLIT LAYOUT
================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: clamp(32px, 5vw, 56px);
}


/* ==================================================
   12. CHECK LIST
================================================== */

.checks {
  margin: 0;
  padding: 0;

  display: grid;
  gap: 12px;

  list-style: none;
}

.checks li {
  position: relative;

  padding: 14px 18px 14px 46px;

  background: rgba(255, 250, 241, 0.87);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
}

.checks li::before {
  content: "✓";

  position: absolute;
  top: 13px;
  left: 18px;

  color: var(--burgundy);
  font-weight: 900;
}


/* ==================================================
   13. PRIVACY AND SUPPORT PANELS
================================================== */

.privacy,
.support {
  padding: clamp(26px, 4vw, 42px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  border-radius: var(--radius-large);
}

.privacy {
  color: #fff8ec;

  background:
    linear-gradient(
      135deg,
      var(--burgundy),
      var(--burgundy-dark)
    );
}

.privacy h2,
.privacy .eyebrow {
  color: var(--gold);
}

.privacy p {
  max-width: 780px;
}


/* ==================================================
   14. FINAL MESSAGE
================================================== */

.final-message {
  padding: clamp(28px, 4vw, 46px);

  color: #fff8ec;
  text-align: center;

  background:
    linear-gradient(
      135deg,
      var(--burgundy),
      var(--burgundy-dark)
    );

  border-radius: var(--radius-large);
  box-shadow: var(--shadow-large);
}

.final-message h2,
.final-message .eyebrow {
  color: var(--gold);
}

.final-message p {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}


/* ==================================================
   15. FOOTER
================================================== */

footer {
  padding:
    30px
    max(24px, calc((100vw - var(--content-width)) / 2));

  display: grid;
  grid-template-columns: 1.2fr auto auto;
  align-items: center;
  gap: 30px;

  color: #f9ead1;
  background: var(--burgundy-dark);
}

footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}


/* ==================================================
   16. MEDIUM DESKTOPS AND TABLETS
================================================== */

@media (max-width: 1050px) {
  footer {
    grid-template-columns: 1fr auto;
  }

  footer > p {
    grid-column: 1 / -1;
  }
}


/* ==================================================
   17. TABLET NAVIGATION
================================================== */

@media (max-width: 820px) {
  .menu-btn {
    display: block;
    order: 2;
  }

  .lang-btn {
    order: 3;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;

    padding: 14px;

    background: rgba(255, 250, 241, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-large);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 11px 14px;
    border-radius: 10px;
  }

  nav a:hover {
    background: rgba(110, 20, 24, 0.07);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .privacy,
  .support {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==================================================
   18. MOBILE
================================================== */

@media (max-width: 620px) {
  :root {
    --section-spacing: 36px;
    --card-gap: 16px;
  }

  .nav-wrap {
    width: calc(100% - 20px);
    min-height: 64px;
    gap: 10px;
  }

  nav {
    top: 64px;
    right: 10px;
    left: 10px;
  }

  .wide {
    width: calc(100% - 12px);
  }

  .hero {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .hero img {
    border-radius: 12px;
  }

  .actions {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .section {
    width: calc(100% - 28px);
    padding: var(--section-spacing) 0;
  }

  .section + .section {
    padding-top: 20px;
  }

  .grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .grid {
    margin-top: 20px;
  }

  .panel {
    padding: 22px;
  }

  .card {
    padding: 22px;
  }

  .panel,
  .card,
  .privacy,
  .support,
  .final-message {
    border-radius: 18px;
  }

  .privacy,
  .support,
  .final-message {
    padding: 24px 22px;
  }

  footer {
    padding: 26px 20px;

    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* ==================================================
   19. VERY SMALL PHONES
================================================== */

@media (max-width: 390px) {
  .brand {
    font-size: 0.94rem;
    letter-spacing: 0.07em;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .section {
    width: calc(100% - 22px);
  }

  .panel,
  .card {
    padding: 20px;
  }
}


/* ==================================================
   20. REDUCED MOTION
================================================== */

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}