/* ============ Foyer — marketing site ============ */

:root {
  --page: #FDF5EC;
  --card: #F6E9D3;
  --card-deep: #F2E2C8;
  --panel: #FDF7EC;
  --terracotta: #C0543A;
  --terracotta-dark: #A94729;
  --ochre: #D99A2B;
  --ink: #4A3423;
  --ink-soft: #6E5334;
  --body-text: #7A6248;
  --line: rgba(122, 92, 58, 0.16);
  --green: #4C7A4C;
  --radius-lg: 26px;
  --radius-md: 14px;
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--body-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: #FDF6EB;
}
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline {
  border: 1.5px solid rgba(192, 84, 58, 0.55);
  color: var(--terracotta);
  background: transparent;
}
.btn-outline:hover { border-color: var(--terracotta); background: rgba(192, 84, 58, 0.06); }
.btn-header { padding: 11px 22px; font-size: 14.5px; }

/* ---------- Language toggle ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1.5px solid rgba(122, 92, 58, 0.22);
  border-radius: 10px;
  background: rgba(253, 247, 236, 0.7);
}
.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease;
}
.lang-btn:hover { color: var(--terracotta); }
.lang-btn.is-active {
  background: var(--terracotta);
  color: #FDF6EB;
}
.lang-btn.is-active:hover { color: #FDF6EB; }

/* ---------- Header ---------- */
.site-header {
  padding: 26px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-emblem { width: 36px; height: 44px; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: #3E2C1C;
  letter-spacing: 0.2px;
}
.main-nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 8px;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 450;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--terracotta); }

/* ---------- Hero ---------- */
.hero { padding: 46px 0 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
}
.hero-copy {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  z-index: 2;
  max-width: 560px;
  width: 100%;
}
.hero-art {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  z-index: 1;
  width: 74%;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 54px);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art img { width: 100%; height: auto; display: block; }

/* ---------- Value props ---------- */
.values { padding: 0 0 20px; }
.values-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 46px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.value {
  padding: 0 30px;
  position: relative;
}
.value + .value::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.value-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(110, 74, 39, 0.08);
}
.value-icon svg { width: 26px; height: 26px; }
.value h3 {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 600;
  color: #4A3220;
  margin-bottom: 10px;
}
.value p { font-size: 14px; line-height: 1.65; }

/* ---------- Privacy section ---------- */
.privacy { padding: 90px 0 70px; }
.privacy-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.privacy h2 {
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 18ch;
}
.privacy-intro { font-size: 15.5px; line-height: 1.7; max-width: 52ch; margin-bottom: 34px; }
.privacy-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.privacy-list li { display: flex; gap: 16px; align-items: flex-start; }
.privacy-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(110, 74, 39, 0.08);
}
.privacy-icon svg { width: 19px; height: 19px; }
.privacy-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #4A3220;
  margin-bottom: 3px;
}
.privacy-list span { font-size: 13.5px; line-height: 1.55; }

