/* =========================================================================
   ThriftSmith: base tokens and landing page styles.
   Palette mirrors the app (Assets.xcassets/ColorSetRed) and its App Store
   screenshots: beige page, off-black ink, teal accent, orange highlight.
   Display font is the app's Lora.
   ========================================================================= */

@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F1E3CD;                          /* BrandBeige */
  --surface: rgba(241, 227, 205, 0.88);
  --surface-strong: #E8D6BA;
  --card: #FDFFFD;                        /* BrandOffWhite */
  --ink: #222224;                         /* BrandOffBlack */
  --ink-70: rgba(34, 34, 36, 0.76);
  --ink-50: rgba(34, 34, 36, 0.6);
  --ink-35: rgba(34, 34, 36, 0.48);
  --accent: #146868;                      /* BrandAccent (teal) */
  --highlight: #BF4C27;                   /* BrandOrange */
  --line: rgba(20, 104, 104, 0.14);
  --line-strong: rgba(20, 104, 104, 0.26);
  --frost: rgba(253, 255, 253, 0.7);
  --frost-strong: #FDFFFD;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.25, 0.8, 0.35, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); }

/* The icon tile sits on the beige page: outline it so the tile reads. */
.legal-brand img {
  box-shadow: 0 0 0 1px var(--line-strong), 0 2px 6px rgba(34, 34, 36, 0.14);
}

/* ------------------------------ Landing ------------------------------- */
/* landing main: fill viewport height so the footer pins to the bottom */
.page-main { flex: 1 0 auto; }

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 28px;
  text-align: center;
}
.hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(20, 104, 104, 0.2);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.08;
  margin: 28px 0 14px;
  color: var(--accent);
  text-wrap: balance;
}
.hero h1 .hl { color: var(--highlight); }
.hero .tagline {
  max-width: 560px;
  text-wrap: pretty;
  margin: 0 auto 22px;
  color: var(--ink-70);
  font-size: 18px;
}

/* Apple's official badge, unmodified: no hover transform, clear space kept. */
.store-badge {
  display: inline-block;
  margin: 14px;
  line-height: 0;
}
.store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

/* Screenshot strip: scrolls sideways on narrow screens, centers when it fits. */
.screens {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 24px 28px;
  -webkit-overflow-scrolling: touch;
}
.screen {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
}
.screen img {
  display: block;
  width: 220px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(34, 34, 36, 0.16);
}
@media (min-width: 760px) {
  .screens { justify-content: center; overflow: visible; }
}

.features {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
}
.feature h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
}
.feature p {
  margin: 0;
  text-wrap: pretty;
  font-size: 15px;
  color: var(--ink-70);
}

.honest-note {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px 72px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-50);
}
