/* Quire marketing site. Minimal, modern, warm paper and red ink.
   One typeface (Plus Jakarta Sans), one accent, generous whitespace. */

:root {
  --bg: #f5f1e8;
  --surface: #fbf8f2;
  --ink: #23282e;
  --muted: #6b6256;
  --border: #e7e0d0;
  --accent: #e5242b;
  --accent-deep: #c81e24;
  --shadow: 0 1px 2px rgba(35, 40, 46, 0.04), 0 12px 32px rgba(35, 40, 46, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --wrap: 1080px;
  --pad: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Typography ------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.55;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand .name {
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons ---------------------------------------------------------------- */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cta-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cta-soon:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 40, 46, 0.18);
}

.cta-soon .glyph {
  width: 22px;
  height: 22px;
  background: #fff;
  -webkit-mask: var(--apple) center / contain no-repeat;
  mask: var(--apple) center / contain no-repeat;
}

:root {
  --apple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16.36 12.78c.03 2.86 2.5 3.81 2.53 3.82-.02.07-.4 1.36-1.3 2.69-.78 1.15-1.6 2.3-2.88 2.32-1.26.03-1.66-.74-3.1-.74-1.43 0-1.88.72-3.07.77-1.24.05-2.18-1.24-2.97-2.39-1.6-2.33-2.83-6.59-1.18-9.46.82-1.43 2.28-2.33 3.87-2.36 1.21-.02 2.35.81 3.1.81.74 0 2.13-1 3.59-.86.61.03 2.33.25 3.43 1.86-.09.06-2.05 1.2-2.02 3.57M14.03 5.2c.66-.8 1.1-1.91.98-3.02-.95.04-2.1.63-2.78 1.43-.61.71-1.14 1.84-1 2.93 1.06.08 2.14-.54 2.8-1.34'/%3E%3C/svg%3E");
}

.cta-soon .stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.cta-soon .small {
  font-size: 0.72rem;
  opacity: 0.75;
}

.cta-soon .big {
  font-size: 1.02rem;
  font-weight: 600;
}

.cta-toast {
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cta-toast.show {
  opacity: 1;
  transform: none;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-copy .lead {
  margin-bottom: 30px;
  max-width: 30ch;
}

/* Hero visual: the shrink card */

.hero-visual {
  display: flex;
  justify-content: center;
}

.shrink-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.shrink-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.file-block > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.file-block .dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent);
  opacity: 0.9;
}

.file-block .lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-block .lines i {
  height: 5px;
  border-radius: 3px;
  background: var(--border);
}

.file-block .lines i:nth-child(2) {
  width: 80%;
}
.file-block .lines i:nth-child(3) {
  width: 55%;
}

.file-block .size {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.file-big {
  transform-origin: center;
}

.file-small {
  max-width: 38%;
  padding: 14px 10px;
}

.file-small .size {
  color: var(--accent);
}

.shrink-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.shrink-arrow .pct {
  font-size: 0.82rem;
  font-weight: 700;
}

.shrink-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.shrink-meta .lock {
  color: var(--accent);
  flex-shrink: 0;
}

@keyframes squeeze {
  to {
    transform: scaleX(0.62);
    opacity: 0.92;
  }
}

/* Sections --------------------------------------------------------------- */

.section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto clamp(32px, 5vw, 52px);
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

/* Features grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #ddd3bf;
}

.card .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(229, 36, 43, 0.1);
  color: var(--accent);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Privacy band */

.band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}

.band .eyebrow {
  color: #ff8a86;
  margin-bottom: 16px;
}

.band h2 {
  margin-bottom: 16px;
  max-width: 18ch;
  margin-inline: auto;
}

.band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 56ch;
  margin: 0 auto;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step .num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Final CTA */

.final {
  text-align: center;
}

.final h2 {
  margin-bottom: 14px;
}

.final .cta-group {
  justify-content: center;
  margin-top: 22px;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40ch;
}

.footer-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
}

.footer-mail:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-cols h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-cols a {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 9px;
  transition: color 0.15s ease;
}

.footer-cols a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Legal pages ------------------------------------------------------------ */

.legal {
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 8vw, 88px);
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
  transition: color 0.15s ease;
}

.back:hover {
  color: var(--accent);
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.legal .intro {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 12px;
}

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

.legal a.inline {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
}

.placeholder {
  background: rgba(229, 36, 43, 0.12);
  color: var(--accent-deep);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 500;
}

/* Reveal animations ------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.05s;
}
.reveal.d2 {
  transition-delay: 0.12s;
}
.reveal.d3 {
  transition-delay: 0.19s;
}
.reveal.d4 {
  transition-delay: 0.26s;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--pad) 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 540px) {
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-copy .lead {
    max-width: none;
  }
}

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

  *,
  .file-big {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
