:root {
  --paper: #f8f1eb;
  --paper-strong: #fffaf5;
  --coral: #f5684d;
  --coral-dark: #cf4733;
  --gold: #fcc025;
  --ink: #2e3038;
  --muted: #6c6060;
  --line: rgba(46, 48, 56, 0.14);
  --shadow: 0 18px 50px rgba(46, 48, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(252, 192, 37, 0.22), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(245, 104, 77, 0.14), transparent 30%),
    linear-gradient(180deg, var(--paper-strong) 0%, var(--paper) 62%, #eadfd4 100%);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--coral-dark);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 241, 235, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(245, 104, 77, 0.18);
}

.brand span {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.flag {
  width: 34px;
  height: 24px;
  border: 1px solid rgba(46, 48, 56, 0.18);
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 48, 56, 0.08);
}

.flag:hover,
.flag.active {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.fr { background-image: url("https://flagcdn.com/fr.svg"); }
.en { background-image: url("https://flagcdn.com/gb.svg"); }
.es { background-image: url("https://flagcdn.com/es.svg"); }
.pt { background-image: url("https://flagcdn.com/pt.svg"); }

main {
  flex: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(18px, 5vw, 48px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--coral-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  line-height: 1;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.12;
}

h3 {
  margin: 32px auto 12px;
  max-width: 840px;
  font-size: 1.25rem;
}

h4 {
  margin: 22px auto 10px;
  max-width: 840px;
  font-size: 1.03rem;
}

p,
ul {
  max-width: 840px;
  font-size: 1.04rem;
  line-height: 1.72;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

.lead {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-start,
button:not(.flag) {
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(245, 104, 77, 0.22);
}

.btn-start:hover,
button:not(.flag):hover {
  background: var(--coral-dark);
}

.btn-download img {
  display: block;
  height: 58px;
}

.content {
  background: rgba(255, 250, 245, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 48px);
}

.content > p,
.content > ul {
  margin-left: auto;
  margin-right: auto;
}

.center {
  text-align: center;
}

.meta {
  color: var(--muted);
  text-align: center;
}

form {
  width: min(520px, 100%);
  margin: 28px auto 0;
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

footer {
  padding: 24px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

footer p {
  max-width: none;
  margin: 8px 0;
  font-size: 0.95rem;
}

footer a {
  color: #fff;
  margin: 0 8px;
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

@media (max-width: 760px) {
  header {
    align-items: flex-start;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .actions {
    justify-content: center;
  }
}
