/* Witit — shared brand styles for witit.com
   Tokens mirror the iOS design system: cool paper canvas, slate ink,
   the holofoil accent ramp, Pacifico wordmark, very rounded, soft cool shadows. */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

:root {
  --canvas: #F4F6F9;
  --canvas-sunken: #E9EDF2;
  --surface: #FFFFFF;
  --ink: #191C22;
  --ink-muted: #59606B;
  --ink-subtle: #737A85;
  --stroke: #E2E6EC;
  --stroke-strong: #CDD4DD;
  --accent: #6D28D9;

  /* Holofoil — decorative accent ramp (see design system) */
  --holo: linear-gradient(135deg, #00d4ff 0%, #ff00aa 50%, #ffaa00 100%);
  --holo-wide: linear-gradient(115deg, #00d4ff 0%, #7c3aed 25%, #ff00aa 50%, #ffaa00 75%, #00d4ff 100%);
  /* Deep ramp — the only one legal under white text */
  --holo-deep: linear-gradient(135deg, #0080A6 0%, #6D28D9 33%, #D6008E 66%, #9E6500 100%);

  --shadow-1: 0 1px 2px rgba(24, 30, 46, 0.06);
  --shadow-2: 0 2px 8px rgba(24, 30, 46, 0.08);
  --shadow-3: 0 6px 16px rgba(24, 30, 46, 0.10);
  --shadow-4: 0 12px 32px rgba(24, 30, 46, 0.14);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, -apple-system, 'SF Pro Rounded', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.brand-link { text-decoration: none; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Wordmark */
.wordmark {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  padding-bottom: 0.1em;
}

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 246, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--stroke);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
header.site .wordmark { font-size: 28px; }
header.site nav { display: flex; gap: 20px; align-items: center; }
header.site nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
header.site nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-2); }
.btn-holo { background: var(--holo-deep); color: #fff; box-shadow: var(--shadow-3); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--stroke-strong); }

/* Hero */
.hero { text-align: center; padding: 72px 0 48px; }
.hero .big-wordmark { font-size: clamp(64px, 14vw, 132px); margin-bottom: 8px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.15;
  max-width: 16ch; margin: 16px auto 20px; letter-spacing: -0.02em;
}
.hero p.sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-muted); max-width: 34ch; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Holo rule */
.holo-rule { height: 4px; background: var(--holo-wide); background-size: 200% 200%;
  border-radius: 999px; margin: 8px auto; width: 120px;
  animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Three-dot flourish — echoes the logo (three figures = the gang) */
.three-dots { display: flex; gap: 11px; justify-content: center; align-items: flex-end; margin-bottom: 20px; }
.three-dots span { width: 12px; height: 12px; border-radius: 999px; background: var(--holo); box-shadow: var(--shadow-1); }
.three-dots span:nth-child(2) { width: 17px; height: 17px; }

/* Section kicker */
.kicker {
  display: block; text-align: center; font-size: 13px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 48px 0; }
.card {
  background: var(--surface); border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-2); border: 1px solid var(--stroke);
}
.card .emoji { font-size: 34px; margin-bottom: 12px; display: block; }
.card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--ink-muted); font-size: 15px; }

/* Section */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.02em; }
.section .lede { text-align: center; color: var(--ink-muted); max-width: 44ch; margin: 0 auto 40px; font-size: 18px; }

/* Privacy highlight band */
.band { background: var(--canvas-sunken); border-radius: var(--r-xl); padding: 40px; text-align: center; margin: 24px 0; }
.band .emoji { font-size: 40px; }
.band h2 { margin: 12px 0; }

/* Footer */
footer.site { border-top: 1px solid var(--stroke); padding: 40px 0; color: var(--ink-muted); font-size: 14px; margin-top: 48px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--ink-muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Legal / doc pages */
.doc { padding: 48px 0 32px; }
.doc h1 { font-size: 36px; margin-bottom: 8px; letter-spacing: -0.02em; }
.doc .updated { color: var(--ink-subtle); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 22px; margin: 32px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 20px 0 8px; }
.doc p, .doc li { color: var(--ink-muted); margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--accent); }
.doc .note { background: var(--canvas-sunken); border-radius: var(--r-md); padding: 16px 20px; font-size: 14px; margin: 20px 0; }

/* Support */
.support-page { max-width: 760px; }
.support-page .support-kicker { text-align: left; margin-bottom: 8px; }
.support-page > h1 { max-width: 18ch; font-size: clamp(34px, 7vw, 52px); line-height: 1.08; }
.support-page .support-lede { max-width: 62ch; font-size: 18px; margin: 16px 0 32px; }
.support-form {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-3);
}
.support-form label { display: block; margin-bottom: 18px; }
.support-form label > span {
  display: block; color: var(--ink); font-size: 14px; font-weight: 700;
  margin-bottom: 7px;
}
.support-form small { color: var(--ink-subtle); font-weight: 500; }
.support-form input, .support-form select, .support-form textarea {
  width: 100%; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--stroke-strong); border-radius: var(--r-md);
  padding: 12px 14px; font: inherit; font-size: 16px;
}
.support-form textarea { resize: vertical; min-height: 150px; }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-color: var(--accent);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.support-submit { display: flex; align-items: center; gap: 18px; }
.support-submit p { font-size: 13px; margin: 0; }
.support-submit .btn:disabled { opacity: .6; cursor: wait; }
.support-status { min-height: 24px; margin: 16px 0 0; font-weight: 600; }
.support-status.success { color: #18794e; }
.support-status.error { color: #b42318; }
.support-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.support-faq { margin-top: 44px; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .support-form { padding: 22px 18px; }
  .support-submit { align-items: flex-start; flex-direction: column; }
}

/* Invite card */
.invite-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.invite {
  background: var(--surface); border-radius: var(--r-xl); padding: 40px 32px; text-align: center;
  max-width: 400px; width: 100%; box-shadow: var(--shadow-4);
  border: 1px solid var(--stroke);
}
.invite .avatar {
  width: 88px; height: 88px; border-radius: 999px; margin: 0 auto 16px;
  background: var(--holo); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 34px; font-weight: 700;
}
.invite h1 { font-size: 24px; margin-bottom: 4px; }
.invite p { color: var(--ink-muted); margin-bottom: 24px; }
.invite .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.share-polaroid {
  width: min(260px, 78vw); margin: 0 auto 26px; padding: 14px 14px 24px;
  background: #fffdf8; border-radius: 5px;
  box-shadow: 0 18px 45px rgba(29, 25, 40, 0.18); transform: rotate(-2deg);
}
.share-polaroid-photo {
  display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.9), transparent 20%),
    linear-gradient(145deg, #f8a8c5, #9fd9f5 46%, #f3d36d);
  color: white; font-size: 64px;
}
.share-polaroid .wordmark { display: block; font-size: 24px; }

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #14161B; --canvas-sunken: #0F1115; --surface: #1E2129;
    --ink: #EDF0F5; --ink-muted: #A5ACB8; --ink-subtle: #868D99;
    --stroke: #292D35; --stroke-strong: #383D48;
    --accent: #A78BFA;
  }
  header.site { background: rgba(20, 22, 27, 0.85); }
  .support-status.success { color: #6ee7a8; }
  .support-status.error { color: #ff8a80; }
}
