/* Hushpix website. Colours come from the app icon: night blue, a coral orb, frosted glass. */

:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #efece4;
  --ink: #151a28;
  --ink-2: #4c5368;
  --line: #dcd8cd;
  --accent: #b93c1c;
  --coral: #ff8a5b;
  --coral-deep: #d2472f;
  --on-coral: #141826;
  --warn-bg: #fff4e5;
  --warn-ink: #7a3a00;
  --warn-line: #f3c68f;
  --shadow: 0 1px 2px rgb(20 24 38 / 6%), 0 8px 24px rgb(20 24 38 / 8%);
  --radius: 18px;
  --wrap: 1120px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c101c;
    --surface: #161c2e;
    --surface-2: #1c2338;
    --ink: #eceef5;
    --ink-2: #a3aabf;
    --line: #2a3249;
    --accent: #ff9a6b;
    --warn-bg: #2a1e14;
    --warn-ink: #ffd8b0;
    --warn-line: #6b4320;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 28%);
  }
}

/* The hero is always night, whatever the theme: it is the icon's tile. */
.night, .on-night {
  color-scheme: dark;
  --bg: #121828;
  --surface: rgb(255 255 255 / 6%);
  --surface-2: rgb(255 255 255 / 10%);
  --ink: #f0f2f8;
  --ink-2: #b4bacd;
  --line: rgb(255 255 255 / 14%);
  --accent: #ffb08a;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif; }
:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", system-ui, sans-serif; }
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif; }
:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif; }
:lang(th) { --font: -apple-system, BlinkMacSystemFont, "Thonburi", "Leelawadee UI", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif; }
body, button, input, summary { font-family: var(--font); }
:lang(ko) :is(h1, h2, h3, p, li, dd, summary) { word-break: keep-all; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
:lang(th) body, body:lang(th) { line-height: 1.8; }
:lang(de), :lang(ru), :lang(fr), :lang(es), :lang(it), :lang(pt-BR), :lang(tr), :lang(id), :lang(vi) { hyphens: auto; }

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
:lang(zh-Hans) :is(h1, h2, h3), :lang(zh-Hant) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3), :lang(th) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol.steps { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--coral); color: var(--on-coral); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header { position: relative; z-index: 5; }
.site-header.overlay { position: absolute; inset: 0 0 auto; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.brand-sub { font-weight: 500; color: var(--ink-2); font-size: .9375rem; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .9375rem; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
@media (min-width: 860px) { .nav { display: flex; } }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: .9375rem;
  background: var(--surface);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--surface-2); }
.lang summary .chev { width: 1em; height: 1em; transition: transform .15s; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); width: max-content; min-width: 200px; max-height: min(70vh, 520px); overflow: auto;
  padding: 6px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #ffffff; color: #151a28;
}
.on-night .lang ul { background: #1a2134; color: #eceef5; }
@media (prefers-color-scheme: dark) { .lang ul { background: #1a2134; color: #eceef5; } }
.lang ul a { display: block; padding: 8px 12px; border-radius: 9px; color: inherit; text-decoration: none; font-size: .9375rem; }
.lang ul a:hover { background: rgb(127 127 127 / 14%); }
.lang ul a[aria-current] { font-weight: 700; }
.lang ul a[aria-current]::after { content: " ✓"; color: var(--coral); }

/* Hero */
.night {
  background:
    radial-gradient(60rem 40rem at 78% 18%, rgb(255 154 107 / 22%), transparent 60%),
    radial-gradient(40rem 30rem at 8% 100%, rgb(255 138 91 / 8%), transparent 70%),
    linear-gradient(180deg, #222a44 0%, #0c101c 100%);
  color: var(--ink);
}
.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 116px 0 96px; } }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
:lang(zh-Hans) .eyebrow, :lang(zh-Hant) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(th) .eyebrow { letter-spacing: .04em; text-transform: none; font-size: .875rem; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4rem); font-weight: 750; }
.hero .lead { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 36rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--coral); color: var(--on-coral); font-weight: 650;
}
.button-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550;
}
.button-ghost:hover { background: var(--surface-2); text-decoration: none; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--ink-2); font-size: .9375rem; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .icon { color: var(--coral); width: 1.1em; height: 1.1em; }

