/* ClipCycle marketing site.

   Same palette, fonts and border language as the app itself. The site and the
   product used to look like two different companies: a light, generic,
   system-font page selling a dark, typeset tool. A visitor who signs up now
   lands somewhere that looks like where they came from.

   Ported wholesale from the app's globals.css rather than reinvented:
   charcoal ground with a violet bias, hairline borders instead of drawn ones,
   and the pink/violet/cyan range spent sparingly so it still means something.
   Every class name is unchanged, so the HTML did not have to move. */

:root {
  --background: #0a0b0f;
  --surface: #14151b;
  --raised: #1c1e26;
  --ink: #f2f2f6;
  --muted: #8a8b99;
  --dim: #6f7080;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --pink: #ff2d6f;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --max: 1140px;
}

* { box-sizing: border-box }
/* Dark scrollbars, form controls and autofill, rather than light ones
   punched into a dark page. */
html { scroll-behavior: smooth; color-scheme: dark }

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit }

/* Headings carry the personality; body copy stays out of the way. Archivo is
   slightly condensed, so a hook fits on two lines instead of three. */
h1, h2, h3, .brand, .amount, .plan-price .amount {
  font-family: Archivo, "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.container { width: min(calc(100% - 40px), var(--max)); margin: auto }
.skip { position: absolute; left: -9999px }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--background); padding: .7rem; z-index: 100 }

/* ---------- header ---------- */

.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 11, 15, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em }
.mark { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; flex: none; display: block }
.mark img { width: 100%; height: 100%; display: block }
.links { display: flex; align-items: center; gap: 22px }
.links a { text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--muted); transition: color .15s }
.links a:hover, .links a[aria-current=page] { color: var(--ink) }
.contact-link { padding: .55rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px }
.contact-link:hover { border-color: var(--ink) }
.menu { display: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; padding: .55rem .7rem; font: inherit; font-weight: 600 }

/* ---------- hero ---------- */

.hero { padding: 104px 0 84px; overflow: hidden; position: relative }
.hero:after {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  right: -300px; top: -340px; pointer-events: none;
  background: radial-gradient(circle, rgba(168, 85, 247, .20), rgba(255, 45, 111, .12) 45%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; position: relative; z-index: 1 }

.eyebrow {
  display: inline-flex; padding: .38rem .72rem; border-radius: 999px;
  background: rgba(255, 45, 111, .12); color: #ff85ac;
  border: 1px solid rgba(255, 45, 111, .22);
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: .96; letter-spacing: -.045em; margin: 20px 0; max-width: 12ch; font-weight: 700 }
.hero h1 span {
  background: linear-gradient(100deg, var(--pink), var(--violet) 48%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 650px }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px }

/* One solid primary rather than a gradient, matching the app. Spent once per
   screen an accent means something; spent on every button it is wallpaper. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: .75rem 1.25rem; border-radius: 13px;
  text-decoration: none; font-weight: 600; border: 1px solid transparent;
  transition: background .15s, border-color .15s, opacity .15s;
}
.primary { background: var(--ink); color: var(--background) }
.primary:hover { background: #fff }
.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink) }
.secondary:hover { border-color: var(--ink) }
.note { font-size: .9rem; color: var(--dim); margin-top: 17px }
.note + .note { margin-top: 8px }
/* The install line is the one link in a paragraph of grey, so it has to
   read as a link rather than as slightly different grey. */
.note a { color: #ff85ac; text-underline-offset: 3px }

/* ---------- the app mock ---------- */
/* The mock shows a dark window now, because the app is dark. It used to
   advertise a product that no longer exists. */

.mock { background: var(--surface); border: 1px solid var(--line); padding: 22px; border-radius: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); transform: rotate(1deg) }
.window { background: var(--background); border: 1px solid var(--line); border-radius: 18px; overflow: hidden }
.toolbar { height: 46px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 16px }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3b47 }
.mockbody { padding: 22px }
.small-label { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-family: "JetBrains Mono", ui-monospace, monospace }
.preview {
  height: 205px; margin-top: 12px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; font-size: 2.3rem;
  background: linear-gradient(140deg, #4c3f7a, #2f5a78 52%, #1d3346);
}
.fake-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 17px }
.fake-lines { flex: 1 }
.line { height: 10px; background: #2a2b35; border-radius: 999px }
.line.short { width: 60%; margin-top: 7px }
.badge { font-size: .74rem; font-weight: 600; padding: .42rem .66rem; border-radius: 999px; color: var(--cyan); background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .22) }

