/* ===========================
   CSS CUSTOM PROPERTIES (TOKENS)
   =========================== */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-primary: #ff8a3d;
  --color-primary-dark: #ff5f1f;
  --color-heading: #3b3a3a;
  --color-body: #424242;
  --color-meta: #646464;
  --color-meta-light: #757575;
  --color-bg-page: #ffffff;
  --color-bg-cream: #faf4ed;
  --color-footer-bg: #3b3a3a;
  --color-border-header: #c9c9c9;
  --color-border-cream: #d8cdc1;
  --color-border-light: #e0dedb;
  --color-border-divider: #f0f0f0;
  --color-footer-border: #767575;
  --color-footer-text-full: #ffffff;
  --color-footer-text-dim: rgba(255, 255, 255, 0.3);
  --color-footer-text-mid: rgba(255, 255, 255, 0.45);
  --color-footer-text-half: rgba(255, 255, 255, 0.5);
  --color-footer-text-faint: rgba(255, 255, 255, 0.35);
  --color-company-name: rgba(255, 255, 255, 0.5);
  --color-company-info: rgba(255, 255, 255, 0.35);
  --color-input-bg: rgba(255, 255, 255, 0.07);
  --color-checkbox-border: #767676;

  /* Typography */
  --font-family: "Inter", sans-serif;

  /* Font sizes (exact from Figma) */
  --fs-h1: 32.79999923706055px;
  --fs-h2: 25.600000381469727px;
  --fs-h2-alt: 21.899999618530273px;
  --fs-subtitle: 21.899999618530273px;
  --fs-body: 16px;
  --fs-author-name: 12.899999618530273px;
  --fs-author-role: 9.100000381469727px;
  --fs-date: 12.800000190734863px;
  --fs-small: 14.399999618530273px;
  --fs-newsletter-title: 32px;
  --fs-newsletter-input: 13px;
  --fs-newsletter-btn: 13px;
  --fs-newsletter-label: 11px;
  --fs-newsletter-unsub: 10.5px;
  --fs-footer-company-name: 12px;
  --fs-footer-company-info: 12px;
  --fs-footer-links: 12px;
  --fs-disclaimer-title: 8px;
  --fs-disclaimer-text: 8px;
  --fs-topbar: 18px;
  --fs-accordion-title: 21.799999237060547px;
  --fs-author-bio-name: 16.299999237060547px;
  --fs-author-bio-role: 14.5px;
  --fs-author-bio-desc: 16.5px;
  --fs-offer-title: 16px;

  /* Line heights (exact from Figma) */
  --lh-h1: 42px;
  --lh-h2: 28px;
  --lh-h2-alt: 32px;
  --lh-body: 28px;
  --lh-subtitle: 34px;
  --lh-author-name: 28px;
  --lh-date: 28px;
  --lh-newsletter-title: 35.2px;
  --lh-footer-company: 21.6px;
  --lh-disclaimer: 12.8px;
  --lh-topbar: 21.784090042114258px;
  --lh-accordion-title: 32px;
  --lh-author-bio-name: 26px;
  --lh-author-bio-desc: 30px;
  --lh-footer-links: 14.522727012634277px;
  --lh-newsletter-label: 15.4px;
  --lh-newsletter-unsub: 15.75px;
  --lh-small: 23px;

  /* Spacing */
  --content-width: 680px;
  --wide-width: 1200px;
  --header-padding: 353px;
  --footer-padding: 360px;
  --section-gap: 20px;
  --content-item-gap: 15px;
}

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

