:root {
  --bg: #f5f1ec;
  --surface: #ffffff;
  --surface-elevated: #fcf8f3;
  --text: #2b1f1c;
  --text-secondary: #6e5b55;
  --tint: #8e1f2f;
  --tint-pressed: #741a26;
  --gold: #c8a96b;
  --soft: #c98c94;
  --border: #e7ded6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 28px 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tint);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
.brand .name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand .name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 40px 0 8px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tint);
  font-weight: 700;
  margin: 0 0 14px;
}
h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}
.lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 8px;
}

/* Sections */
main { padding: 8px 0 40px; }
section { margin: 34px 0; }
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.2px;
  margin: 0 0 8px;
}
h3 {
  font-size: 18px;
  margin: 22px 0 4px;
}
p { margin: 0 0 14px; color: var(--text); }
p.muted { color: var(--text-secondary); }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 20px; margin: 0 0 16px; }
li { margin: 6px 0; }
.updated { font-size: 14px; color: var(--text-secondary); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(43, 31, 28, 0.08);
  text-decoration: none;
}
.card .ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* Callout */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}
.pill {
  display: inline-block;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.btn {
  display: inline-block;
  background: var(--tint);
  color: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  margin-top: 6px;
}
.btn:hover { background: var(--tint-pressed); text-decoration: none; color: #fff; }

/* App Store badge */
.store-badge {
  display: inline-block;
  margin-top: 22px;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-badge:hover { transform: translateY(-1px); opacity: 0.9; text-decoration: none; }
.store-badge img { height: 56px; width: auto; display: block; }

/* Screenshot carousel */
.showcase {
  margin: 30px 0 8px;
  padding: 8px 0 4px;
}
.carousel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.car-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 2px 18px;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track img {
  flex: 0 0 auto;
  width: 232px;
  max-width: 62vw;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(43, 31, 28, 0.10);
  scroll-snap-align: center;
  background: var(--surface);
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(43, 31, 28, 0.12);
  z-index: 2;
  transition: transform 0.15s ease, background 0.15s ease;
}
.car-btn:hover { transform: translateY(-50%) scale(1.06); background: var(--surface-elevated); }
.car-btn.prev { left: 4px; }
.car-btn.next { right: 4px; }
@media (max-width: 620px) {
  .car-btn { display: none; }
  .car-track img { width: 250px; max-width: 74vw; }
}

/* CTA callout with badge */
.callout--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-elevated) 100%);
}
.callout--cta h2 { margin: 0 0 4px; }
.callout--cta .store-badge { margin-top: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 26px 0 50px;
  color: var(--text-secondary);
  font-size: 14px;
}
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer .links a { color: var(--text-secondary); font-weight: 600; }
