/* Filewise website styles.
   Mobile first: base styles are for phones, and min-width media queries add
   the wider layouts. Colors follow the app icon (indigo with an orange owl).
   The site is light only, to match the light app screenshots. No web fonts or
   other outside files are loaded, so the page makes no third-party requests. */

:root {
  --indigo: #5b4cf5;
  --indigo-strong: #4335d6;
  --indigo-deep: #241a78;
  --orange: #f7782f;
  --text: #17162b;
  --text-muted: #5c5b70;
  --bg: #ffffff;
  --bg-tinted: #f6f5ff;
  --card: #ffffff;
  --border: rgba(23, 22, 43, 0.09);
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(40, 30, 120, 0.06);
  --shadow: 0 24px 60px -18px rgba(40, 30, 120, 0.35), 0 8px 20px -8px rgba(40, 30, 120, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--indigo); }
a:hover { color: var(--indigo-strong); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.5em; }

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

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(680px, 100% - 40px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 8px 14px; border-radius: 8px; background: var(--card);
}
.skip-link:focus { top: 12px; }

/* Line icons: drawn once in index.html and reused with <use>. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
}
.icon--accent { color: var(--orange); }

.gradient-text {
  background: linear-gradient(100deg, var(--indigo) 0%, #a04df0 45%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.kicker {
  margin: 0 0 10px; text-align: center;
  color: var(--indigo); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #6a5cff, #4335d6);
  color: #fff; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(91, 76, 245, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(91, 76, 245, 0.6); }
.button:active { transform: translateY(0); }
.button[disabled] { opacity: 0.6; cursor: wait; }
.button--small { padding: 9px 18px; font-size: 15px; box-shadow: none; }
.button--large { padding: 16px 30px; font-size: 17px; }
.button--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }
.button--ghost:hover { color: var(--text); background: var(--bg-tinted); box-shadow: inset 0 0 0 1.5px var(--border); }
.button--light { background: #fff; color: var(--indigo-deep); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35); }
.button--light:hover { color: var(--indigo-deep); background: #f3f1ff; }

/* ---------- Top bar ---------- */

