:root {
  --bg: #f8f7f2;
  --paper: #ffffff;
  --ink: #151616;
  --muted: #62675f;
  --line: #dcded7;
  --sage: #647051;
  --sage-dark: #3e4b34;
  --clay: #b66b45;
  --cream: #ede7dc;
  --footer: #202124;
  --shadow: 0 20px 54px rgba(37, 40, 34, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 222, 215, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav,
.store-buttons,
.footer,
.locale-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  font-weight: 600;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.topbar nav {
  gap: 24px;
  color: #22251f;
  font-size: 12px;
  font-weight: 700;
}

.topbar nav a {
  white-space: nowrap;
}

.topbar nav a,
.footer a {
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--sage-dark);
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--sage-dark);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: var(--sage-dark);
  font-size: 14px;
  font-weight: 850;
}

.locale-warning {
  padding: 10px 24px;
  text-align: center;
  background: #fff7dc;
  color: #7a5617;
  border-bottom: 1px solid #ead9a9;
}

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(420px, 1.22fr);
  align-items: stretch;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 50px 16px 50px clamp(42px, 7vw, 76px);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title-stack span {
  display: block;
}

.hero-title-brand {
  font-size: 1.06em;
  line-height: 0.94;
}

.hero-title-descriptor {
  margin-top: 8px;
  color: var(--sage-dark);
  font-size: 0.58em;
  line-height: 1.08;
}

.hero p,
.page-hero p {
  margin: 24px 0 0;
  max-width: 510px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.store-buttons {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  text-decoration: none;
  line-height: 0;
  filter: drop-shadow(0 16px 30px rgba(35, 38, 31, 0.16));
}

.store-button img {
  display: block;
  width: auto;
  max-width: 100%;
}

.app-store-badge img,
.play-store-badge img {
  height: 44px;
}

.header-store-buttons {
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
}

.header-store-buttons .store-button {
  filter: none;
}

.header-store-buttons .app-store-badge img,
.header-store-buttons .play-store-badge img {
  height: 31px;
}

.green-cta .app-store-badge img,
.green-cta .play-store-badge img,
.page-hero .app-store-badge img,
.page-hero .play-store-badge img {
  height: 48px;
}

.hero-showcase {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: #eee8dc;
}

.hero .store-buttons {
  flex-wrap: nowrap;
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  display: block;
  object-fit: cover;
  object-position: right center;
}

.before-label {
  position: absolute;
  top: 58px;
  z-index: 3;
  padding: 9px 14px;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.before-label {
  left: 13%;
  background: rgba(62, 64, 57, 0.9);
}

.section {
  padding: 58px clamp(22px, 5vw, 72px);
}

.center-heading {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.section h2,
.download-section h2 {
  margin: 0;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.section p,
.download-section p,
.detail-layout p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.workflow {
  background: var(--paper);
  padding-top: 42px;
  padding-bottom: 46px;
}

.workflow .center-heading {
  margin-bottom: 26px;
}

.workflow h2 {
  font-size: 32px;
}

.workflow .center-heading p {
  max-width: 790px;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.55;
}

.step-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 8vw, 150px);
  max-width: 1060px;
  margin: 0 auto;
}

.step-rail::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(100, 112, 81, 0.42) 0 8px, transparent 8px 16px);
}

.icon-step {
  position: relative;
  text-align: center;
}

.icon-step > span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  background: var(--sage);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 850;
}

.icon-step h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.25;
}

.icon-step p {
  max-width: 250px;
  margin: 0 auto;
  font-size: 14px;
}

.step-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 20px auto 0;
  color: #806b46;
  background: var(--cream);
  border-radius: 50%;
}

.step-icon svg,
.audience-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transformation-section {
  background: linear-gradient(180deg, #fbfaf6, #f6f4ef);
  border-top: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 22px;
}

.filter-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #33352f;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.filter-tabs a.active,
.filter-tabs a:hover {
  color: #fff;
  background: var(--sage);
}

.transformation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.transformation-card {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
}

.transformation-card img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #e9e2d6;
  box-shadow: 0 14px 34px rgba(37, 40, 34, 0.13);
}

