/* ==========================================================================
   Idle Clockworks — TacticalPoop Website Styles
   Palette inspired by the TacticalPoop app icon & launch screen artwork.
   ========================================================================== */

:root {
  /* Brand Palette */
  --ink: #381808;
  --ink-soft: #5c341d;
  --ink-muted: #76523d;

  --sky-top: #1c88f2;
  --sky-mid: #4ebbff;
  --sky-bottom: #c9ecff;

  --purple-deep: #5e11b5;
  --purple-main: #8d24f2;
  --purple-bright: #b44dff;

  --yellow-bright: #ffe44d;
  --yellow-main: #ffd014;
  --yellow-deep: #f59e0b;

  --brown-main: #944a16;
  --brown-light: #c96f24;

  --surface-page: #fffaf0;
  --surface-card: #ffffff;
  --surface-tint: #fff3d6;

  /* Geometry & Borders */
  --border-thick: 3px solid var(--ink);
  --border-thin: 2px solid var(--ink);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Cartoon Offset Shadows */
  --shadow-sm: 0 4px 0 var(--ink);
  --shadow-md: 0 6px 0 var(--ink);
  --shadow-lg: 0 10px 0 var(--ink);

  /* Typography */
  --font-display: "Fredoka", "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing & Layout */
  --container-max: 1080px;
  --container-narrow: 780px;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple-main);
}

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

/* Skip Link for Keyboard Accessibility */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--yellow-main);
  color: var(--ink);
  font-weight: 800;
  padding: 0.65rem 1rem;
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--container-max), 100% - 2rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--container-narrow), 100% - 2rem);
  margin-inline: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-thick);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

/* Crops the rounded iOS squircle cleanly, hiding the black JPEG corner padding */
.app-icon-frame {
  display: inline-block;
  border-radius: 23%;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  background: var(--purple-main);
  flex-shrink: 0;
}

.app-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.brand__icon {
  width: 44px;
  height: 44px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__studio {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-nav a:hover {
  background: var(--surface-tint);
  border-color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--yellow-main);
  border-color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}

/* ==========================================================================
   Buttons (Inspired by the Launch Screen PLAY Button)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn--primary {
  background: linear-gradient(180deg, var(--yellow-bright) 0%, var(--yellow-main) 55%, var(--yellow-deep) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--ink);
}

.btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn--secondary {
  background: var(--surface-card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  color: var(--ink);
  background: var(--surface-tint);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn--secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3rem, 7vw, 5.25rem);
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.45) 0%, transparent 40%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-bottom) 100%);
  border-bottom: var(--border-thick);
}

/* Subtle sunny sunburst rays behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.12) 0deg 12deg,
    transparent 12deg 24deg
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.02fr 1.15fr;
    gap: 2.75rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  background: var(--purple-main);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 0 var(--ink);
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.2vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #ffffff;
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 46ch;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.95rem 1.15rem;
  border: var(--border-thin);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-meta {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

/* Framed Launch Artwork Showcase */
.hero-showcase {
  position: relative;
}

.hero-frame {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sky-top);
  box-shadow: var(--shadow-lg);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-icon-badge {
  position: absolute;
  bottom: -18px;
  left: -14px;
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-width: 3.5px;
  box-shadow: var(--shadow-md);
  transform: rotate(-6deg);
}

@media (max-width: 600px) {
  .hero-icon-badge {
    left: 10px;
    bottom: -14px;
  }
}

/* ==========================================================================
   Main Sections & Cards
   ========================================================================== */

.section {
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.section--tinted {
  background: var(--surface-tint);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-deep);
}

.section-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
}

.section-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.4rem;
}

.card {
  container-type: inline-size;
  background: var(--surface-card);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.card__badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: var(--border-thin);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 1.5rem;
  background: var(--yellow-main);
}

.card__badge--purple {
  background: var(--purple-bright);
  color: #ffffff;
}

.card__badge--sky {
  background: var(--sky-mid);
  color: var(--ink);
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

/* ==========================================================================
   Studio & Support Banner (Purple Sunburst Vibe from App Icon)
   ========================================================================== */

.studio-banner {
  position: relative;
  overflow: hidden;
  background:
    repeating-conic-gradient(
      from 10deg at 85% 50%,
      rgba(255, 255, 255, 0.08) 0deg 14deg,
      transparent 14deg 28deg
    ),
    linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-main) 55%, var(--purple-bright) 100%);
  color: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 780px) {
  .studio-banner {
    grid-template-columns: 1.35fr 0.9fr;
  }
}

.studio-banner h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  line-height: 1.1;
  color: #ffffff;
}

.studio-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
}

.support-card {
  background: var(--surface-card);
  color: var(--ink);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
}

.support-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.support-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.copy-status {
  margin-top: 0.55rem;
  min-height: 1.3em;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--purple-deep);
}

/* ==========================================================================
   Native FAQ Accordion (<details> / <summary>)
   ========================================================================== */

.faq-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--surface-card);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.05rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-main);
  border: var(--border-thin);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--purple-bright);
  color: #ffffff;
}

.faq-item__body {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-soft);
}

.faq-item__body p {
  margin: 0;
}

/* ==========================================================================
   Privacy Policy Document Page
   ========================================================================== */

.page-hero {
  background:
    repeating-conic-gradient(
      from 0deg at 90% 10%,
      rgba(255, 255, 255, 0.08) 0deg 14deg,
      transparent 14deg 28deg
    ),
    linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-main) 65%, var(--purple-bright) 100%);
  color: #ffffff;
  border-bottom: var(--border-thick);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.page-hero h1 {
  margin: 0.45rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.1rem);
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 4px 0 var(--ink);
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.policy-shell {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.policy-paper {
  background: var(--surface-card);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}

.policy-summary {
  background: var(--surface-tint);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  margin-bottom: 2rem;
}

.policy-summary strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.policy-paper h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  padding-bottom: 0.35rem;
  border-bottom: 2px dashed rgba(56, 24, 8, 0.18);
}

.policy-paper h2:first-of-type {
  margin-top: 0;
}

.policy-paper h3 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--purple-deep);
}

.policy-paper p,
.policy-paper li {
  color: var(--ink-soft);
}

.policy-paper ul {
  padding-left: 1.35rem;
}

.policy-paper li + li {
  margin-top: 0.4rem;
}

.policy-contact-box {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: #f5eeff;
  border: var(--border-thin);
  border-radius: var(--radius-md);
}

.policy-contact-box p {
  margin: 0.2rem 0;
  color: var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: #fff6e5;
  padding-block: 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 246, 229, 0.82);
}

.footer-brand strong {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--yellow-main);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
