/* TidyPath site styles */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #F5F2FA;
  --ink: #2E2640;
  --ink-deep: #2E2650;
  --body: #5C5470;
  --body-lumi: #4A4366;
  --muted: #6A6280;
  --accent: #6F6399;
  --accent-ink: #5E5288;
  --line: #CFC6E6;
  --lavender: #E6DFF3;
  --lavender-soft: #F7F4FC;
  --card-image-bg: #ECE7F6;
  --warm-ink: #3A3030;
  --warm-body: #5A4E48;
  --white: #FFFFFF;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(46, 38, 64, 0.07);
}

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

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }
a:hover { color: var(--accent); }

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

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--white); padding: 10px 16px; border-radius: 12px; z-index: 10;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding: 28px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 20px; text-decoration: none; color: var(--ink);
}
.brand img {
  width: 36px; height: 36px; border-radius: 10px;
}
.site-nav { display: flex; gap: 24px; font-size: 16px; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }

/* Buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #5E5288; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--ink); }

.note-strong { font-size: 15px; font-weight: 500; color: var(--body-lumi); }
.note { font-size: 14px; color: var(--muted); }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding: 56px 0 96px;
}
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 50px); line-height: 1.16; font-weight: 600;
  letter-spacing: -0.01em; max-width: 19ch;
}
.hero-sub { font-size: clamp(18px, 2.2vw, 20px); line-height: 1.55; max-width: 34ch; color: var(--body); }
.hero .store-buttons { padding-top: 8px; }
.hero-notes { display: flex; flex-direction: column; gap: 6px; }

.hero-visual { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.phone {
  width: 290px; max-width: 100%; aspect-ratio: 290 / 600;
  border: 10px solid var(--ink); border-radius: 48px; overflow: hidden;
  background: var(--lavender); box-shadow: 0 30px 60px rgba(46, 38, 64, 0.18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }

/* Freeze story */
.freeze {
  padding: 140px 24px;
  background: linear-gradient(to bottom,
    rgba(251, 243, 234, 0) 0%, rgba(251, 243, 234, 0.85) 30%,
    rgba(251, 243, 234, 0.85) 70%, rgba(251, 243, 234, 0) 100%);
}
.freeze-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.freeze h2 {
  font-size: clamp(28px, 3.6vw, 36px); line-height: 1.22; font-weight: 600;
  letter-spacing: -0.01em; color: var(--warm-ink);
}
.thread { position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 22px; }
.thread::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 34px; width: 2px;
  background: linear-gradient(to bottom, rgba(111, 99, 153, 0.05), rgba(111, 99, 153, 0.45));
}
.thread p { font-size: clamp(18px, 2.2vw, 20px); line-height: 1.7; color: var(--warm-body); }
.thread .turn { position: relative; }
.thread .turn p { font-size: clamp(19px, 2.3vw, 21px); line-height: 1.6; color: var(--accent-ink); font-weight: 600; }
.thread .turn .sparkle { position: absolute; left: -40px; top: 0; }

/* Sparkle */
.sparkle { position: relative; width: 30px; height: 30px; display: inline-block; }
.sparkle .big { position: absolute; left: 0; top: 4px; }
.sparkle .small { position: absolute; left: 20px; top: 0; }
.spark-anim { animation: tpTwinkle 2.8s ease-in-out infinite; transform-origin: 50% 50%; }
.spark-anim-small { animation: tpTwinkleSmall 2.8s ease-in-out infinite 0.9s; transform-origin: 50% 50%; }
@keyframes tpTwinkle {
  0%, 100% { transform: scale(0.9) rotate(0deg); filter: drop-shadow(0 0 2px rgba(245, 201, 83, 0.55)); }
  50% { transform: scale(1.1) rotate(10deg); filter: drop-shadow(0 0 8px rgba(245, 201, 83, 0.95)); }
}
@keyframes tpTwinkleSmall {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .spark-anim, .spark-anim-small { animation: none; }
}