.top-bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.top-bar__inner { display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.top-bar__inner > .button { margin-left: auto; }
.top-bar__nav { display: none; gap: 26px; }
.top-bar__nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top-bar__nav a:hover { color: var(--text); }
@media (min-width: 760px) { .top-bar__nav { display: flex; } }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand--small { font-size: 16px; }
.brand--small img { border-radius: 6px; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 56px 0 72px; overflow: hidden; isolation: isolate; }
.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 380px at 78% 35%, rgba(255, 110, 180, 0.22), transparent 70%),
    radial-gradient(560px 420px at 95% 85%, rgba(60, 210, 220, 0.20), transparent 70%),
    radial-gradient(640px 460px at 10% 5%, rgba(91, 76, 245, 0.16), transparent 70%);
}
.hero__inner { display: grid; gap: 48px; align-items: center; }
.hero__copy { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border);
  color: var(--text-muted); font-size: 14px; font-weight: 600;
}
.eyebrow img { border-radius: 5px; }
.hero h1 { font-size: clamp(44px, 8.5vw, 76px); font-weight: 800; }
.lead { max-width: 560px; margin: 0 auto 30px; font-size: clamp(18px, 2.2vw, 20px); color: var(--text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine-print { margin: 16px 0 0; font-size: 14px; color: var(--text-muted); }

.hero__visual { position: relative; padding: 26px 0 30px; }

@media (min-width: 980px) {
  .hero { padding: 80px 0 96px; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  /* Sized so "Clear the clutter." stays on one line beside the picture. */
  .hero h1 { font-size: clamp(48px, 4.4vw, 58px); }
  .hero__copy { text-align: left; }
  .lead { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__visual { padding: 34px 0 40px; }
  .hero__visual .window { transform: perspective(1800px) rotateY(-9deg) rotateX(2deg); transform-origin: left center; }
}

/* A Mac-style window frame around app screenshots. */
.window {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.window img { width: 100%; }

/* Floating "app UI" chips around the hero screenshot. */
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip--search { top: 0; left: 6%; }
.chip--search .icon { color: var(--indigo); }
.chip--undo { bottom: 0; right: 4%; animation-delay: -3s; }
.chip--undo strong {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 4px 10px;
  border-radius: 999px; background: #5b4cf5; color: #fff; font-size: 13px;
}
@media (max-width: 520px) {
  .chip { font-size: 12.5px; padding: 8px 12px; }
  .chip--search { left: 0; }
  .chip--undo { right: 0; }
}
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Trust strip ---------- */

.trust { border-block: 1px solid var(--border); background: var(--bg-tinted); }
.trust__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; padding: 20px 0; }
.trust p { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-weight: 600; font-size: 15px; }
.trust .icon { color: var(--indigo); }
@media (min-width: 760px) { .trust__inner { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section--tinted { background: var(--bg-tinted); }
.section__title { text-align: center; font-size: clamp(30px, 5vw, 44px); font-weight: 800; margin-bottom: 1em; }

/* Features: text beside a picture, alternating sides on wide screens. */
.feature { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
.feature:first-of-type { margin-top: 24px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 0.85fr 1.15fr; gap: 64px; margin-top: 96px; }
  .feature--reverse { grid-template-columns: 1.15fr 0.85fr; }
  .feature--reverse .feature__text { order: 2; }
}
.feature__badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 14px; color: #fff; font-size: 22px;
  background: linear-gradient(135deg, #6a5cff, #a04df0);
  box-shadow: 0 10px 20px -8px rgba(91, 76, 245, 0.6);
}
.feature h3 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
.feature p { margin: 0 0 18px; color: var(--text-muted); font-size: 18px; }
.feature p strong { color: var(--text); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.examples li {
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--bg-tinted); color: var(--indigo); box-shadow: inset 0 0 0 1px var(--border);
}
.examples li::before { content: "“"; }
.examples li::after { content: "”"; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ticks .icon { color: var(--indigo); }

/* The privacy picture: the owl and the promises in a card. */
.privacy-card {
  display: grid; gap: 22px; justify-items: center; padding: 40px 28px; border-radius: var(--radius);
  background:
    radial-gradient(300px 200px at 85% 0%, rgba(255, 110, 180, 0.28), transparent 70%),
    radial-gradient(300px 220px at 0% 100%, rgba(60, 210, 220, 0.25), transparent 70%),
    linear-gradient(160deg, #4b3df0, #241a78);
  color: #fff; box-shadow: var(--shadow);
}
.privacy-card__icon img { border-radius: 20px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35)); }
.privacy-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: min(100%, 380px); }
.privacy-card li {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.12); font-weight: 600;
}

/* ---------- Price ---------- */

.price-card {
  display: grid; max-width: 920px; margin: 0 auto; overflow: hidden;
  border-radius: 28px; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
@media (min-width: 820px) { .price-card { grid-template-columns: 1.15fr 0.85fr; } }
.price-card__main { padding: 40px 32px; }
.price-card__main .kicker { text-align: left; }
.price-card h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.price { margin: 6px 0 20px; }
.price__amount { font-family: var(--font-display); font-size: 64px; font-weight: 800; letter-spacing: -0.04em; }
.price__note { font-size: 18px; color: var(--text-muted); }
.price-card__offer {
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 40px 32px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(255, 110, 180, 0.35), transparent 70%),
    linear-gradient(160deg, #5546f5, #241a78);
  color: #fff;
}
.price-card__offer p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.price-card__offer .offer__label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd2b8; }
.offer__price { font-size: 18px; }
.offer__price span { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: #fff; margin-right: 6px; }
.price-card__offer .button { align-self: flex-start; margin-top: 8px; }

/* ---------- Waitlist (call-to-action band) ---------- */

.cta {
  position: relative; padding: 88px 0; text-align: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(500px 300px at 85% 10%, rgba(255, 110, 180, 0.35), transparent 70%),
    radial-gradient(500px 320px at 10% 100%, rgba(60, 210, 220, 0.3), transparent 70%),
    linear-gradient(160deg, #4f40f2, #241a78 75%);
}
.cta__icon { margin: 0 auto 18px; border-radius: 16px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35)); }
.cta h2 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; }
.cta__intro { margin: 0 auto 30px; color: rgba(255, 255, 255, 0.82); font-size: 18px; }
.cta .fine-print { color: rgba(255, 255, 255, 0.75); }
.cta .fine-print a { color: #fff; }

.waitlist { text-align: left; }
.waitlist label[for="email"] { display: block; margin-bottom: 8px; font-weight: 600; }
.waitlist__row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .waitlist__row { flex-direction: row; } }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; padding: 15px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font: 17px var(--font);
}
.waitlist input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.6); }
.waitlist input[type="email"]:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.waitlist input[aria-invalid="true"] { border-color: #ffb4ab; }
.form-error {
  margin: 12px 0 0; padding: 8px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.95); color: #b3261e; font-weight: 600;
}
/* Honeypot: kept out of sight and out of the tab order. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.95); color: #146c3a; text-align: center; }
.form-success p { margin: 0 0 6px; }
.form-success__title { font-size: 22px; font-weight: 800; }
.form-success .fine-print { color: #3f5b4a; }

/* ---------- FAQ ---------- */

