/* ============================================================
   TASKSHEET – STYLESHEET
   Puffin palette: black/white core, orange-red & yellow accents
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Puffin colours */
  --puffin-black:      #0d0d0d;
  --puffin-white:      #f5f3ef;
  --puffin-orange:     #e8531a;  /* bill orange-red */
  --puffin-yellow:     #f5c418;  /* bill lemon yellow */
  --puffin-slate:      #3a3f4a;  /* bill slate-grey */
  --puffin-orange-dim: rgba(232, 83, 26, 0.15);
  --puffin-yellow-dim: rgba(245, 196, 24, 0.12);

  /* Semantic */
  --bg:          var(--puffin-white);
  --bg-alt:      #eeece8;
  --surface:     #ffffff;
  --text:        var(--puffin-black);
  --text-muted:  #5a5a5a;
  --border:      rgba(0,0,0,0.08);
  --accent:      var(--puffin-orange);
  --accent-2:    var(--puffin-yellow);
  --nav-bg:      rgba(245, 243, 239, 0.85);

  /* Type */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --inner-max:   1200px;
  --inner-pad:   clamp(20px, 5vw, 60px);

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --radius-xl:   40px;

  /* Device */
  --device-w:    240px;
  --device-h:    490px;
  --device-r:    38px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0d0e10;
    --bg-alt:     #161819;
    --surface:    #1c1e21;
    --text:       #f0ede8;
    --text-muted: #8a8a8a;
    --border:     rgba(255,255,255,0.07);
    --nav-bg:     rgba(13, 14, 16, 0.88);
  }
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Utility ── */
.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--text);
}

.section-subtitle {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.45s; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 83, 26, 0.35);
}
.btn--primary:hover { box-shadow: 0 6px 28px rgba(232, 83, 26, 0.5); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text-muted); }

@media (prefers-color-scheme: dark) {
  .btn--ghost { border-color: rgba(255,255,255,0.15); }
  .btn--ghost:hover { border-color: rgba(255,255,255,0.35); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.nav-logo-mark {
  color: var(--accent);
  font-size: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-privacy {
  color: var(--accent);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  padding: 16px var(--inner-pad) 24px;
  border-top: 1px solid var(--border);
}
.nav-drawer ul { list-style: none; }
.nav-drawer a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-drawer.is-open { display: block; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  top: -100px; right: -150px;
  background: var(--puffin-orange);
  animation: float1 12s ease-in-out infinite;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  bottom: 0; left: -100px;
  background: var(--puffin-yellow);
  animation: float2 15s ease-in-out infinite;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  top: 50%; left: 40%;
  background: var(--puffin-slate);
  opacity: 0.1;
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px, 20px); } }

.hero-inner {
  flex: 1;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--inner-pad) 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-eyebrow { margin-bottom: 24px; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--puffin-orange-dim);
  color: var(--accent);
  border: 1px solid rgba(232, 83, 26, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--text-muted);
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero-tagline em {
  font-style: italic;
  color: var(--accent);
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Hero Device ── */
.hero-device {
  flex-shrink: 0;
}

.hero-screenshot {
  display: block;
  width: var(--device-w);
  height: auto;
  border-radius: var(--device-r);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.35),
    0 10px 30px rgba(0,0,0,0.2);
}

.device-frame {
  position: relative;
  width: var(--device-w);
  height: var(--device-h);
  background: var(--puffin-black);
  border-radius: var(--device-r);
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 0 0 4px #1a1a1a,
    0 40px 80px rgba(0,0,0,0.35),
    0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: device-float 6s ease-in-out infinite;
}

@keyframes device-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(-2deg); }
}

.device-screen {
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--device-r) - 6px);
  overflow: hidden;
  background: #111;
}

.device-screen img,
.device-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(160deg, #1a1c20 0%, #0d0e10 100%);
  color: #444;
  font-size: 0.8rem;
}

.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: var(--puffin-black);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.device-home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  z-index: 2;
}

/* ── Scroll hint ── */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 32px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100% { opacity: 0.4; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }

/* Hero responsive */
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-device { display: none; }
  .hero-summary { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: rgba(232, 83, 26, 0.2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--puffin-orange-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   SCREENSHOTS / GALLERY
   ============================================================ */
.screenshots {
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.gallery-track-wrapper {
  position: relative;
  margin-top: 0;
}

.gallery-track {
  display: flex;
  gap: 32px;
  padding: 20px clamp(20px, 8vw, 120px) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gallery-frame {
  position: relative;
  width: var(--device-w);
  height: var(--device-h);
  background: var(--puffin-black);
  border-radius: var(--device-r);
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 0 0 4px #1a1a1a,
    0 30px 60px rgba(0,0,0,0.28);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover .gallery-frame {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 0 0 4px var(--puffin-orange),
    0 40px 70px rgba(0,0,0,0.35);
}

.gallery-screen {
  position: absolute;
  inset: 0;
  border-radius: var(--device-r);
  overflow: hidden;
  background: #111;
}
.gallery-screen img,
.gallery-screen video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(160deg, #1a1c20 0%, #0d0e10 100%);
  color: #555;
  font-size: 0.82rem;
  text-align: center;
  padding: 20px;
}
.gallery-placeholder small { font-size: 0.7rem; color: #3a3a3a; }


.gallery-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  max-width: var(--device-w);
}

/* Gallery nav buttons */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  z-index: 10;
}
.gallery-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(232, 83, 26, 0.3);
}
.gallery-btn--prev { left: clamp(4px, 2vw, 24px); }
.gallery-btn--next { right: clamp(4px, 2vw, 24px); }
.gallery-btn:disabled { opacity: 0.3; pointer-events: none; }

/* Gallery dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 12px;
}
.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: 1.5px solid var(--text-muted);
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  opacity: 0.4;
}
.gallery-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
  opacity: 1;
}

/* ============================================================
   COMING SOON / ROADMAP
   ============================================================ */
.coming-soon {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.roadmap {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
  border-radius: 1px;
}

.roadmap-item {
  display: flex;
  gap: 28px;
  padding-bottom: 48px;
  position: relative;
}
.roadmap-item:last-child { padding-bottom: 0; }

.roadmap-marker {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.roadmap-marker::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.roadmap-content {
  padding-top: 4px;
}

.roadmap-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.roadmap-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.roadmap-content p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   DEVELOPER
   ============================================================ */
.developer {
  padding: var(--section-pad) 0;
}

.developer-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.developer-logo {
  flex-shrink: 0;
}

.puffin-mark {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--puffin-black) 0%, var(--puffin-slate) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.developer-content .section-label { text-align: left; display: block; }

.developer-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  margin: 8px 0 16px;
}

.developer-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

.developer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.developer-email:hover { border-color: var(--accent); }

@media (max-width: 620px) {
  .developer-inner {
    flex-direction: column;
    gap: 28px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.footer-links a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ============================================================
   PRIVACY PAGE (privacy.html)
   ============================================================ */
.privacy-page {
  padding-top: 64px;
}
.privacy-hero {
  padding: clamp(60px, 8vw, 100px) var(--inner-pad) 60px;
  max-width: var(--inner-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.privacy-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: 16px;
  margin-bottom: 12px;
}
.privacy-hero .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.privacy-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px var(--inner-pad) var(--section-pad);
}
.privacy-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 40px 0 12px;
  color: var(--text);
}
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.97rem;
}
.privacy-body ul {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
  padding-left: 20px;
  margin-bottom: 16px;
}
.privacy-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
