/* homepage.css — Marketing homepage styles for LetHost.
   Design: clean, mobile-first, UK-feeling navy/cream palette.
   CSS custom properties for theming. No stock photos — typography + whitespace.
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a2744;
  --navy-mid:    #243358;
  --cream:       #f8f6f1;
  --cream-dark:  #f0ede6;
  --gold:        #c9a84c;
  --gold-dim:    #a88c3a;
  --text:        #1a1a1a;
  --text-light:  #5a6478;
  --white:       #ffffff;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-gap: clamp(72px, 10vw, 128px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-mid); }

/* === HERO === */
.hero {
  background: var(--cream);
  padding: clamp(60px, 8vw, 120px) var(--pad-x) var(--section-gap);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: rgba(201, 168, 76, 0.1);
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 15px 32px;
  border-radius: 10px;
  border: 1.5px solid rgba(26, 39, 68, 0.25);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--navy); background: rgba(26,39,68,0.04); }

.trust-line {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 400;
}

/* === THE MATHS === */
.maths {
  background: var(--white);
  padding: var(--section-gap) var(--pad-x);
}

.maths-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.maths-header {
  text-align: center;
  margin-bottom: 56px;
}

.maths-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.maths h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.maths-sub {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 52px;
  text-align: center;
}

.maths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.maths-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid rgba(26, 39, 68, 0.07);
}

.maths-card.middle {
  background: var(--navy);
  border-color: transparent;
}

.maths-card-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.middle .maths-card-label { color: rgba(255,255,255,0.5); }

.maths-card h3 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.middle h3 { color: var(--white); }

.maths-card-sub {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.middle .maths-card-sub { color: rgba(255,255,255,0.5); }

.maths-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.maths-card ul li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.middle ul li { color: rgba(255,255,255,0.75); }

.maths-card ul li::before {
  content: '–';
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.middle ul li::before { color: var(--gold); }

.maths-card-highlight {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  padding-top: 16px;
  border-top: 1px solid rgba(26,39,68,0.1);
}

.middle .maths-card-highlight {
  color: var(--gold);
  border-top-color: rgba(255,255,255,0.1);
}

.maths-caveat {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
}

/* === HOW IT WORKS === */
.hiw {
  background: var(--cream);
  padding: var(--section-gap) var(--pad-x);
}

.hiw-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hiw-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.hiw h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 56px;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.hiw-step { position: relative; }

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.hiw-step h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.hiw-step p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  font-weight: 400;
}

/* === WHAT'S INCLUDED === */
.included {
  background: var(--white);
  padding: var(--section-gap) var(--pad-x);
}

.included-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.included-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.included h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 48px;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.inc-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid rgba(26, 39, 68, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inc-icon {
  color: var(--gold-dim);
  margin-bottom: 6px;
}

.inc-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.inc-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 400;
}

/* === PRICING === */
.pricing-section {
  background: var(--cream);
  padding: var(--section-gap) var(--pad-x);
  text-align: center;
}

.pricing-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.pricing-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 40px;
}

.pricing-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 24px;
  padding: 56px 48px;
  color: var(--white);
}

.pricing-main-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}

.pricing-highlight {
  color: var(--gold);
}

.pricing-fees {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.fee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.fee-item svg { color: #6bcb8a; flex-shrink: 0; }

.fee-item.negative {
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
  opacity: 0.7;
}

/* === FAQ === */
.faq {
  background: var(--white);
  padding: var(--section-gap) var(--pad-x);
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.faq h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 48px;
}

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid rgba(26,39,68,0.1);
}

.faq-item:first-child { border-top: 1px solid rgba(26,39,68,0.1); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.15s;
}
.faq-question:hover { color: var(--gold-dim); }

.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

details[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  font-weight: 400;
}

/* === FINAL CTA === */
.final-cta {
  background: var(--navy);
  padding: clamp(60px, 8vw, 100px) var(--pad-x);
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 36px;
}

.final-cta .btn-primary {
  font-size: 1.05rem;
  padding: 18px 40px;
  background: var(--gold);
  color: var(--navy);
}
.final-cta .btn-primary:hover { background: var(--gold-dim); }

/* === FOOTER === */
.footer {
  background: var(--cream-dark);
  padding: 40px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-copy a {
  color: var(--text-light);
  text-decoration: none;
}
.footer-copy a:hover { color: var(--navy); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .maths-grid { grid-template-columns: 1fr; gap: 16px; }
  .maths-card.middle { order: -1; }
  .hiw-steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .included-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card { padding: 40px 32px; }
}

@media (max-width: 640px) {
  .hiw-steps { grid-template-columns: 1fr; gap: 32px; }
  .included-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}