/* Home page, documentation and legal pages. The app has its own style.css.
   The signature is the priority stripe: the five colours of NotIf's levels, as in the logo's bars,
   are the only bright colours on the page and always mean a priority. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #23195c; --text: #4a4766; --page: #f4f5f8; --surface: #fff; --line: #dfe1ea; --brand: #4a2fd6; --brand-soft: #ecebfc;
  --l1: #6f6a9a; --l2: #3f76c0; --l3: #178276; --l4: #a86a00; --l5: #e0245e;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  /* kept for older markup */
  --body: var(--text); --sheet: var(--surface); --urgent: var(--l5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, sans-serif; background: var(--page); color: var(--ink); line-height: 1.6; font-size: 17px; -webkit-text-size-adjust: 100%; }
a { color: var(--brand); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
pre, code { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header, shared by every page: the logo comes from CSS so the older page markup gets it too. */
.top { max-width: 1160px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 8px 22px; }
.top .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; color: var(--ink); text-decoration: none; margin-right: auto; }
.top .brand::before { content: ""; width: 30px; height: 30px; background: url(/icons/icon.svg) center / contain no-repeat; }
.top-links { display: flex; align-items: center; gap: 22px; }
.top-links a, .top > a:not(.brand) { padding: 10px 0; text-decoration: none; font-weight: 550; color: var(--ink); font-size: 16px; }
.top-links a:hover, .top > a:not(.brand):hover { color: var(--brand); }
.top-links .top-app { padding: 8px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.top-links .top-app:hover { background: var(--ink); color: #fff; }
@media (max-width: 720px) {
  .top-links a[href$="/docs"], .top-links a[href="/docs"], .top-links a[href="#tarifs"] { display: none; }
}
@media (max-width: 440px) {
  .top { padding: 12px 16px; gap: 8px 14px; }
  .top-links { gap: 14px; }
  .top-links .top-app { padding: 8px 12px; }
  .top > a:not(.brand) { font-size: 15px; }
}

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; background: var(--brand); color: #fff; padding: 10px 20px; border: 0; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--ink); color: #fff; }
.button:disabled { opacity: .6; cursor: wait; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; color: var(--ink); }
.button[hidden] { display: none; }

/* Command blocks: the commands are the page's main typographic element. */
.cmd { margin: 0; padding: 16px 18px; background: var(--ink); color: #fff; border-radius: 10px; font-size: 15px; line-height: 1.55; white-space: pre; overflow-x: auto; }

/* Notification cards, as Android shows them, with the priority stripe. */
.notif { --lvl: var(--l3); display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 12px 14px 12px 12px; border-left: 5px solid var(--lvl); box-shadow: 0 6px 18px rgba(20, 14, 60, .16); font-size: 14px; line-height: 1.4; list-style: none; }
.notif[data-level="1"] { --lvl: var(--l1); }
.notif[data-level="2"] { --lvl: var(--l2); }
.notif[data-level="4"] { --lvl: var(--l4); }
.notif[data-level="5"] { --lvl: var(--l5); }
.notif img { width: 22px; height: 22px; border-radius: 6px; margin-top: 1px; }
.notif p { margin: 0; overflow-wrap: anywhere; }
.notif-head { display: flex; justify-content: space-between; gap: 10px; }
.notif-head b { font-weight: 650; }
.notif-head span { color: var(--text); font-size: 12px; white-space: nowrap; }
.notif-big { font-size: 16px; padding: 16px 18px 16px 16px; }
.notif-big img { width: 26px; height: 26px; }
.notif.arrive { animation: arrive .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes arrive { from { opacity: 0; transform: translateY(-14px) scale(.98); } }

/* Hero: text, live demo and the phone. On a phone the phone sits under the lead, so the demo's result stays in view. */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "title phone" "lead phone" "store phone" "try phone" "actions phone"; column-gap: 56px; align-items: start; padding-top: 40px; padding-bottom: 72px; }
.hero-text { display: contents; }
.hero h1 { grid-area: title; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; font-weight: 760; margin-bottom: 18px; max-width: 13em; }
.lead { grid-area: lead; margin: 0 0 28px; font-size: 19px; color: var(--text); max-width: 34em; }
.try { grid-area: try; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; margin-bottom: 24px; }
.try-title { font-size: 17px; letter-spacing: 0; }
.try-field { display: grid; gap: 6px; font-size: 15px; font-weight: 550; color: var(--text); }
.try-field input { font: inherit; font-size: 17px; color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; min-height: 46px; background: var(--page); }
.try-field input:focus { border-color: var(--brand); outline: none; }
.try-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.try .cmd { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.text-button { justify-self: start; font: inherit; font-size: 15px; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--ink); }
.text-button[hidden] { display: none; }
.try-status:empty { display: none; }
.try-status { margin: 0; min-height: 1.5em; font-size: 15px; font-weight: 550; color: var(--l3); }
.try-hint { margin: 0; font-size: 14px; color: var(--text); }
.try-hint code, .steps code { background: var(--page); padding: 1px 6px; border-radius: 5px; font-size: .92em; overflow-wrap: anywhere; }
.hero-store { grid-area: store; margin: -8px 0 28px; }
.actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.phone { grid-area: phone; justify-self: center; width: min(100%, 330px); border-radius: 44px; padding: 11px; background: var(--ink); box-shadow: 0 24px 60px rgba(20, 14, 60, .28); }
.phone-screen { border-radius: 34px; min-height: 520px; padding: 22px 14px; background: #34307a; }
.phone-time { margin: 18px 0 28px; text-align: center; color: #fff; font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.phone-list { margin: 0; padding: 0; display: grid; gap: 10px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lead" "store" "phone" "try" "actions"; padding-top: 16px; padding-bottom: 48px; }
  .lead { margin-bottom: 24px; font-size: 18px; }
  .phone { width: min(100%, 360px); border-radius: 30px; padding: 8px; margin-bottom: 20px; }
  .phone-screen { min-height: 0; border-radius: 23px; padding: 14px 12px 16px; }
  .phone-time { margin: 6px 0 14px; font-size: 40px; }
  .phone-list .notif:nth-child(n+3) { display: none; }
}

/* Sections */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > .wrap { padding-top: 72px; padding-bottom: 72px; }
.band h2, .uses > h2, .team h2, .faq > h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 28px; }
@media (max-width: 860px) { .band > .wrap { padding-top: 48px; padding-bottom: 48px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text); }
@media (max-width: 600px) {
  .steps { gap: 24px; }
  .steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
  .where > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; }
  .where svg { grid-row: span 3; margin-bottom: 0; }
}

.uses { padding-top: 72px; padding-bottom: 72px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 20px; scrollbar-width: thin; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; min-height: 42px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.use { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: center; }
.uses-note { margin: 20px 0 0; color: var(--text); max-width: 46em; }
@media (max-width: 860px) { .uses { padding-top: 48px; padding-bottom: 48px; } .use { grid-template-columns: minmax(0, 1fr); } }

.where { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.where svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.where h3 { font-size: 20px; margin-bottom: 6px; }
.where p { margin: 0 0 10px; color: var(--text); }
.where a { font-weight: 600; text-decoration: none; }
.where a:hover { text-decoration: underline; }
.play-badge { display: inline-flex; align-self: center; justify-self: start; border-radius: 8px; }
.play-badge img, img[src^="/icons/google-play-"] { display: block; width: auto; height: 46px; }
.ntfy { margin: 36px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--page); color: var(--ink); max-width: 52em; }

.team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.team h2 { margin-bottom: 12px; }
.team p { margin: 0; color: var(--text); max-width: 34em; }
@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 48px; padding-bottom: 48px; } }

.pricing h2 { margin-bottom: 6px; }
.pricing-sub { margin: 0 0 28px; color: var(--text); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.plans article { display: flex; flex-direction: column; gap: 8px; background: var(--page); padding: 22px; border-radius: var(--radius); }
.plans h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.plans p { margin: 0; color: var(--text); }
.plans .price { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.plans .price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text); margin-left: 2px; }
.plans .button { margin-top: auto; align-self: flex-start; }
.soon { font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.waitlist { margin-top: 24px; max-width: 640px; }
.waitlist label { display: grid; gap: 8px; font-weight: 600; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input { flex: 1 1 240px; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; min-height: 46px; background: var(--surface); color: var(--ink); }
.waitlist input:focus { border-color: var(--brand); outline: none; }
#waitlist-status { margin: 10px 0 0; min-height: 1.5em; font-weight: 550; }
.waitlist .legal-note { margin: 4px 0 0; font-size: 14px; color: var(--text); }
.business { margin: 28px 0 0; color: var(--text); }

.faq { padding-top: 72px; padding-bottom: 72px; }
.faq > details { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--text); max-width: 44em; }
@media (max-width: 860px) { .faq { padding-top: 48px; padding-bottom: 48px; } }

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

/* Footer, shared by every page */
.foot { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; border-top: 1px solid var(--line); }
.foot > span { margin-right: auto; font-weight: 700; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.langs { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 0 13px; font-size: 14px; margin-top: 8px; }
.langs a, .langs span { display: inline-flex; align-items: center; min-height: 40px; }
.foot .langs span { margin-right: 0; font-weight: 650; color: var(--ink); }
.hub { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.hub a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; }
.hub a:hover { text-decoration: underline; }
.hub img { display: block; width: 133px; height: 20px; }
.hub small { font-size: 13px; }

/* Documentation and legal pages */
.docs { background: var(--surface); }
.docs .top { max-width: none; border-bottom: 1px solid var(--line); }
.docs .foot { max-width: 1160px; margin: 0 auto; }
.legal-main { max-width: 860px; margin: 0 auto; }
.updated { color: var(--text); font-size: 15px; }
.legal-note { color: var(--text); }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1160px; margin: 0 auto; }
.toc { padding: 28px 24px; border-right: 1px solid var(--line); }
.toc-mobile { display: none; }
.toc h2 { font-size: 14px; letter-spacing: 0; color: var(--text); margin: 20px 0 6px; }
.toc h2:first-of-type { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 15px; }
.toc a:hover { background: var(--page); }
.toc a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.article { padding: 32px 40px 64px; min-width: 0; color: var(--text); }
.article > :first-child { margin-top: 0; }
.article h1 { font-size: 38px; color: var(--ink); margin-bottom: 20px; letter-spacing: -.025em; }
.article h2 { font-size: 25px; color: var(--ink); margin: 44px 0 12px; scroll-margin-top: 16px; }
.article h3 { font-size: 19px; color: var(--ink); margin: 30px 0 8px; scroll-margin-top: 16px; }
.article p, .article ul, .article ol { max-width: 44em; }
.article li { margin: 4px 0; }
.article pre { background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.article pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.article code { background: var(--page); color: var(--ink); padding: 1px 5px; border-radius: 5px; font-size: .88em; overflow-wrap: anywhere; }
.article table { border-collapse: collapse; display: block; overflow-x: auto; margin: 16px 0; font-size: 15px; }
.article th, .article td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--ink); }
.article blockquote { margin: 16px 0; padding: 4px 16px; border-left: 4px solid var(--brand); background: var(--page); max-width: 44em; border-radius: 0 8px 8px 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .layout { display: block; }
  /* On a phone the docs menu folds into one line, so the page starts with its content. */
  .toc { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 16px; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; }
  .toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 650; cursor: pointer; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { content: "+"; font-size: 22px; color: var(--brand); }
  .toc details[open] summary::after { content: "−"; }
  .toc details > :last-child { padding-bottom: 16px; }
  .article { padding: 24px 16px 48px; }
  .article h1 { font-size: 31px; }
}

/* Japanese headings break between phrases rather than inside a word (Chrome 119+). */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