html{
scroll-behavior: smooth;
}
body {
  font-family: var(--font-family);
  background-color: var(--color-bg-page);
  color: var(--color-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  
}

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

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

ul {
  list-style: none;
}

/* ===========================
   HEADER
   =========================== */
.header {
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  flex-direction: column;
      border-bottom: 1px solid var(--color-border-header);
}

.header__topbar {
  background-color: var(--color-white);
  height: 32px;
  display: flex;
  align-items: center;
  padding: 5px var(--header-padding);
}

.header__topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__topbar-item {
  font-size: var(--fs-topbar);
  font-weight: 400;
  color: var(--color-black);
  line-height: var(--lh-topbar);
}

.header__topbar-sep {
  font-size: var(--fs-topbar);
  font-weight: 400;
  color: var(--color-black);
  line-height: var(--lh-topbar);
}

.header__logobar {
  background-color: var(--color-white);
  height: 85px;
  display: flex;
  align-items: center;
  padding: 12px var(--header-padding);
}

.header__logobar-inner {
  display: flex;
  align-items: center;
}

.header__logo-link {
  display: block;
  line-height: 0;
}

.header__logo {
  width: 150px;
  height: 61px;
  object-fit: contain;
}

/* ===========================
   MAIN / ARTICLE
   =========================== */
.main {
  background-color: var(--color-white);
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  gap: 20px;
  padding: 0 20px;
  justify-content: center;
}

.article {
  max-width: var(--content-width);
  padding: 0 0 0 0;
}

.article__section {
  display: flex;
  flex-direction: column;
  gap: var(--content-item-gap);
  margin-bottom: var(--section-gap);
}

.article__section--hero {
  gap: var(--content-item-gap);
}

.article__section--study {
  gap: var(--content-item-gap);
}

/* H1 */
.article__h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  color: var(--color-heading);
  line-height: var(--lh-h1);
  letter-spacing: 0;
}

/* Subtitle under H1 */
.article__subtitle {
  font-size: var(--fs-subtitle);
  font-weight: 500;
  color: var(--color-body);
  line-height: var(--lh-subtitle);
}

/* H2 */
.article__h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--color-heading);
  line-height: var(--lh-h2);
}

/* H3 (study numbers, day titles) */
.article__h3 {
  font-size: var(--fs-h2-alt);
  font-weight: 500;
  color: var(--color-heading);
  line-height: var(--lh-h2-alt);
}

/* Body text variations */
.article__body {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-body);
  line-height: var(--lh-body);
}

.article__body--bold {
  font-weight: 600;
}

.article__body--quote {
  font-size: 16.5px;
  font-weight: 400;
}

.article__body--strong {
  font-weight: 700;
  font-size: 16.200000762939453px;
}

/* Article images */
.article__figure {
  margin: 0;
  line-height: 0;
}

.article__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Author meta row */
.article__meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--color-border-divider);
}

.article__author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.article__author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.article__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__author-info {
  display: flex;
  flex-direction: column;
}

.article__author-name {
  font-size: var(--fs-author-name);
  font-weight: 500;
  color: var(--color-black);
  line-height: var(--lh-author-name);
}

.article__author-role {
  font-size: var(--fs-author-role);
  font-weight: 500;
  color: var(--color-meta);
}

.article__date {
  font-size: var(--fs-date);
  font-weight: 400;
  color: var(--color-meta);
  line-height: var(--lh-date);
}

/* ===========================
   CHECKLIST
   =========================== */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--content-item-gap);
}

.checklist__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.checklist__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-body);
  margin-top: 5px;
}

.checklist__text {
  font-size: 16.299999237060547px;
  font-weight: 400;
  color: var(--color-body);
  line-height: var(--lh-body);
}

.checklist__text--bold {
  font-weight: 600;
}

/* ===========================
   OFFER LIST
   =========================== */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-list__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.offer-list__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  font-size: 14px;
  margin-top: 4px;
}

.offer-list__text {
  font-size: 16.299999237060547px;
  font-weight: 400;
  color: var(--color-body);
  line-height: var(--lh-body);
}

.offer-list__text--bold {
  font-weight: 600;
}

/* ===========================
   GIVEAWAY BOX (Section 20)
   =========================== */
.giveaway-box {
  background-color: var(--color-bg-cream);
  border: 1px solid var(--color-border-cream);
  padding: 1px;
  min-height: 419px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.giveaway-box__text {
  font-size: var(--fs-h2-alt);
  font-weight: 500;
  color: var(--color-heading);
  line-height: var(--lh-h2-alt);
  padding: 20px;
}

/* ===========================
   AUTHOR BIO (Section 21)
   =========================== */
.article__section--author-bio {
  margin-bottom: 0;
}

.author-bio {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0;
 
}

.author-bio__avatar {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 35px;
  overflow: hidden;
  margin-left: 20px;
}

.author-bio__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 20px;
}