details {
  border-radius: 16px; background: var(--card); margin-bottom: 12px;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
}
summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-tinted); color: var(--indigo); font-size: 18px; line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 22px 20px; color: var(--text-muted); }

/* ---------- Footer ---------- */

.footer { padding: 32px 0; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-muted); }
.footer__inner { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.footer p { margin: 0; }
@media (min-width: 760px) { .footer__inner { flex-direction: row; justify-content: space-between; } }

/* ---------- Simple text pages (privacy, support) ---------- */

.page { padding: 48px 0 64px; }
.page h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 800; }
.page h2 { font-size: 22px; margin-top: 1.8em; }
.page p, .page li { color: var(--text-muted); overflow-wrap: break-word; }
.draft-banner {
  margin: 0 0 28px; padding: 14px 18px; border-radius: 12px;
  border: 1.5px dashed var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent);
  color: var(--text); font-weight: 600;
}
/* Long paths and addresses wrap instead of widening the page on phones. */
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; overflow-wrap: anywhere; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .button { transition: none; }
}

/* ---------- Promo video ---------- */
.section--video { padding-bottom: 24px; }
.promo-video { position: relative; max-width: 1040px; margin: 40px auto 0; border-radius: var(--radius); overflow: hidden;
               box-shadow: var(--shadow); background: #f7f6ff; }
.promo-video video { display: block; width: 100%; height: auto; }
.sound-toggle { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px;
                padding: 9px 16px 9px 12px; border: 0; border-radius: 999px; cursor: pointer;
                font: 600 15px var(--font); color: #fff; background: rgba(23, 22, 43, 0.72);
                -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sound-toggle:hover { background: rgba(23, 22, 43, 0.86); }
.sound-toggle:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.sound-toggle .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
                      stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .icon path:first-child { fill: currentColor; }
.sound-toggle[aria-pressed="false"] .sound-toggle__waves,
.sound-toggle[aria-pressed="true"] .sound-toggle__x { display: none; }
.sound-toggle[hidden] { display: none; }

/* Early supporter offer: saving badge and hero line. */
.save-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  vertical-align: middle;
}
.save-badge--light { background: #fff; color: var(--indigo-deep); }
.hero__offer { margin: 20px 0 0; font-size: 16px; }
.hero__offer s, .cta__intro s { opacity: 0.6; }
.hero__offer .save-badge { margin-right: 6px; }
.offer__price s { font-size: 22px; opacity: 0.6; margin-right: 4px; }
.price-card__offer .offer__badge { margin: -4px 0 4px; }
.nowrap { white-space: nowrap; }
.offer__when { font-style: normal; display: inline-block; }