/* ---------- sections ---------- */

.trust { border-block: 1px solid var(--line); background: var(--surface) }
.trust-grid { min-height: 94px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center }
.trust-item { display: flex; align-items: center; gap: 11px; color: var(--muted) }
.trust-icon { width: 35px; height: 35px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--ink) }

.section { padding: 92px 0 }
.soft { background: var(--surface) }
.heading { max-width: 740px; margin-bottom: 40px }
.heading h2, .content h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 13px; font-weight: 700 }
.heading p { color: var(--muted); font-size: 1.06rem; margin: 0 }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 21px; padding: 26px }
.soft .card { background: var(--raised) }
.icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; background: rgba(168, 85, 247, .14); color: #c88cff; font-weight: 700 }
.card h3 { margin: 18px 0 8px; font-size: 1.18rem; font-weight: 600 }
.card p { margin: 0; color: var(--muted) }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; counter-reset: step }
.step { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--pink); padding: 24px 21px; border-radius: 0 0 20px 20px }
.soft .step { background: var(--raised) }
.step:before { counter-increment: step; content: "0" counter(step); display: block; color: var(--pink); font-size: .8rem; font-weight: 500; letter-spacing: .1em; margin-bottom: 28px; font-family: "JetBrains Mono", ui-monospace, monospace }
.step h3 { margin: 0 0 7px; font-size: 1.1rem; font-weight: 600 }
.step p { margin: 0; color: var(--muted) }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px }
.checks li { position: relative; padding-left: 33px; color: var(--muted) }
.checks li:before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: rgba(34, 211, 238, .14); color: var(--cyan); display: grid; place-items: center; font-weight: 700; font-size: .8rem }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 25px; padding: 26px }
.panel-row { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line) }
.panel-row:last-child { border: 0 }
.panel-row strong { font-weight: 600 }
.good { color: var(--cyan); font-weight: 600 }

.faq { display: grid; gap: 12px }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px }
.soft .faq details { background: var(--raised) }
.faq summary { cursor: pointer; padding: 19px 0; font-weight: 600 }
.faq p { margin: -2px 0 19px; color: var(--muted) }

.cta {
  padding: clamp(36px, 7vw, 68px); text-align: center; border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top right, rgba(255, 45, 111, .22), transparent 44%),
    radial-gradient(circle at bottom left, rgba(34, 211, 238, .16), transparent 46%),
    var(--raised);
}
.cta h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.02; letter-spacing: -.04em; margin: 0 auto 14px; max-width: 760px; font-weight: 700 }
.cta p { color: var(--muted); max-width: 620px; margin: 0 auto 26px }

/* ---------- inner pages ---------- */