.author-bio__name {
  font-size: var(--fs-author-bio-name);
  font-weight: 400;
  color: var(--color-body);
  line-height: var(--lh-author-bio-name);
}

.author-bio__role {
  font-size: var(--fs-author-bio-role);
  font-weight: 500;
  color: var(--color-body);
  line-height: var(--lh-author-bio-name);
}

.author-bio__description {
  font-size: var(--fs-author-bio-desc);
  font-weight: 400;
  color: var(--color-body);
  line-height: var(--lh-author-bio-desc);
}

/* ===========================
   FROM AUTHOR (Accordion sections)
   =========================== */
.from-author {
  display: flex;
  justify-content: center;
  background-color: var(--color-white);
  margin-bottom: 30px;
}

.from-author__inner {
  width: 100%;
  max-width: var(--wide-width);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: 30px;
}

.accordion {
  width: 100%;
}

.accordion__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  list-style: none;
}

.accordion__header::-webkit-details-marker {
  display: none;
}

.accordion__title {
  font-size: var(--fs-accordion-title);
  font-weight: 500;
  color: var(--color-heading);
  line-height: var(--lh-accordion-title);
}

.accordion__arrow {
  width: 39px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion__arrow::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-heading);
  border-bottom: 2px solid var(--color-heading);
  transform: rotate(45deg);
  margin-top: -6px;
}

details[open] .accordion__arrow {
  transform: rotate(180deg);
}

details[open] .accordion__arrow::after {
  margin-top: 6px;
}

.accordion__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 15px;
}

.accordion__text {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-body);
  line-height: var(--lh-small);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background-color: var(--color-footer-bg);
  margin-top: 30px;
}

.footer__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer__details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

/* Company info */
.footer__company {
  width: 390px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__company-name {
  font-size: var(--fs-footer-company-name);
  font-weight: 600;
  color: var(--color-company-name);
  line-height: var(--lh-footer-company);
}

.footer__company-info {
  font-size: var(--fs-footer-company-info);
  font-weight: 700;
  color: var(--color-company-info);
  line-height: var(--lh-footer-company);
}

/* Newsletter */
.footer__newsletter {
  width: 434px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer__newsletter-title {
  font-size: var(--fs-newsletter-title);
  font-weight: 900;
  color: var(--color-footer-text-full);
  line-height: var(--lh-newsletter-title);
}

.footer__newsletter-input-wrap {
  width: 100%;
}

.footer__newsletter-input {
  width: 100%;
  height: 38px;
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-footer-text-full);
  border-radius: 7px;
  padding: 11px 13px;
  font-size: var(--fs-newsletter-input);
  font-weight: 400;
  color: var(--color-meta-light);
  font-family: var(--font-family);
  outline: none;
}

.footer__newsletter-input::placeholder {
  color: var(--color-meta-light);
}

.footer__newsletter-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 1px 0;
  cursor: pointer;
}

.footer__newsletter-checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-checkbox-border);
  border-radius: 2.5px;
  display: block;
  margin-top: 2px;
}

.footer__newsletter-label-text {
  font-size: var(--fs-newsletter-label);
  font-weight: 400;
  color: var(--color-footer-text-mid);
  line-height: var(--lh-newsletter-label);
}

.footer__newsletter-btn {
  width: 100%;
  height: 38px;
  background-color: var(--color-primary);
  border: none;
  border-radius: 7px;
  padding: 11px 100px;
  font-size: var(--fs-newsletter-btn);
  font-weight: 700;
  color: var(--color-white);
  font-family: var(--font-family);
  cursor: pointer;
  line-height: 15.732954025268555px;
  white-space: nowrap;
}

.footer__newsletter-btn:hover {
  background-color: var(--color-primary-dark);
}

