/* TidyTuck page: the app's own design language (warm cream to sky and lavender, soft rounded cards).
   Loads after styles.css and only on tidytuck.html; the font stays the site's system font. */
.tt {
  --tt-ink: #1b2230;
  --tt-muted: #5d6676;
  --tt-sky: #69a5e3;
  --tt-deep: #3a6db0;
  --tt-lav: #8c78d9;
  --tt-card: rgba(255, 255, 255, 0.86);
  --tt-line: rgba(27, 34, 48, 0.08);
  --tt-well: #eef2fb;
  --tt-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 18px 44px rgba(58, 109, 176, 0.12);
  --tt-grad: linear-gradient(100deg, #69a5e3 0%, #3a6db0 45%, #8c78d9 100%);
  color: var(--tt-ink);
  background:
    radial-gradient(900px 700px at 0% 0%, #fbf7ef 0%, rgba(251, 247, 239, 0) 60%),
    radial-gradient(1100px 900px at 100% 40%, rgba(195, 207, 245, 0.75) 0%, rgba(195, 207, 245, 0) 65%),
    linear-gradient(170deg, #f6f1e8 0%, #ece9ef 40%, #dfe6f8 100%);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  .tt {
    --tt-ink: #eef1f6;
    --tt-muted: #aab4c3;
    --tt-card: rgba(28, 34, 46, 0.86);
    --tt-line: rgba(255, 255, 255, 0.09);
    --tt-well: #232b3a;
    --tt-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px rgba(0, 0, 0, 0.35);
    background:
      radial-gradient(900px 700px at 0% 0%, rgba(105, 165, 227, 0.16) 0%, rgba(105, 165, 227, 0) 60%),
      radial-gradient(1100px 900px at 100% 40%, rgba(140, 120, 217, 0.18) 0%, rgba(140, 120, 217, 0) 65%),
      linear-gradient(170deg, #141821 0%, #171c27 50%, #1b2131 100%);
  }
}
.tt .top { background: color-mix(in srgb, #f6f1e8 70%, transparent); border-bottom-color: var(--tt-line); }
@media (prefers-color-scheme: dark) { .tt .top { background: color-mix(in srgb, #141821 72%, transparent); } }
.tt .top nav a.current { color: var(--tt-deep); font-weight: 600; }
.tt a { color: var(--tt-deep); }
@media (prefers-color-scheme: dark) { .tt a, .tt .top nav a.current { color: #9cc6f0; } }
.tt .grad { background: var(--tt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tt footer { border-top-color: var(--tt-line); }

/* Hero: words on the left, the vertical film on the right */
.tt-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 48px 0 24px; }
.tt-app { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tt-app img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px rgba(58, 109, 176, 0.3); }
.tt-app b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.tt-app span { font-size: 14px; color: var(--tt-muted); }
.tt-hero h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 18px; }
.tt-hero .lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--tt-muted); margin: 0 0 28px; max-width: 520px; }
.tt-note { font-size: 14px; color: var(--tt-muted); }
.tt-note b { color: var(--tt-ink); }

.tt-reel { position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  background: #dfe6f8; box-shadow: 0 40px 80px rgba(58, 109, 176, 0.28), 0 0 0 1px var(--tt-line); }
.tt-reel video, .tt-tour video { width: 100%; height: 100%; display: block; object-fit: cover; background: transparent; }
.tt-glow { position: absolute; inset: -40% -30% auto; height: 80%; z-index: -1; filter: blur(60px);
  background: radial-gradient(closest-side, rgba(140, 120, 217, 0.4), rgba(105, 165, 227, 0.15), transparent); }

/* Sections */
.tt-section { padding: 56px 0; }
.tt-kicker { font: 700 13px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.22em; color: var(--tt-deep); text-transform: uppercase; margin: 0 0 10px; }
.tt-section h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 14px; }
.tt-section > p.sub { color: var(--tt-muted); font-size: 18px; max-width: 640px; margin: 0 0 30px; }

.tt-problem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tt-problem div { background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 24px; padding: 20px; box-shadow: var(--tt-shadow); }
.tt-problem b { display: block; font-size: 17px; margin-bottom: 4px; }
.tt-problem span { color: var(--tt-muted); font-size: 15px; }
.tt-problem .closed { border: 2px dashed rgba(229, 72, 77, 0.55); }
.tt-problem .closed b { color: #d9373c; letter-spacing: 0.06em; }

.tt-tour { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 16 / 9; background: #dfe6f8;
  box-shadow: 0 30px 70px rgba(58, 109, 176, 0.22), 0 0 0 1px var(--tt-line); }

.tt-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tt-feature { background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 28px; padding: 26px; box-shadow: var(--tt-shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tt-feature:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(27, 34, 48, 0.05), 0 24px 50px rgba(58, 109, 176, 0.18); }
.tt-feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, #e7effc, #efeafc); color: var(--tt-deep); }
@media (prefers-color-scheme: dark) { .tt-feature .ic { background: linear-gradient(135deg, #22324b, #2c2945); color: #9cc6f0; } }
.tt-feature .ic svg { width: 28px; height: 28px; }
.tt-feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.tt-feature p { margin: 0; color: var(--tt-muted); font-size: 15.5px; }
.tt-feature .num { float: right; font: 700 12px ui-monospace, Menlo, monospace; letter-spacing: 0.15em; color: var(--tt-lav); }

.tt-shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.tt-shots img { width: 250px; flex: 0 0 auto; border-radius: 26px; scroll-snap-align: start; box-shadow: var(--tt-shadow); border: 1px solid var(--tt-line); }

.tt-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tt-promise div { border-radius: 24px; padding: 22px; background: var(--tt-well); }
.tt-promise b { display: block; font-size: 17px; margin-bottom: 4px; }
.tt-promise span { color: var(--tt-muted); font-size: 15px; }
.tt-promise .private { border: 2px dashed rgba(105, 165, 227, 0.6); background: transparent; }

.tt-faq details { background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 20px; padding: 16px 20px; margin-bottom: 10px; }
.tt-faq summary { cursor: pointer; font-weight: 650; font-size: 16.5px; }
.tt-faq details p { color: var(--tt-muted); margin: 10px 0 2px; }

.tt-end { text-align: center; padding: 64px 0 80px; }
.tt-end > img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 18px 40px rgba(58, 109, 176, 0.32); }
.tt-end h2 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.04em; margin: 0; }
.tt-end p { color: var(--tt-muted); font-size: 19px; margin: 6px 0 24px; }
.tt-end .tt-cta { justify-content: center; }

@media (max-width: 860px) {
  .tt-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; text-align: left; }
  .tt-problem { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-features, .tt-promise { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tt-feature, .tt-feature:hover { transition: none; transform: none; } }
@media (max-width: 420px) {
  .tt-hero { overflow-x: clip; overflow-clip-margin: 20px; }
  .tt-problem { grid-template-columns: minmax(0, 1fr); }
  .tt-problem b { overflow-wrap: anywhere; }
}