/* The demo: a practice image with fictional details, covered three ways */
.demo { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
.demo-photo {
  background: #eef1f6; color: #1e2433; border-radius: 22px; padding: 22px 20px 64px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 45%), 0 0 0 1px rgb(255 255 255 / 8%);
}
.demo-photo .t { font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.demo-photo .s { font-size: .8125rem; color: #5a6275; margin-top: 2px; }
.bubble { background: #ffffff; border-radius: 16px; padding: 14px 16px; margin-top: 18px; max-width: 92%; }
.bubble .who { font-size: .8125rem; font-weight: 700; }
.bubble p { margin-top: 6px; font-size: .9375rem; }
.bubble.me { margin-left: auto; background: #dbe6f7; max-width: 78%; font-size: .9375rem; }
.secret { position: relative; display: block; width: fit-content; font-size: 1.0625rem; line-height: 1.5; margin-top: 10px; transition: filter .2s; }
.secret::after {
  content: ""; position: absolute; inset: -2px -6px; border-radius: 5px; background: #1b2132;
  transition: opacity .2s;
}
.demo:has(#cover-pixel:checked) .secret::after {
  background: url("/assets/img/mosaic.2763b3c4c8.svg") center / 100% 100%; image-rendering: pixelated;
}
.demo:has(#cover-blur:checked) .secret { filter: blur(5px); }
.demo:has(#cover-blur:checked) .secret::after { opacity: 0; }
.demo.comparing .secret, .demo:has(.compare:active) .secret { filter: none; }
.demo.comparing .secret::after, .demo:has(.compare:active) .secret::after { opacity: 0; }

.demo-panel {
  margin: -34px 14px 0; position: relative; padding: 14px; border-radius: 18px;
  background: rgb(22 28 46 / 72%); border: 1px solid rgb(255 255 255 / 12%);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 40px rgb(0 0 0 / 35%);
}
.demo-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.demo-panel legend { font-size: .8125rem; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: rgb(0 0 0 / 25%); }
.segments input { position: absolute; opacity: 0; pointer-events: none; }
.segments label {
  text-align: center; padding: 8px 6px; border-radius: 9px; cursor: pointer; font-size: .9375rem; color: var(--ink-2);
  user-select: none; transition: background .15s, color .15s;
}
.segments input:checked + label { background: #33405f; color: #ffffff; font-weight: 600; }
.segments input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 1px; }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.compare {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 6%); color: var(--ink); font-size: .875rem;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.compare:active, .demo.comparing .compare { background: rgb(255 255 255 / 16%); }
.demo-note { font-size: .875rem; color: var(--ink-2); margin-top: 12px; }
.demo-note.soft { display: none; }
.demo:has(#cover-pixel:checked) .demo-note.solid, .demo:has(#cover-blur:checked) .demo-note.solid { display: none; }
.demo:has(#cover-pixel:checked) .demo-note.soft, .demo:has(#cover-blur:checked) .demo-note.soft { display: block; color: #ffd0b8; }

/* Sections */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.625rem); font-weight: 720; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.125rem; }
.section .eyebrow { color: var(--accent); }

.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.125rem; font-weight: 680; }
.card p { margin-top: 8px; color: var(--ink-2); }
.badge {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--accent);
}
.badge .icon { width: 22px; height: 22px; }
.step-top { display: flex; align-items: flex-start; justify-content: space-between; }
.step-no { font-variant-numeric: tabular-nums; font-weight: 750; font-size: 2.5rem; line-height: 1; color: color-mix(in srgb, var(--ink) 14%, transparent); }

/* Free and Pro */
.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: 28px; }
.plan h3 { font-size: 1.5rem; font-weight: 740; }
.plan .sub { margin-top: 4px; color: var(--ink-2); }
.plan ul { margin-top: 20px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--accent); margin-top: .22em; width: 1.1em; height: 1.1em; }
.plan .note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.plan.pro {
  border-color: color-mix(in srgb, var(--coral) 55%, var(--line));
  background:
    radial-gradient(30rem 16rem at 100% 0%, color-mix(in srgb, var(--coral) 14%, transparent), transparent 70%),
    var(--surface);
}
.next {
  margin-top: 16px; display: grid; gap: 20px; align-items: center;
  background: linear-gradient(135deg, #222a44, #0c101c); color: #f0f2f8; border: 0;
}
.next .eyebrow { color: #ffb08a; margin-bottom: 8px; }
.next h3 { font-size: 1.375rem; }
.next p { color: #c3c8d8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%); font-weight: 600; font-size: .9375rem;
}
.chips .icon { color: #ffb08a; }
@media (min-width: 860px) { .next { grid-template-columns: 1.6fr 1fr; padding: 32px; } .chips { justify-content: flex-end; } }

/* Privacy */
.net { margin-top: 16px; padding: 8px 24px; }
.net h3.net-title { font-size: 1.25rem; padding: 18px 0 6px; }
.net-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.net-item:first-of-type { border-top: 0; }
.net-item .badge { margin: 2px 0 0; grid-row: span 2; }
.net-item h4 { margin: 0; font-size: 1.0625rem; }
.net-item p { margin: 0; color: var(--ink-2); }
.limits {
  margin-top: 16px; display: flex; gap: 14px; align-items: flex-start;
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink);
}
.limits .icon { width: 24px; height: 24px; margin-top: 2px; }
.limits h3 { font-size: 1.0625rem; color: inherit; }
.limits p { color: inherit; margin-top: 4px; }
.policy-link { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.policy-link a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.policy-link .lang-note { color: var(--ink-2); font-size: .9375rem; }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin-inline: -4px;
  overscroll-behavior-x: contain;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 24px; background: #161c2e;
  border: 4px solid #2a3249; box-shadow: var(--shadow);
}
.shots figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-2); }
.shots-note { margin-top: 8px; font-size: .875rem; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 640; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .9375rem; color: var(--ink-2); background: var(--bg); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr 1.4fr; } }
.footer-grid .brand { margin: 0 0 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.footer-links a { color: var(--ink); }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.langs a { color: var(--ink-2); text-decoration: none; }
.langs a:hover { color: var(--ink); text-decoration: underline; }
.langs a[aria-current] { color: var(--ink); font-weight: 650; }
.fine { margin-top: 24px; display: grid; gap: 4px; font-size: .8125rem; }

/* Policy and error pages */
.page-header { border-bottom: 1px solid var(--line); }
.policy { max-width: 760px; padding: 48px 0 72px; }
.policy h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 740; }
.policy .policy-date { margin-top: 10px; color: var(--ink-2); }
.policy > p { margin-top: 18px; }
.policy .owner { background: var(--surface-2); border-radius: 12px; padding: 16px 18px; }
.policy section { margin-top: 40px; }
.policy h2 { font-size: 1.375rem; font-weight: 700; }
.policy section p { margin-top: 12px; }
.policy .other { margin-top: 18px; color: var(--ink-2); font-size: .9375rem; }
.error { padding: 96px 0 120px; max-width: 680px; }
.error h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); }
.error p { margin-top: 14px; color: var(--ink-2); font-size: 1.125rem; }
.error .cta { margin-top: 28px; }
.error .soon { text-decoration: none; }
.error .langs { margin-top: 40px; }