.footer__newsletter-unsub {
  font-size: var(--fs-newsletter-unsub);
  font-weight: 400;
  color: var(--color-footer-text-dim);
  line-height: var(--lh-newsletter-unsub);
}

/* Footer references */
.footer__references {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 10px;
  padding-bottom: 10px;
}

.footer__links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: var(--fs-footer-links);
  font-weight: 400;
  color: var(--color-footer-text-dim);
  line-height: var(--lh-footer-links);
}

.footer__legal-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.footer__legal-link {
  font-size: var(--fs-footer-links);
  font-weight: 400;
  color: var(--color-footer-text-dim);
  line-height: var(--lh-footer-links);
  text-decoration: none;
}

.footer__legal-link:hover {
  color: var(--color-white);
}

/* Footer disclaimer */
.footer__disclaimer {
  border-top: 1px solid var(--color-footer-border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__disclaimer-title {
  font-size: var(--fs-disclaimer-title);
  font-weight: 700;
  color: var(--color-footer-border);
  line-height: var(--lh-disclaimer);
}

.footer__disclaimer-text {
  font-size: var(--fs-disclaimer-text);
  font-weight: 400;
  color: var(--color-footer-border);
  line-height: var(--lh-disclaimer);
}

/* ===========================
   TABLET BREAKPOINT (max-width: 1024px)
   =========================== */
@media screen and (max-width: 1024px) {
  :root {
    --header-padding: 24px;
  }

  .header__topbar {
    padding: 5px 24px;
  }

  .header__topbar-item,
  .header__topbar-sep {
    font-size: 14px;
  }

  .header__logobar {
    padding: 12px 24px;
    height: 70px;
  }

  .article {
    max-width: var(--content-width);
    padding: 0;
  }

  .footer__inner {
    padding: 26px 24px;
  }

  .footer__details {
    gap: 30px;
  }

  .footer__company {
    width: auto;
    flex: 1;
  }

  .footer__newsletter {
    width: auto;
    flex: 1;
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__legal-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .from-author__inner {
    padding: 20px 24px;
  }
}

/* ===========================
   MOBILE BREAKPOINT (max-width: 768px)
   =========================== */
@media screen and (max-width: 768px) {
  :root {
    --fs-h1: 24px;
    --fs-h2: 20px;
    --fs-h2-alt: 18px;
    --fs-subtitle: 17px;
    --lh-h1: 32px;
    --lh-h2: 24px;
    --lh-h2-alt: 26px;
    --lh-subtitle: 26px;
    --fs-newsletter-title: 24px;
    --lh-newsletter-title: 28px;
    --fs-topbar: 13px;
    --header-padding: 16px;
    --footer-padding: 16px;
  }

 

  .header__topbar {
    padding: 5px 16px;
    height: auto;
    min-height: 32px;
  }

  .header__logobar {
    padding: 10px 16px;
    height: auto;
    min-height: 60px;
  }

  .header__logo {
    width: 100px;
    height: auto;
  }

  .article {
    max-width: 100%;
    padding: 0 16px;
  }

  .article__h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .article__subtitle {
    font-size: 17px;
    line-height: 26px;
  }

  .article__h2 {
    font-size: 20px;
    line-height: 26px;
  }

  .article__h3 {
    font-size: 18px;
    line-height: 24px;
  }

  .article__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .author-bio {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .author-bio__avatar {
    margin-left: 0;
    width: 56px;
    height: 56px;
    border-radius: 28px;
  }

  .author-bio__content {
    padding-right: 0;
  }

  .giveaway-box {
    min-height: 200px;
  }

  .footer__inner {
    padding: 24px 16px;
  }

  .footer__details {
    flex-direction: column;
    gap: 32px;
  }

  .footer__company {
    width: 100%;
  }

  .footer__newsletter {
    width: 100%;
  }

  .footer__newsletter-btn {
    padding: 11px 20px;
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__legal-links {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .from-author__inner {
    padding: 20px 16px;
  }

  .accordion__title {
    font-size: 18px;
    line-height: 26px;
  }
}
