/* ===== BAGL marketing site ===== */
:root {
  --accent: #d4873c;          /* bagel amber (app AccentColor, light) */
  --accent-deep: #b96f27;
  --accent-tint: rgba(212, 135, 60, 0.12);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-warm: #faf6f0;
  --line: #ececec;
  --radius: 18px;
  --shadow-card: 0 10px 30px rgba(20, 16, 10, 0.06);
  --shadow-shot: 0 22px 55px rgba(20, 16, 10, 0.18);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

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

.section-title {
  text-align: center;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 24px clamp(34px, 5vw, 56px);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: clamp(70px, 12vw, 132px) 24px clamp(50px, 8vw, 92px);
  background:
    radial-gradient(115% 80% at 50% -8%, rgba(212, 135, 60, 0.18), rgba(212, 135, 60, 0) 60%),
    linear-gradient(180deg, #fffdfa, #ffffff);
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(140, 86, 30, 0.30);
  display: block;
  margin: 0 auto 28px;
}

.wordmark {
  font-size: clamp(52px, 11vw, 90px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1;
}

.tagline {
  font-size: clamp(20px, 4.4vw, 30px);
  color: var(--accent-deep);
  font-weight: 600;
  margin: 14px 0 0;
}

.lede {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(212, 135, 60, 0.38);
}

/* ===== Features ===== */
.features {
  padding: clamp(60px, 9vw, 104px) 24px;
}

.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.feature .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature .icon svg { width: 25px; height: 25px; }

.feature h3 {
  margin: 0 0 9px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ===== Screenshots ===== */
.showcase {
  padding: clamp(60px, 9vw, 104px) 0 clamp(40px, 6vw, 64px);
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.screens {
  display: flex;
  gap: 30px;
  padding: 6px clamp(24px, 6vw, 64px) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }

.screen {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.screen img {
  height: 540px;
  width: auto;
  display: block;
  border-radius: 32px;
  box-shadow: var(--shadow-shot);
  background: #fff;
}

.screen img.ipad { border-radius: 22px; }

.screen figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.swipe-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .screen img { height: 460px; }
}
@media (min-width: 1560px) {
  /* All five shots fit — center the gallery and hide the swipe hint. */
  .screens { justify-content: center; }
  .swipe-hint { display: none; }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 58px 24px 66px;
}

.footer-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.footer-word {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 14px 0 2px;
}

.footer-tag {
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0;
}

.footer-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 0;
}

.footer-links {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: var(--accent-deep); }

/* ===== Document pages (e.g. Privacy) ===== */
.doc-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.doc-home {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.doc-home img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 56px;
}
.doc h1 {
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 22px 0 6px;
}
.doc-updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 26px;
}
.doc h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
.doc h3 {
  font-size: 17.5px;
  letter-spacing: -0.005em;
  margin: 28px 0 4px;
}
.doc p,
.doc li {
  color: #34343b;
  font-size: 16.5px;
}
.doc ul {
  padding-left: 22px;
  margin: 12px 0;
}
.doc li { margin: 7px 0; }
.doc a { color: var(--accent-deep); }
.doc strong { color: var(--ink); }
.doc .summary {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 24px;
  margin: 24px 0;
}

/* ===== Contact form ===== */
.contact-form {
  margin: 28px 0 8px;
}

.field {
  margin: 0 0 20px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 8px;
}

.field .req { color: var(--accent-deep); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder { color: #a9a9ae; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.form-hint {
  color: var(--muted);
  font-size: 13.5px;
  margin: 7px 0 0;
}

/* Honeypot — visually hidden, kept in the accessibility tree off-screen */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-button {
  display: inline-block;
  margin-top: 6px;
  padding: 13px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(212, 135, 60, 0.38);
  transition: background 0.15s ease;
}
.form-button:hover { background: var(--accent-deep); }
.form-button:focus-visible {
  outline: 3px solid var(--accent-tint);
  outline-offset: 2px;
}

/* ===== 404 ===== */
.nf-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(212, 135, 60, 0.16), rgba(212, 135, 60, 0) 60%),
    linear-gradient(180deg, #fffdfa, #ffffff);
}
.nf { max-width: 560px; }

.nf-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.nf-4 {
  font-size: clamp(108px, 26vw, 196px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.nf-bagel {
  width: clamp(104px, 24vw, 184px);
  height: clamp(104px, 24vw, 184px);
  margin: 0 clamp(-16px, -1.4vw, -7px);
  filter: drop-shadow(0 14px 22px rgba(140, 86, 30, 0.26));
}

.nf-title {
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
}
.nf-text {
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 19px);
  margin: 14px auto 0;
  max-width: 470px;
}

.nf-card {
  margin: 34px auto 0;
  max-width: 330px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  text-align: left;
}
.nf-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.nf-store-dot {
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
}
.nf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nf-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  font-size: 16px;
  border-bottom: 1px solid #f4f1ec;
}
.nf-list li:last-child { border-bottom: 0; }
.nf-list .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: 0 0 auto;
}
.nf-list .done { color: var(--muted); }
.nf-list .done .check { background: var(--accent); color: #fff; }
.nf-list .done .label { text-decoration: line-through; }
.nf-list .missing { color: var(--ink); font-weight: 600; }
.nf-list .missing .check { border: 2px solid #d9d9d9; }
.nf-tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 3px 10px;
  border-radius: 999px;
}

.nf-button {
  display: inline-block;
  margin-top: 34px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(212, 135, 60, 0.38);
}
.nf-button:hover { background: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
