@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/public/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/public/fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/public/fonts/SourceSans3-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/public/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #F4F0E8;
  --surface: #FFFDF8;
  --surface-warm: #FAF6EF;
  --text: #211E19;
  --text-muted: #6E6960;
  --primary: #C65D3A;
  --primary-deep: #9F3F25;
  --secondary: #6F7C4B;
  --tertiary: #F2A65A;
  --border: #DDD5C8;
  --danger-soft: #F8E7E0;
  --shadow-soft: 0 18px 42px rgba(33, 30, 25, 0.10);
  --shadow-strong: 0 28px 70px rgba(33, 30, 25, 0.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(250, 246, 239, 0.88), rgba(244, 240, 232, 0.98)),
    var(--background);
  color: var(--text);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(221, 213, 200, 0.84);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark,
.footer-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(198, 93, 58, 0.16);
}

.brand-name,
.footer-name,
h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-name {
  color: var(--text);
  font-size: 1.35rem;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.98rem;
  font-weight: 600;
}

.nav-link,
.footer-links a,
.secondary-link {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-link:hover,
.footer-links a:hover,
.secondary-link:hover {
  color: var(--primary-deep);
}

.hero {
  padding: 74px 0 80px;
  background:
    linear-gradient(145deg, rgba(198, 93, 58, 0.18), transparent 38%),
    linear-gradient(330deg, rgba(111, 124, 75, 0.18), transparent 38%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 6.4rem;
  line-height: 0.92;
}

.hero-description {
  max-width: 640px;
  margin-bottom: 28px;
  color: #3A352E;
  font-size: 1.42rem;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-bottom: 14px;
}

.app-store-button {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
}

.app-store-button img {
  height: 56px;
  width: auto;
}

.app-store-button.large img {
  height: 64px;
}

.secondary-link {
  font-weight: 600;
}

.supporting-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-visual {
  display: grid;
  justify-items: center;
}

.phone-frame {
  width: min(356px, 82vw);
  border-radius: 46px;
  padding: 13px;
  background: #211E19;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.phone-screen {
  aspect-ratio: 1170 / 2532;
  overflow: hidden;
  border-radius: 34px;
  background: var(--background);
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-step,
.feature-row,
.download-panel,
.legal-document {
  border: 1px solid rgba(221, 213, 200, 0.92);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-soft);
}

.process-section,
.features-section,
.download-section {
  padding: 78px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2,
.feature-copy h2,
.download-panel h2 {
  margin-bottom: 14px;
  font-size: 4rem;
  line-height: 0.98;
}

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

.process-step {
  min-height: 256px;
  border-radius: 24px;
  padding: 24px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--primary);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9rem;
}

.process-step h3,
.feature-row h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.process-step p,
.feature-row p,
.feature-copy p,
.download-panel p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.features-section {
  background:
    linear-gradient(180deg, rgba(33, 30, 25, 0.04), rgba(33, 30, 25, 0.00)),
    var(--surface-warm);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.feature-copy {
  position: sticky;
  top: 112px;
}

.inline-phone-frame {
  width: min(245px, 100%);
  margin-top: 28px;
  border-radius: 34px;
  padding: 9px;
  background: #211E19;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.5deg);
}

.inline-phone-frame .app-screenshot {
  aspect-ratio: 1170 / 2532;
  border-radius: 26px;
  background: var(--background);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  border-radius: 20px;
  padding: 20px;
}

.feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(198, 93, 58, 0.14);
  color: var(--primary-deep);
  font-weight: 700;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 28px;
  padding: clamp(24px, 5vw, 42px);
}

.download-panel > div {
  max-width: 660px;
}

.site-footer {
  padding: 42px 0 26px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-name {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.footer-note,
.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 24px;
}

.legal-main {
  padding: 64px 0 80px;
}

.legal-document {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 28px;
  padding: clamp(24px, 5vw, 48px);
}

.legal-document h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: 4.8rem;
  line-height: 0.98;
}

.updated-date {
  margin-bottom: 34px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86rem;
}

.legal-document section {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-document section + section {
  margin-top: 24px;
}

.legal-document h2 {
  margin-bottom: 10px;
  color: var(--primary-deep);
  font-size: 1.45rem;
  line-height: 1.15;
}

.legal-document p,
.legal-document li {
  color: #3A352E;
}

.legal-document a {
  color: var(--primary-deep);
  font-weight: 600;
}

.legal-document ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.legal-document li + li {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .navigation {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 48px;
  }

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

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 9ch;
    font-size: 4.8rem;
  }

  .hero-description {
    font-size: 1.28rem;
  }

  .section-heading h2,
  .feature-copy h2,
  .download-panel h2 {
    font-size: 3.15rem;
  }

  .legal-document h1 {
    font-size: 3.55rem;
  }

  .feature-copy {
    position: static;
  }

  .download-panel,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand-mark,
  .footer-mark {
    width: 38px;
    height: 38px;
  }

  .navigation {
    font-size: 0.93rem;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero-grid {
    gap: 36px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-description {
    font-size: 1.18rem;
  }

  .section-heading h2,
  .feature-copy h2,
  .download-panel h2 {
    font-size: 2.55rem;
  }

  .legal-document h1 {
    font-size: 2.7rem;
  }

  .app-store-button img,
  .app-store-button.large img {
    height: 50px;
  }

  .phone-frame {
    width: min(336px, 94vw);
    border-radius: 38px;
    padding: 10px;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .process-section,
  .features-section,
  .download-section,
  .legal-main {
    padding: 52px 0;
  }

  .process-step {
    min-height: 0;
  }
}