/* Made for the days */
.days { padding: 104px 0 56px; }
.days-inner { display: flex; flex-direction: column; gap: 48px; }
.days h2 {
  font-size: clamp(28px, 3.6vw, 36px); line-height: 1.22; font-weight: 600;
  letter-spacing: -0.01em; max-width: 24ch;
}
.cards { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.card-wrap { flex: 1 1 280px; min-width: 0; position: relative; }
.card-wrap:nth-child(1) { transform: rotate(-1deg); }
.card-wrap:nth-child(2) { transform: rotate(0.8deg); }
.card-wrap:nth-child(3) { transform: rotate(-0.6deg); }
.tape {
  position: absolute; top: -10px; left: 50%; width: 92px; height: 20px; margin-left: -46px;
}
.card-wrap:nth-child(1) .tape { background: #D5CBF0; transform: rotate(2deg); }
.card-wrap:nth-child(2) .tape { background: #CFE7E1; transform: rotate(-2deg); }
.card-wrap:nth-child(3) .tape { background: #F2D7BD; transform: rotate(1.5deg); }
.card {
  background: var(--white); border-radius: 24px; padding: 18px 18px 26px;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 14px;
}
.card-image {
  height: 210px; border-radius: 16px; background: var(--card-image-bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 12px;
}
.card-image img { max-height: calc(100% - 24px); width: auto; object-fit: contain; border-radius: 12px; }
.card-text { padding: 0 8px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 19px; font-weight: 600; }
.card p { font-size: 16px; line-height: 1.55; color: var(--body); }

/* Lumi */
.lumi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  background: var(--lavender); border-radius: 32px; padding: 44px; margin-top: 56px;
}
.lumi-portrait { flex: 1 1 220px; min-width: 0; display: flex; justify-content: center; }
.lumi-portrait .circle {
  width: 240px; height: 240px; max-width: 100%; border-radius: var(--radius-pill);
  background: var(--lavender-soft); display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 16px 40px rgba(46, 38, 64, 0.10);
}
.lumi-portrait img { width: 190px; height: auto; }
.lumi-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lumi-copy h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-deep); }
.lumi-copy > p { font-size: 18px; line-height: 1.6; color: var(--body-lumi); max-width: 46ch; }
.whisper { position: relative; margin-top: 10px; max-width: 46ch; transform: rotate(-1deg); }
.whisper .tape-small {
  position: absolute; top: -9px; left: 28px; width: 72px; height: 18px;
  background: #D5CBF0; transform: rotate(-3deg);
}
.whisper-card {
  background: var(--white); border-radius: 20px; padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(46, 38, 64, 0.08); display: flex; flex-direction: column; gap: 6px;
}
.whisper-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent);
}
.whisper-card blockquote { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink-deep); }

/* Footer */
.site-footer {
  margin-top: 96px; padding: 150px 24px 44px;
  background: linear-gradient(to bottom,
    rgba(230, 223, 243, 0) 0px, rgba(230, 223, 243, 1) 120px, rgba(230, 223, 243, 1) 100%);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: 36px; text-align: center;
}
.closing { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.closing h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-deep); }
.closing .store-buttons { justify-content: center; }
.closing .note { color: var(--body); }
.closing-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.story-link {
  font-size: 16px; font-weight: 500; color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.footer-rule { width: 100%; height: 1px; background: #D2C8E8; margin-top: 24px; border: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; font-size: 15px; }
.footer-nav a { text-decoration: none; }
.footer-legal { font-size: 13px; color: var(--muted); }

/* Prose pages (About, Privacy) */
.prose-page { padding: 40px 0 0; }
.prose { max-width: 680px; margin: 0 auto; }
.prose-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.prose-head .portrait {
  width: 96px; height: 96px; border-radius: var(--radius-pill); background: var(--lavender-soft);
  box-shadow: 0 10px 30px rgba(46, 38, 64, 0.10); overflow: hidden;
}
.prose h1 {
  font-size: clamp(32px, 4.6vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -0.01em;
}
.prose h2 {
  font-size: clamp(22px, 2.8vw, 26px); line-height: 1.3; font-weight: 600;
  margin: 48px 0 14px; color: var(--ink-deep);
}
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 18px; line-height: 1.75; color: var(--body); }
.prose p + p { margin-top: 20px; }
.prose ul { padding-left: 22px; margin: 14px 0 0; }
.prose li + li { margin-top: 8px; }
.prose em { color: var(--ink); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose .lede { font-size: clamp(19px, 2.4vw, 21px); color: var(--ink); }
.prose .pull {
  margin: 36px 0; padding-left: 22px; border-left: 2px solid var(--line);
  font-size: clamp(21px, 2.8vw, 24px); line-height: 1.45; font-weight: 500; color: var(--accent-ink);
}
.prose .signoff { margin-top: 36px; color: var(--ink); font-weight: 500; }
.prose .updated { font-size: 15px; color: var(--muted); }
.prose .summary {
  background: var(--white); border-radius: 24px; padding: 24px 28px; box-shadow: var(--shadow-soft);
  margin-top: 8px;
}
.prose .summary h2 { margin-top: 0; }
.prose .summary ul { margin-top: 6px; }

@media (max-width: 640px) {
  .hero { padding: 24px 0 72px; gap: 48px; }
  .freeze { padding: 96px 24px; }
  .lumi { padding: 32px 24px; gap: 32px; }
  .site-footer { padding-top: 120px; }
  .btn { width: 100%; justify-content: center; }
}
