/* NotiFlick homepage, design "Ink": a centered hero over a live picker on a Mac screen. Also styles /faq. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #EAF2FD;
  --ink: #0D1A33;
  --muted: #44506A;
  --line: #B8C6DD;
  --green: #30D158;
  --accent: #30D158; /* the ring and badge color; the Customize style swatches change it */
  --green-ink: #07210F;
  --focus: #0B4FC4;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: max(16px, 3vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); overflow-x: hidden; }
a { color: var(--ink); }
a:hover { color: #1D5FD1; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* "Try the live demo": a short label right above the screen. */
/* The demo's heading sits on the screen's left edge, with what to do under it. */
.demo-head { width: 100%; max-width: 1040px; margin: 24px 0 -12px; text-align: left; }
.demo-label { margin: 0; display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.live { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: live 1.8s ease-out infinite; }
@keyframes live { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } to { box-shadow: 0 0 0 8px transparent; } }
.demo-sub { margin: 4px 0 0 20px; font-size: 16px; color: var(--muted); }
.sub-tap { display: none; }
@media (hover: none) and (pointer: coarse) {
  .sub-keys { display: none; }
  .sub-tap { display: inline; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: #FFFFFF; font-weight: 700; }
.skip:focus { top: 12px; }
.grow { flex: 1; }
kbd { font: 700 .8em/1 var(--mono); background: #FFFFFF; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; white-space: nowrap; color: var(--ink); }

/* Header */
.top { padding: 0 var(--gutter); }
.nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 20px 0; }
.nav a { text-decoration: none; font-weight: 600; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800 !important; font-size: 18px; }
.brand svg { flex: none; }
.ver { font: 700 11px/1 var(--mono) !important; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.nav-buy { font-weight: 700 !important; background: #FFFFFF; padding: 10px 16px; border-radius: 12px; }

main { padding: 0 var(--gutter); }
main > section { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero h1 { margin: 40px 0 0; font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 800; max-width: 12ch; text-wrap: balance; }
.mark { background: linear-gradient(transparent 58%, rgba(48, 209, 88, .5) 58%); padding: 0 .04em; }
.lede { margin: 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 17px; text-decoration: none; }
.btn-ink { background: var(--ink); color: #FFFFFF; box-shadow: 0 10px 24px rgba(13, 26, 51, .25); }
.btn-ink:hover { background: #22324F; color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { background: #F6F9FE; }
.tag { font: 700 13px/1 var(--mono); background: var(--ink); color: #FFFFFF; padding: 6px 8px; border-radius: 7px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.checks li::before { content: '✓ '; color: #1A7F37; font-weight: 800; }

/* The Mac screen with the live picker */
.screen { position: relative; width: 100%; max-width: 1040px; aspect-ratio: 16 / 9; margin-top: 0; border-radius: 22px; background: linear-gradient(180deg, #5E9BE8 0%, #A8CBF2 60%, #F3E6CF 100%); overflow: hidden; box-shadow: 0 30px 70px rgba(13, 26, 51, .22); text-align: left; scroll-margin-top: 24px; }
.menubar { position: relative; height: 32px; background: rgba(13, 26, 51, .28); color: #FFFFFF; display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 13px; font-weight: 600; }
.window { position: absolute; left: 6%; top: 15%; width: 40%; height: 62%; border-radius: 14px; background: rgba(255, 255, 255, .78); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; transition: background .2s; }
.window p { margin: 0; }
/* The desktop starts clean: the app window shows only once a notification opens. */
.window { visibility: hidden; opacity: 0; transform: scale(.97); }
.window.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease-out, transform .2s ease-out, background .2s; }
.win-app { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.win-title { font-size: clamp(18px, 2vw, 24px); font-weight: 800; line-height: 1.2; }
.win-body { font-size: 15px; color: #26324A; }
.window.is-new { animation: flash .6s ease-out; }
@keyframes flash { from { background: #FFFFFF; transform: scale(1.015); } to { background: rgba(255, 255, 255, .78); transform: none; } }

.sidebar { position: absolute; top: 46px; right: 14px; width: min(46%, 380px); }
/* Like the real sidebar, the rows show only while Notification Center is open: it slides in from the right edge. */
.sidebar { visibility: hidden; opacity: 0; transform: translateX(calc(100% + 14px)); transition: transform .3s ease-in, opacity .3s ease-in, visibility 0s .3s; }
.nc-open .sidebar { visibility: visible; opacity: 1; transform: none; transition: transform .3s cubic-bezier(.2, .8, .3, 1), opacity .2s ease-out, visibility 0s; }
.rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.row { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block; width: 100%; background: rgba(255, 255, 255, .96); border-radius: 14px; padding: 11px 14px 11px 48px; font-size: 13px; line-height: 1.35; color: #172033; box-shadow: 0 1px 3px rgba(13, 26, 51, .12); transition: box-shadow .15s ease-out, transform .3s ease-in, opacity .3s ease-in; }
.row b { font-weight: 700; }
.row .meta { display: flex; justify-content: space-between; gap: 8px; color: #56627A; font-size: 12px; }
.row:hover { box-shadow: 0 2px 10px rgba(13, 26, 51, .18); }
.row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.row.is-sel { box-shadow: 0 0 0 2.5px var(--accent), 0 0 0 7px color-mix(in srgb, var(--accent) 28%, transparent); }
/* A row that goes fades where it is: sliding it right as well looked like a second slide next to the sidebar's own. */
.row.is-gone { transform: scale(.96); opacity: 0; transition-delay: var(--out, 0ms); }
.badge { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--green-ink); display: grid; place-items: center; font: 700 12px/1 var(--mono); transition: background .2s; }
.empty { background: rgba(255, 255, 255, .9); border-radius: 14px; padding: 16px; text-align: center; font-size: 14px; }
.empty[hidden] { display: none; }
.empty p { margin: 0; color: var(--muted); }

/* Picker: badges pop in one after another, then pulse until a number is pressed. */
@keyframes pop { from { transform: translateY(-50%) scale(.3); opacity: 0; } to { transform: translateY(-50%) scale(1); opacity: 1; } }
@keyframes pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } to { box-shadow: 0 0 0 9px transparent; } }
.picking .badge { animation: pop .3s cubic-bezier(.2, .9, .3, 1.3) both, pulse 1.3s ease-out infinite; animation-delay: calc(var(--i, 0) * 45ms), calc(var(--i, 0) * 45ms + .3s); }

/* The guide: one step at a time, inside the screen. Its keys are buttons, so a tap does what the key does. */
.guide { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; justify-content: center; background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: 10px 12px 10px 16px; box-shadow: 0 12px 30px rgba(13, 26, 51, .3); font-size: 15px; }
.guide[hidden] { display: none; }
.guide p { margin: 0; }
.guide-step { font: 700 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #9FB0CC; white-space: nowrap; }
.guide-text { font-weight: 600; line-height: 2.3; white-space: nowrap; }
.gwords { margin: 0 10px 0 6px; }
.gwords:last-child { margin-right: 2px; }
.gkey { all: unset; box-sizing: border-box; display: inline-block; vertical-align: middle; margin: 0 2px; line-height: 1; cursor: pointer; font: 700 13px/1 var(--mono); min-width: 32px; padding: 7px 8px; text-align: center; border-radius: 8px; background: #FFFFFF; color: var(--ink); border: 1px solid #FFFFFF; border-bottom: 3px solid #9FB0CC; }
.gkey:hover { background: #E6EEFB; }
.gkey:active { transform: translateY(1px); border-bottom-width: 2px; }
.gkey:focus-visible { outline: 3px solid #7FB2FF; outline-offset: 2px; }
.gkey.wide { padding: 7px 12px; font-family: var(--sans); font-size: 14px; }
.guide.is-new { animation: nudge .45s ease-out; }
@keyframes nudge { from { transform: translateX(-50%) translateY(8px); opacity: .4; } to { transform: translateX(-50%); opacity: 1; } }

/* Features: four cards, each with a small picture of what it does */
.features { margin-top: 96px; scroll-margin-top: 24px; }
.features h2 { margin: 0 0 28px; text-align: center; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.fgrid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature { background: #FFFFFF; border-radius: 24px; padding: 28px; box-shadow: 0 1px 2px rgba(30, 70, 140, .06), 0 10px 30px rgba(30, 70, 140, .07); display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 6px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.art { height: 132px; border-radius: 16px; background: #F1F6FD; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px; }
.k { font: 700 18px/1 var(--mono); min-width: 48px; padding: 14px 10px; text-align: center; border-radius: 12px; background: #FFFFFF; border: 1px solid #C9D6EA; border-bottom-width: 4px; color: var(--ink); }
.k-wide { padding-left: 14px; padding-right: 14px; }
.art-keys .k:first-child { background: var(--ink); color: #FFFFFF; border-color: var(--ink); border-bottom-color: #3A4A68; }
.art-vim .k { font-size: 17px; min-width: 42px; padding: 12px 8px; }
.art-swipe { gap: 28px; }
.pad { position: relative; width: 120px; height: 80px; border-radius: 12px; background: #FFFFFF; border: 1px solid #C9D6EA; }
.dot { position: absolute; top: 28px; right: 14px; width: 12px; height: 12px; border-radius: 50%; background: #1D5FD1; opacity: .8; animation: swipe 2.4s ease-in-out infinite; }
.dot + .dot { top: 46px; }
@keyframes swipe { 0%, 15% { transform: none; opacity: 0; } 25% { opacity: .8; } 60% { transform: translateX(-70px); opacity: .8; } 75%, 100% { transform: translateX(-70px); opacity: 0; } }
.mini { display: flex; flex-direction: column; gap: 6px; }
.b { display: flex; align-items: center; width: 92px; height: 22px; border-radius: 6px; background: #FFFFFF; border: 1px solid #DCE5F2; padding: 0 4px; }
.b i { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: var(--green-ink); font: 700 9px/15px var(--mono); font-style: normal; text-align: center; transition: background .2s; }
.art-swatch { gap: 14px; }
.sw { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(13, 26, 51, .12); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--c); }
.sw:focus-visible { outline: 3px solid var(--focus); outline-offset: 7px; }

/* Price */
.buy { margin-top: 96px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; scroll-margin-top: 24px; }
.price { margin: 0; font-size: clamp(56px, 7vw, 88px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.price-note { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1747A6; }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.perks li::before { content: '✓ '; color: #1A7F37; font-weight: 800; }

/* FAQ */
.faq { max-width: 760px !important; margin-top: 88px; scroll-margin-top: 24px; }
.faq-page { margin-top: 32px; }
.faq-page h1 { font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -.03em; margin-bottom: 24px; }
.faq-link { margin: 10px 0 0 !important; font-size: 15px; }
.faq-link a { font-weight: 700; color: #1747A6; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.faq h2, .faq h1 { margin: 0 0 16px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; text-align: center; }
details { background: #FFFFFF; border-radius: 16px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(30, 70, 140, .06); }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style-position: inside; }
summary::-webkit-details-marker { color: #627595; }
details > p, details > ul { margin: 0; padding: 0 20px 18px; color: var(--muted); }
details > ul { padding-left: 40px; }
details li + li { margin-top: 6px; }

/* Footer */
.foot { margin-top: 56px; padding: 0 var(--gutter) 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; text-align: center; }
.foot nav { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.foot p { margin: 0; font-size: 14px; color: var(--muted); }

/* Phones: the screen grows to fit the rows, and the app window sits above them. */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { gap: 8px 14px; padding: 16px 0; }
  .nav-buy { padding: 8px 12px; }
  .hero { gap: 22px; }
  .demo-head { margin: 12px 0 -8px; }
  .hero h1 { margin-top: 16px; font-size: clamp(40px, 12vw, 64px); }
  .ctas { align-self: stretch; flex-direction: column; }
  /* A fixed height, so the screen does not grow or shrink as rows come and go. The window, the sidebar
     and the guide sit on it, like on the desktop: the sidebar covers the window while it is open. */
  .screen { aspect-ratio: auto; height: 490px; border-radius: 18px; }
  .menubar span:not(#clock):not(.grow) { display: none; }
  .window { left: 12px; right: 12px; top: 44px; width: auto; height: auto; padding: 14px 16px; gap: 2px; }
  .win-title { font-size: 18px; }
  .sidebar { left: 12px; right: 12px; top: 44px; width: auto; z-index: 1; }
  .nc-open .window { opacity: 0; } /* the open window would show through the gaps between rows */
  .row { font-size: 14px; }
  .guide { left: 12px; right: 12px; bottom: 12px; transform: none; width: auto; max-width: none; z-index: 2; justify-content: flex-start; }
  @keyframes nudge { from { transform: translateY(8px); opacity: .4; } to { transform: none; opacity: 1; } }
  .features { margin-top: 64px; }
  .fgrid { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 20px; border-radius: 20px; }
  .feature h3 { font-size: 20px; }
  .art { height: 112px; gap: 8px; }
  .k { min-width: 42px; font-size: 16px; padding: 12px 8px; }
  .k-wide { padding-left: 10px; padding-right: 10px; }
  .buy, .faq { margin-top: 64px; }
  .faq-page { margin-top: 16px; }
  summary { padding: 14px 16px; }
  details > p, details > ul { padding: 0 16px 16px; }
  details > ul { padding-left: 34px; }
}

@media (max-width: 420px) {
  .ver { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row, .window, .sidebar, .nc-open .sidebar { transition: none; }
  .window.is-new { animation: none; }
  .picking .badge { animation: none; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--accent); }
  .guide.is-new, .dot, .live { animation: none; }
  .dot { opacity: .8; transform: translateX(-35px); }
}
