/* ===== Printy "Coming Soon" landing — design tokens ===== */
:root {
  --berry: #6f0135;
  --berry-dark: #4a0124;
  --slate: #64748b;
  --muted: #94a3b8;
  --ink: #1e1b2e;
  --card: #ffffff;
  --radius-card: 36px;
  --shadow-pill: 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 30px 80px rgba(66, 82, 152, 0.16);
  --font-ui: 'Assistant', system-ui, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Assistant', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Page fills the viewport; CTA pill anchors to the corner ===== */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vh, 28px);
  padding: clamp(72px, 10vh, 96px) clamp(20px, 5vw, 64px) clamp(20px, 4vh, 40px);
  overflow: hidden;
}

/* ===== Business-owner CTA pill (top corner) ===== */
.biz-cta {
  position: absolute;
  top: clamp(18px, 3vh, 28px);
  left: clamp(18px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
  background: var(--berry);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(13px, 1.6vh, 15px);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  transition: background 0.15s ease, transform 0.15s ease;
}

.biz-cta:hover {
  background: var(--berry-dark);
  transform: translateY(-1px);
}

.biz-cta__arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* ===== Two-column layout: phone (left) + text (right) ===== */
.layout {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 7vw, 96px);
  width: 100%;
  max-width: 1040px;
}

/* ===== iPhone mockup (CSS frame, slight tilt) ===== */
.phone {
  position: relative;
  flex: none;
  aspect-ratio: 250 / 520;
  height: min(560px, 72vh);
  background: #18181d;
  border-radius: 48px;
  padding: 11px;
  transform: rotate(-4deg);
  box-shadow:
    0 0 0 2px #2c2c34 inset,
    0 1px 2px rgba(255, 255, 255, 0.18) inset,
    0 30px 70px rgba(30, 27, 46, 0.28),
    0 12px 26px rgba(74, 1, 36, 0.16);
}

.phone__screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #ffffff;
  border-radius: 38px;
  display: block;
}

/* ===== Right-hand text column (centered) ===== */
.content {
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
}

.logo {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: clamp(16px, 3vh, 28px);
}

.logo__mark {
  width: clamp(56px, 8vh, 76px);
  height: clamp(56px, 8vh, 76px);
  border-radius: 22px;
  display: block;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  color: var(--berry);
  letter-spacing: -0.02em;
}

.coming-soon {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: var(--berry);
  letter-spacing: 0.01em;
  text-align: center;
  margin: 0 0 clamp(14px, 2.6vh, 24px);
}

.tagline {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 28px;
  color: var(--berry);
  text-align: center;
  margin: 0 0 10px;
}

.subtext {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

/* ===== Footer (privacy link + copyright) ===== */
.footer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  direction: rtl;
  margin-top: auto;
}

.footer__copy {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.privacy-link {
  flex: none;
  color: var(--berry);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* ===== Privacy policy (document) page ===== */
.page--doc {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: flex-start;
  align-items: center;
  overflow: visible;
  padding: clamp(20px, 5vh, 56px) clamp(16px, 4vw, 24px);
}

.card--doc {
  max-width: 720px;
  max-height: none;
  align-items: stretch;
  padding: clamp(28px, 4vh, 44px) clamp(24px, 5vw, 52px);
  direction: rtl;
}

.policy {
  text-align: right;
  color: var(--ink);
}

.policy h1 {
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 28px);
  color: var(--berry);
  margin: 8px 0 18px;
  text-align: center;
}

.policy h2 {
  font-weight: 700;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--berry);
  margin: 26px 0 8px;
}

.policy p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0 0 12px;
}

.policy ul {
  margin: 0 0 12px;
  padding-inline-start: 22px;
}

.policy li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 6px;
}

.policy a {
  color: var(--berry);
  font-weight: 600;
}

.card--doc .privacy-link {
  display: block;
  margin-top: 28px;
}

/* ===== Mobile: stack as text → button → phone, allow scrolling ===== */
@media (max-width: 820px) {
  .page {
    min-height: 100vh;
    padding: 28px 20px;
    overflow: visible;
    gap: 28px;
  }

  /* Flatten the layout so the CTA can sit between the text and the phone */
  .layout {
    display: contents;
  }

  /* Stacking order: text, then CTA, then phone, then footer */
  .content {
    order: 1;
    align-items: center;
    text-align: center;
    max-width: 440px;
  }

  .biz-cta {
    position: static;
    order: 2;
    top: auto;
    left: auto;
    transform: none;
  }

  .biz-cta:hover {
    transform: translateY(-1px);
  }

  .phone {
    order: 3;
    height: min(520px, 70vh);
    transform: rotate(-3deg);
  }

  .footer {
    order: 4;
  }

  .logo {
    justify-content: center;
  }

  .coming-soon,
  .tagline,
  .subtext {
    text-align: center;
  }

  .subtext {
    white-space: normal;
  }
}
