/*
  A quiet page around Pagewise's real window. The yellow highlight is
  the one mark it shares with the app.
*/
@font-face { font-family: Familjen; src: url(assets/fonts/familjen.woff2) format("woff2"); font-weight: 400 700; font-display: swap }

:root {
  --bg: #f8f8fc;
  --surface: #fff;
  --text: #15152a;
  --muted: #5b5b72;
  --line: #dcdcea;
  --green: #5b52e0;
  --green-ink: #4a41c9;
  --nav: rgb(255 255 255 / .88);
  --ui: Familjen, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f18; --surface: #171723; --text: #eeeef8; --muted: #a0a0b8;
    --line: #2b2b3c; --green: #8d88ff; --green-ink: #a9a5ff; --nav: rgb(23 23 35 / .88); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f18; --surface: #171723; --text: #eeeef8; --muted: #a0a0b8;
  --line: #2b2b3c; --green: #8d88ff; --green-ink: #a9a5ff; --nav: rgb(23 23 35 / .88); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; scroll-padding-top: 72px }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--ui); -webkit-font-smoothing: antialiased }
main, footer { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px }
img { display: block; max-width: 100%; height: auto }
h1, h2, h3, h4, p { margin: 0 }
h1, h2 { text-wrap: balance }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 600 }
a { color: inherit }
button { font: inherit; color: inherit; cursor: pointer }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px }
kbd { font: 600 .92em var(--ui); padding: .05em .4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); white-space: nowrap }

/* Floating nav */
.nav {
  position: fixed; top: 16px; right: 24px; z-index: 10;
  display: flex; align-items: center; gap: 2px; padding: 5px;
  background: var(--nav); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px;
}
.nav a, .nav button {
  display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 6px; background: none; text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav button:hover { background: var(--bg) }
.nav .home { padding: 0 5px }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; padding: 122px 0 36px }
.hero h1 { font-size: clamp(46px, 6.5vw, 86px); line-height: 1.04; font-weight: 600; letter-spacing: -.015em }
.seen-unused { position: relative; display: inline-block; padding: 0 .08em; margin-left: -.08em }
.seen::before {
  content: ""; position: absolute; inset: -.04em -.02em -.02em; border: 3px dashed var(--green); border-radius: 6px;
  animation: draw .7s .3s var(--ease) backwards;
}
.pitch { display: grid; gap: 20px; padding-bottom: 6px }
.pitch > p:first-child { font-size: 21px; line-height: 1.45; max-width: 36ch }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px }
.download {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px;
  background: var(--green); color: #fff; border-radius: 9px; font-weight: 600; text-decoration: none;
  transition: transform .15s var(--ease), filter .15s;
}
:root[data-theme="dark"] .download { color: #0f0d3a }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .download { color: #0f0d3a } }
.download:hover { filter: brightness(1.08) }
.download:active { transform: scale(.97) }
.source { text-underline-offset: 5px }
.needs { color: var(--muted); font-size: 15px }


/* Highlight in the headline, like a quote in the app */
.hero mark { color: inherit; background: linear-gradient(transparent 12%, #ffd640 12%, #ffd640 88%, transparent 88%); padding: 0 .06em; animation: mark .8s .3s var(--ease) backwards }
:root[data-theme="dark"] .hero mark { color: #15152a }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero mark { color: #15152a } }
@keyframes mark { from { background-size: 0 100% } to { background-size: 100% 100% } }
.hero mark { background-repeat: no-repeat }

/* The real window */
.shot { margin: 0 }
.shot img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px rgb(20 20 60 / .22), 0 0 0 1px var(--line) }
.shot img.dark { display: none }
:root[data-theme="dark"] .shot img.light { display: none }
:root[data-theme="dark"] .shot img.dark { display: block }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot img.light { display: none }
  :root:not([data-theme="light"]) .shot img.dark { display: block }
}
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 14px }

/* How it stays honest */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px }
.steps li { counter-increment: step; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 16px }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700 }
.steps b { display: block; margin-bottom: 6px; color: var(--text); font-size: 18px }

/* Sections */
.section { padding: 110px 0 0 }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 36px }
.section-head p { color: var(--muted); font-size: 19px }
.group { margin: 44px 0 16px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink) }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.grid article { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) }
.grid h4 { margin: 12px 0 6px; font-size: 19px; font-weight: 600 }
.grid p { color: var(--muted); font-size: 16px }
.ic {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green-ink); font-size: 18px; font-weight: 700;
}
.kinds { display: flex; flex-wrap: wrap; gap: 10px }
.kinds span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted) }
.kinds b { color: var(--text); font-weight: 600 }

/* Privacy */
.privacy h2 em { font-style: normal; color: var(--green-ink) }
.privacy dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin: 40px 0 0 }
.privacy dt { font-weight: 600; margin-bottom: 6px }
.privacy dd { margin: 0; color: var(--muted) }

/* Install */
.install { display: grid; justify-items: start; gap: 22px; padding-bottom: 40px }
.install ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 19px }

footer { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); margin-top: 80px; color: var(--muted); font-size: 15px }
footer span { margin-right: auto }

@keyframes draw { from { clip-path: inset(0 100% 0 0) } to { clip-path: inset(0 0 0 0) } }

@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px }
  .grid, .privacy dl { grid-template-columns: 1fr 1fr }
}
@media (max-width: 600px) {
  main, footer { padding-inline: 16px }
  .nav { right: 16px }
  .nav .wide { display: none }
  .grid, .privacy dl, .steps { grid-template-columns: 1fr }
  .section { padding-top: 80px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}