.privacy-diagram { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.flow-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 28px 26px;
  width: 100%;
  box-shadow: 0 24px 50px -22px rgba(110, 70, 35, 0.22);
}
.flow-step { display: flex; align-items: center; gap: 14px; }
.flow-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--card);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon svg { width: 20px; height: 20px; }
.flow-step--highlight .flow-icon { background: var(--terracotta); color: #FDF6EB; }
.flow-text { display: flex; flex-direction: column; gap: 2px; }
.flow-text strong { font-size: 14px; font-weight: 600; color: #4A3220; }
.flow-text span { font-size: 12px; color: var(--body-text); }
.flow-connector {
  width: 1px;
  height: 22px;
  margin-left: 21px;
  border-left: 2px dashed var(--line);
}
.flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
}
.flow-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Scenarios section ---------- */
.scenarios { padding: 90px 0 70px; }
.scenarios-inner {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 56px;
  align-items: center;
}
.scenarios h2 {
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.18;
  margin-bottom: 30px;
}
.life-questions {
  list-style: none;
  margin-bottom: 26px;
}
.life-questions li {
  font-size: 15.5px;
  color: var(--ink-soft);
  padding: 5px 0;
}
.scenarios-note { font-size: 15.5px; max-width: 40ch; }

/* ---------- App window mockup ---------- */
.app-window {
  background: var(--panel);
  border-radius: 18px;
  box-shadow:
    0 30px 60px -20px rgba(110, 70, 35, 0.25),
    0 4px 14px rgba(110, 70, 35, 0.08);
  display: grid;
  grid-template-columns: 168px 1fr;
  overflow: hidden;
  font-size: 12px;
}
.app-sidebar {
  background: #FAF1E0;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px 16px;
}
.app-brand img { width: 16px; height: 20px; }
.app-brand span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: #3E2C1C;
}
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #8A7358;
  font-size: 11.5px;
  font-weight: 450;
}
.app-nav-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.app-nav-item.active {
  background: #EFDFC4;
  color: #5C4326;
  font-weight: 600;
}
.app-main { padding: 18px 22px 20px; }
.app-topbar { margin-bottom: 4px; }
.app-crumb { font-size: 11px; color: #A08A6C; }
.app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.app-title-row h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.app-btn-edit {
  font-size: 11px;
  font-weight: 500;
  color: var(--terracotta);
  border: 1px solid rgba(192, 84, 58, 0.4);
  border-radius: 7px;
  padding: 4px 12px;
}
.app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.stat {
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label { font-size: 9.5px; color: #A08A6C; line-height: 1.35; }
.stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.stat-tag {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  color: var(--green);
}
.app-chart-card {
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.chart-title { font-size: 11px; font-weight: 500; color: #6E5334; }
.chart-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
.chart-plot {
  position: relative;
  padding: 0 0 16px 34px;
}
.chart-plot svg {
  width: 100%;
  height: 150px;
  display: block;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chart-ylabels {
  position: absolute;
  left: 0; top: -4px; bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 8.5px;
  color: #B09A7C;
  text-align: right;
  width: 28px;
}
.chart-xlabels {
  position: absolute;
  left: 34px; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #B09A7C;
}
.chart-legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: #8A7358;
  padding-right: 4px;
}
.chart-legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.app-callout {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #F6EDDA;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 11.5px;
  font-weight: 500;
  color: #55503B;
}
.callout-check svg { width: 15px; height: 15px; display: block; }

/* ---------- Asset classes ---------- */
.assets-section { padding: 40px 0 80px; text-align: center; }
.assets-title {
  font-size: clamp(26px, 2.8vw, 32px);
  margin-bottom: 10px;
}
.assets-sub { font-size: 15px; margin-bottom: 36px; }
.assets-band {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 38px 24px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.asset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 4px 6px;
}
.asset + .asset::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line);
}
.asset img { width: 74px; height: 74px; object-fit: contain; }
.asset span { font-size: 13.5px; font-weight: 500; color: #4A3220; }

/* ---------- Closing CTA ---------- */
.closing {
  background: #F4E4CC;
  padding: 84px 0;
}
.closing-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.closing h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.2;
  margin-bottom: 20px;
}
.closing-copy p {
  font-size: 15.5px;
  max-width: 42ch;
  margin-bottom: 30px;
}
.closing-note {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--body-text);
}
.closing-quote {
  background: var(--panel);
  border-radius: 20px;
  padding: 34px 32px 30px;
  box-shadow: 0 18px 40px -18px rgba(110, 70, 35, 0.22);
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: 0.6;
  color: var(--ochre);
  display: block;
  margin-bottom: 14px;
}
.closing-quote blockquote {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.closing-quote figcaption {
  font-size: 14px;
  font-weight: 500;
  color: var(--terracotta);
}
.closing-photo img {
  border-radius: 20px;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--page);
  padding: 26px 0;
  border-top: 1px solid rgba(122, 92, 58, 0.1);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-emblem { width: 26px; height: 32px; }
.footer-tagline { font-size: 13.5px; color: #9A8365; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--terracotta); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .privacy-inner { grid-template-columns: 1fr; gap: 48px; }
  .privacy h2 { max-width: none; }
  .privacy-diagram { max-width: 460px; margin: 0 auto; }
  .scenarios-inner { grid-template-columns: 1fr; gap: 48px; }
  .closing-inner { grid-template-columns: 1fr 1fr; }
  .closing-copy { grid-column: 1 / -1; }
  .assets-band { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .asset:nth-child(5)::before { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { row-gap: 36px; }
  .hero-copy { grid-row: 1; max-width: none; }
  .hero-art {
    grid-row: 2;
    justify-self: center;
    align-self: auto;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }
  .values-card { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .value:nth-child(3)::before { display: none; }
  .main-nav { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .values-card { grid-template-columns: 1fr; padding: 36px 10px; }
  .value + .value::before { display: none; }
  .assets-band { grid-template-columns: 1fr 1fr; }
  .asset::before { display: none !important; }
  .closing-inner { grid-template-columns: 1fr; }
  .app-window { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-stats { grid-template-columns: 1fr 1fr; }
  .chart-body { grid-template-columns: 1fr; }
  .chart-legend { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .btn-header { display: none; }
}
