:root {
  --cream: #f9f7f2;
  --card: #f3eee5;
  --terracotta: #c4562c;
  --terracotta-deep: #a8441f; /* darker shade so small link text meets AA contrast on cream */
  --teal: #45636d;
  --ink: #1e1b17;
  --muted: #6e5c50;
  --line: #e4dccf;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1120px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--terracotta-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--terracotta);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand:hover {
  color: var(--ink);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  background: var(--card);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  background: var(--card);
  color: var(--terracotta-deep);
  font-weight: 600;
}

.nav-desktop {
  display: block;
}

.nav-mobile {
  display: none;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  background: #fff;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile[open] summary {
  background: var(--card);
}

.nav-mobile .nav-links {
  position: absolute;
  right: 20px;
  top: 62px;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 12px 30px rgba(30, 27, 23, 0.1);
  z-index: 5;
}

@media (max-width: 640px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
}

/* Buttons */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.btn-store:hover {
  background: var(--terracotta-deep);
  color: #fff;
}

.btn-store svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Home: hero */
.hero {
  text-align: center;
  padding: 64px 0 40px;
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  margin: 0 auto 20px;
  box-shadow: 0 14px 34px rgba(196, 86, 44, 0.22);
}

.hero h1 {
  font-size: clamp(44px, 9vw, 72px);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tagline {
  margin: 12px 0 0;
  font-size: clamp(20px, 3.6vw, 26px);
  font-weight: 600;
  color: var(--teal);
}

.hero-lede {
  max-width: 560px;
  margin: 16px auto 28px;
  color: var(--muted);
  font-size: 18px;
}

/* Screenshots */
.shots {
  padding: 24px 0 64px;
}

.shots-row {
  list-style: none;
  margin: 0;
  padding: 0 20px 12px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots-row li {
  flex: 0 0 auto;
  width: min(72vw, 300px);
  scroll-snap-align: center;
}

.shots-row img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(30, 27, 23, 0.08);
}

@media (min-width: 1000px) {
  .shots-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    overflow: visible;
    max-width: var(--max);
    margin: 0 auto;
  }
  .shots-row li {
    width: auto;
  }
}

/* Features */
.section-title {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.features {
  padding: 16px 0 64px;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-bottom: 16px;
}

.feature:nth-child(even) .feature-dot {
  background: var(--teal);
}

/* Closing CTA */
.closing {
  padding: 0 0 80px;
}

.closing-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.closing-card h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
  font-weight: 700;
}

.closing-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Inner pages */
.page {
  padding: 48px 0 80px;
}

.page .wrap {
  max-width: 780px;
}

.page h1 {
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.page h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 40px 0 12px;
  font-weight: 700;
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.contact-card .contact-line {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.contact-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  position: relative;
  border-radius: var(--radius-md);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 500;
  color: var(--terracotta-deep);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details[open] summary {
  padding-bottom: 6px;
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq .answer p {
  margin: 0;
}

.legal p,
.legal li {
  color: #3a332c;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.effective {
  color: var(--muted);
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer p {
  margin: 0;
}