.page-hero { padding: 78px 0 46px; border-bottom: 1px solid var(--line) }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 15ch }
.page-hero p { color: var(--muted); font-size: 1.06rem; max-width: 760px }
.content { max-width: 820px; padding: 55px 0 88px }
.content h2 { font-size: 1.55rem; margin-top: 48px }
.content h3 { margin-top: 28px; font-size: 1.1rem; font-weight: 600 }
.content p, .content li { color: #b6b7c2 }
.content a { color: #ff85ac; text-underline-offset: 3px }
.notice { padding: 17px 19px; border-left: 3px solid var(--pink); background: rgba(255, 45, 111, .08); border-radius: 0 13px 13px 0; margin: 24px 0 }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px }
.contact-card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 27px }
.contact-card h2 { margin: 0 0 9px; font-size: 1.3rem; font-weight: 600 }
.contact-card p { color: var(--muted) }
.email { display: inline-block; color: #ff85ac; font-weight: 600; overflow-wrap: anywhere }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; max-width: 900px; margin: auto }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; height: 100% }
.plan.featured { border-color: rgba(255, 45, 111, .38); background: var(--raised) }
.plan .badge { position: absolute; top: -13px; right: 26px; color: #ff85ac; background: rgba(255, 45, 111, .14); border-color: rgba(255, 45, 111, .3) }
.plan h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; font-weight: 600 }
.plan-price { margin: 14px 0 0; display: flex; align-items: baseline; gap: 9px }
.plan-price .amount { font-size: 3rem; font-weight: 700; letter-spacing: -.045em; line-height: 1 }
.plan-price .per { color: var(--muted); font-weight: 500 }
.plan-note { margin: 6px 0 0; color: var(--muted); font-size: .92rem }
.plan .checks { margin-top: 24px }
.plan-foot { margin: 22px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem }
.plan-foot a { color: #ff85ac }
.plan .button { margin-top: auto; width: 100% }

/* ---------- footer ---------- */

.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink); padding: 52px 0 28px }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px }
.footer p { color: var(--muted); max-width: 440px }
.footer h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500 }
.footer-links { display: grid; gap: 8px }
.footer-links a { color: var(--muted); text-decoration: none }
.footer-links a:hover { color: var(--ink) }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--dim); font-size: .86rem }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr }
  .cards, .steps { grid-template-columns: 1fr 1fr }
  .trust-grid { padding: 20px 0 }
}

@media (max-width: 760px) { .plans { grid-template-columns: 1fr } .plan { padding: 26px } }

@media (max-width: 700px) {
  .menu { display: block }
  .links {
    display: none; position: absolute; top: 67px; left: 20px; right: 20px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--raised); border: 1px solid var(--line-strong); border-radius: 16px;
    padding: 9px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  }
  .links.open { display: flex }
  .links a { padding: 11px }
  .contact-link { border: 0 }
  .hero { padding-top: 68px }
  .trust-grid, .cards, .steps, .contact-grid, .footer-grid { grid-template-columns: 1fr }
  .section { padding: 68px 0 }
  .footer-bottom { flex-direction: column }
}

/* ---------- install dialog ---------- */
/* A native <dialog>: Escape closes it, focus is trapped, and the backdrop is
   the browser's own. Reimplementing that in a modal built from divs is how
   these end up unclosable on a keyboard. */

.sheet {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  width: min(100% - 2rem, 30rem);
  max-height: min(90dvh, 44rem);
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
}

.sheet::backdrop { background: rgba(6, 6, 10, .72); backdrop-filter: blur(3px) }

.sheet-body { padding: 1.75rem 1.6rem 1.5rem; position: relative }

.sheet-close {
  position: absolute; top: .75rem; right: .85rem;
  width: 2rem; height: 2rem; border-radius: 8px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.sheet-close:hover { color: var(--ink); background: var(--raised) }

.sheet h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 0 2rem 0 0 }
.sheet-lead { color: var(--muted); margin: .6rem 0 1.4rem }

.sheet h3 {
  display: flex; align-items: center; gap: .6rem;
  font-size: .95rem; font-weight: 600; margin: 0 0 .7rem;
}

.sheet-steps { margin: 0; padding-left: 1.15rem; display: grid; gap: .55rem; color: #b6b7c2 }
.sheet-steps li::marker { color: var(--pink); font-variant-numeric: tabular-nums }

.sheet-note { color: var(--dim); font-size: .85rem; margin: .85rem 0 0 }

.sheet [data-platform] + [data-platform] {
  margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}

.linkish {
  background: 0; border: 0; padding: 0; font: inherit;
  color: #ff85ac; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.sheet-actions {
  display: flex; gap: .6rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
}
.sheet-actions .button { flex: 1 1 auto; min-height: 46px }

@media (max-width: 420px) { .sheet-body { padding: 1.5rem 1.15rem 1.2rem } }
