:root {
  --bg: #faf7f2;
  --bg-alt: #f3ede3;
  --surface: #ffffff;
  --ink: #1c2f55;
  --ink-soft: #46597d;
  --accent: #b9803a;
  --accent-soft: #ead8bd;
  --line: #e4dccf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 20;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: min(100% - 2.5rem, 64rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 42rem); }

/* Header / navigation */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(100% - 2.5rem, 64rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.75rem; gap: 1rem;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  text-decoration: none; letter-spacing: .01em;
}
.nav-links { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }

/* Hero */
.hero {
  text-align: center;
  padding: clamp(4rem, 12vw, 7.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(234, 216, 189, .55), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.staff {
  display: block; width: min(100%, 22rem); height: 2.25rem; margin: 0 auto 2rem;
  color: var(--accent); opacity: .5;
}
.app-icon {
  display: block; width: clamp(5.5rem, 16vw, 7.5rem); height: auto; margin: -.5rem auto 1.5rem;
  border-radius: 22.5%;
  box-shadow: 0 10px 28px -10px rgba(28, 47, 85, .35), 0 0 0 1px rgba(28, 47, 85, .06);
}
.eyebrow {
  margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; font-weight: 600; color: var(--accent);
}
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.6rem, 8vw, 4.25rem); letter-spacing: -.01em; }
.subtitle {
  margin: 1rem auto 0; max-width: 32rem;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--ink-soft);
}

/* Sections */
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.7rem, 4vw, 2.1rem); margin-bottom: 1.5rem; }
h2::after {
  content: ""; display: block; width: 2.5rem; height: 3px; margin-top: .75rem;
  background: var(--accent); border-radius: 2px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }

/* Screenshots */
#screenshots { border-top: 1px solid var(--line); }
#screenshots h2 { text-align: center; }
#screenshots h2::after { margin-inline: auto; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 15rem));
  justify-content: center; gap: clamp(1.25rem, 4vw, 2.25rem);
}
.phone {
  background: var(--ink); padding: .55rem; border-radius: 2.4rem;
  box-shadow: 0 18px 40px -18px rgba(28, 47, 85, .55), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.phone img {
  display: block; width: 100%; height: auto; border-radius: 1.9rem;
}

/* Support tips */
.tips { list-style: none; counter-reset: tip; margin: 0; padding: 0; display: grid; gap: .85rem; }
.tips li {
  counter-increment: tip;
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem;
}
.tips li::before {
  content: counter(tip);
  flex: none; display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; margin-top: -.05rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--ink);
  font-family: var(--serif); font-weight: 600; font-size: .95rem;
}

/* Contact */
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 1.5rem 1.5rem;
}
.contact-card p { margin: 0; }
.email { margin-top: .5rem !important; font-weight: 600; font-size: 1.15rem; word-break: break-all; }

/* Privacy */
.policy { margin: 0; padding: 0; list-style: none; }
.policy li {
  position: relative; padding: .8rem 0 .8rem 1.75rem;
  border-bottom: 1px solid var(--line);
}
.policy li:last-child { border-bottom: 0; }
.policy li::before {
  content: ""; position: absolute; left: .2rem; top: 1.45rem;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
}

/* Footer */
.site-footer { padding: 2.5rem 0; text-align: center; color: var(--ink-soft); font-size: .92rem; }
.site-footer nav { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: .75rem; }
.site-footer nav a { font-weight: 500; }
.site-footer p { margin: 0; }

@media (max-width: 30rem) {
  .brand { font-size: 1.05rem; }
  .nav-links a { padding: .35rem .6rem; }
  .tips li { padding: .9rem 1rem; }
}