.transformation-card strong {
  display: block;
  margin-top: 9px;
  font-size: 13px;
}

.transformation-card p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.style-section {
  background: var(--bg);
  padding-top: 44px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.style-card {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #eeece6;
  text-align: center;
}

.style-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.style-card strong {
  display: block;
  padding: 11px 8px 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.audience-section {
  background: #fbfaf6;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 8vw, 130px);
  max-width: 1040px;
  margin: 0 auto;
}

.audience-card {
  text-align: center;
  text-decoration: none;
}

.audience-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--sage-dark);
}

.audience-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
}

.audience-card p {
  margin: 0;
  font-size: 14px;
}

.download-section,
.page-hero {
  padding: 80px clamp(22px, 5vw, 72px);
  text-align: center;
}

.download-section .store-buttons,
.page-hero .store-buttons {
  justify-content: center;
}

.green-cta {
  margin: 0 clamp(22px, 5vw, 72px) 0;
  padding: 38px clamp(22px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(90deg, #667253, #4f5d43);
  border-radius: 8px 8px 0 0;
  text-align: left;
}

.green-cta h2,
.green-cta p {
  color: #fff;
}

.green-cta .store-buttons {
  justify-content: flex-start;
}

.page-hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--paper), var(--bg));
}

.back-link {
  margin-bottom: 18px;
  color: var(--sage-dark);
  text-decoration: none;
  font-weight: 850;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.36fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.detail-layout article {
  max-width: 780px;
}

.detail-layout article h2 {
  margin: 42px 0 0;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.detail-layout article h2:first-child {
  margin-top: 0;
}

.detail-layout aside {
  position: sticky;
  top: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(34, 38, 32, 0.08);
}

.detail-layout aside img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.detail-layout aside strong {
  display: block;
  margin-top: 16px;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr) minmax(260px, 1.2fr);
  align-items: start;
  gap: 32px;
  padding: 38px clamp(22px, 5vw, 72px) 26px;
  color: #d5d5d1;
  background: var(--footer);
}

.footer .brand {
  display: inline-flex;
  color: #fff;
}

.footer p {
  line-height: 1.65;
}

.footer a:hover {
  color: #fff;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column strong,
.locale-list strong {
  color: #fff;
  font-size: 13px;
}

.footer-column a {
  color: #d5d5d1;
  font-size: 13px;
}

.locale-list {
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.locale-list strong {
  flex-basis: 100%;
}

.locale-list a {
  padding: 6px 9px;
  color: #d5d5d1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
}

.locale-list a[aria-current="page"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  color: #aaa9a5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  text-align: center;
}

[dir="rtl"] .hero,
[dir="rtl"] .detail-layout {
  direction: rtl;
}

[dir="rtl"] .hero-copy {
  padding-right: clamp(42px, 7vw, 86px);
  padding-left: 16px;
}

[dir="rtl"] .green-cta {
  text-align: right;
}

[dir="rtl"] .green-cta .store-buttons {
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 60px;
  }

  .topbar nav,
  .header-store-buttons {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 50px 18px 32px;
  }

  [dir="rtl"] .hero-copy {
    padding: 50px 18px 32px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero .store-buttons {
    flex-wrap: wrap;
  }

  .hero p,
  .page-hero p {
    font-size: 18px;
  }

  .hero-showcase,
  .hero-showcase img {
    min-height: 340px;
  }

  .before-label {
    top: 24px;
  }

  .section,
  .download-section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section h2,
  .download-section h2 {
    font-size: 34px;
  }

  .step-rail,
  .transformation-grid,
  .style-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .step-rail::before {
    display: none;
  }

  .green-cta {
    margin: 0;
    border-radius: 0;
  }

  .green-cta .store-buttons {
    justify-content: center;
  }

  .store-button {
    width: auto;
  }

  .detail-layout aside {
    position: static;
  }

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