/* keepy.me — one small stylesheet. Brand look from the 2017 site: Ars Maquette, teal #0cc5db, brown text. */
@font-face { font-family: "Ars Maquette"; src: url(/fonts/arsmaquettepro-regular-webfont.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ars Maquette"; src: url(/fonts/arsmaquettepro-medium-webfont.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
:root {
  --teal: #0cc5db;
  --teal-dark: #0899ab;
  --pink: #ee1677;
  --text: #5f4b41;
  --ink: #4a392f;
  --muted: #8a776c;
  --paper: #ffffff;
  --soft: #f3f3f1;
  --line: #e9e4dd;
  --radius: 16px;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 "Ars Maquette", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: #066f7c; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { display: block; width: 110px; height: auto; }
.brand .logo-light { display: none; }
.slogan { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.site-header nav { display: flex; gap: 4px; align-items: center; }
.site-header nav a { white-space: nowrap; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.site-header nav a:hover { color: var(--teal-dark); }
.site-header nav a.nav-login { background: var(--pink); color: #fff; font-weight: 500; padding: 8px 18px; margin-left: 8px; box-shadow: 0 2px 8px rgba(238,22,119,.35); }
.site-header nav a.nav-login:hover { background: #d10f66; color: #fff; }

/* Home: header sits on the hero, white */
.home .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; border: 0; }
.home .brand .logo-dark { display: none; }
.home .brand .logo-light { display: block; width: 130px; }
.home .slogan, .home .site-header nav a { color: #fff; }
.home .site-header nav a:hover { color: #dff8fb; }

/* Pills (buttons) */
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 30px; padding: 14px 24px; font: inherit; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.pill em { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 3px 8px; }
.pill-teal { background: var(--teal); color: #fff; }
.pill-teal:hover { background: var(--teal-dark); color: #fff; }
.pill-pink { background: var(--pink); color: #fff; }
.pill-pink:hover { background: #c80f62; }
.pill-soon { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); cursor: default; }
.pill-white { background: #fff; color: var(--teal-dark); padding: 10px 20px; }
.pill-white:hover { color: #066f7c; }
.pill-white-soon { color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); padding: 9px 18px; cursor: default; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: #2b3136 url(/img/hero.jpg) center / cover no-repeat; }
@supports (background-image: image-set(url(/img/hero.webp) type("image/webp"))) {
  .hero { background-image: image-set(url(/img/hero.webp) type("image/webp"), url(/img/hero.jpg) type("image/jpeg")); }
}
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.hero-video.on { opacity: 1; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); border: 0; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33, 40, 45, .62) 0%, rgba(33, 40, 45, .35) 45%, rgba(0, 0, 0, .05) 80%); }
.hero-inner { position: relative; width: 100%; padding-top: 110px; padding-bottom: 70px; }
.hero h1 { color: #fff; font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3rem); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); max-width: 15em; margin-bottom: 36px; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

/* Reviews */
.reviews { padding: 50px 0 40px; background: #fff; }
.review-strip { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 18px; }
.review { flex: 0 0 min(340px, 85vw); margin: 0; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review img { border-radius: 12px; float: left; margin-right: 12px; }
.review h3 { font-size: 1.1rem; margin: 2px 0 0; color: var(--teal-dark); }
.review .stars { color: #f5b400; letter-spacing: 2px; margin: 0 0 10px; }
.review blockquote { clear: both; margin: 0 0 10px; font-size: .95rem; }
.review figcaption { color: var(--muted); font-size: .85rem; }

/* Store band */
.store-band { background: var(--teal); padding: 30px 0; }

/* How it works rows */
.how { background: var(--soft); padding: 40px 0; }
.how-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 30px 0; }
.how-shot { justify-self: center; width: min(300px, 100%); border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.how-row.reverse .how-shot { order: 2; }
.how-text h3 { display: flex; align-items: center; gap: 14px; color: var(--teal); font-size: 1.75rem; margin-bottom: 18px; }
.how-text h3 img { width: 44px; height: 44px; }
.how-lead { font-size: 1.45rem; color: var(--ink); line-height: 1.35; margin: 0 0 10px; }
.how-text p { max-width: 26em; }

/* Dropbox backup */
.backup { text-align: center; padding: 64px 0; background: linear-gradient(180deg, #eaf9fb 0%, #fff 100%); }
.backup p { font-size: 1.1rem; }

/* Press */
.press { padding: 40px 0 50px; background: #fff; border-top: 1px solid var(--line); }
.press-carousel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.press-track { display: flex; width: max-content; animation: press-scroll 32s linear infinite; }
.press-carousel:hover .press-track, .press-carousel:focus-within .press-track { animation-play-state: paused; }
.press-logos { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex-shrink: 0; }
@keyframes press-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .press-track { animation: none; width: auto; }
  .press-logos { flex-wrap: wrap; justify-content: center; gap: 22px 42px; padding: 0 20px; }
  .press-logos[aria-hidden] { display: none; }
  .press-carousel { -webkit-mask-image: none; mask-image: none; }
}
.press-logos img { height: 40px; width: auto; filter: grayscale(1); opacity: .75; transition: opacity .2s, filter .2s; }
.press-logos a:hover img { filter: none; opacity: 1; }

/* Video dialog */
.video-dialog { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 12px; background: #000; overflow: visible; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: 12px; }
.video-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* Text pages (FAQ, support, legal, blog) */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); }
.page h2 { font-size: 1.45rem; margin-top: 2em; }
.page h3 { margin-top: 1.6em; }
.page .updated { color: var(--muted); }
.page details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: border-color .2s, box-shadow .2s; interpolate-size: allow-keywords; }
.page details:hover { border-color: #bfe9ef; box-shadow: 0 4px 14px rgba(12,197,219,.12); }
.page details[open] { border-color: var(--teal); box-shadow: 0 4px 18px rgba(12,197,219,.16); }
.page summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 500; font-size: 1.08rem; color: var(--ink); border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.page summary::-webkit-details-marker { display: none; }
.page summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.page summary::after { content: ""; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #e7f8fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%230aa8bb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s, background-color .25s; }
.page details[open] summary::after { transform: rotate(45deg); background-color: #d3f3f7; }
.page details > :not(summary) { margin: 0 20px; }
.page details > :last-child { padding-bottom: 18px; }
.page details > p:first-of-type { margin-top: 0; }
.page details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.page details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .page details::details-content { transition: none; } }
@media (max-width: 600px) { .page summary { padding: 16px; font-size: 1rem; } .page details > :not(summary) { margin: 0 16px; } }
.page table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.page th, .page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--soft); }
.table-scroll { overflow-x: auto; }
.callout { background: #eaf9fb; border: 1px solid #bdebf1; border-radius: 14px; padding: 14px 18px; }
.link-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.link-cards a { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; color: var(--ink); }
.link-cards a:hover { border-color: var(--teal); }
.link-cards strong { display: block; font-size: 1.05rem; font-weight: 500; }
.link-cards span { color: var(--muted); }

/* Blog */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 500; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.post-list time, .post-meta { color: var(--muted); font-size: .9rem; display: block; }
.post-body img { border-radius: 10px; }
.post-body iframe { max-width: 100%; }
.archive-note { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: #fff; color: var(--text); padding: 50px 0; font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.site-footer nav a { text-decoration: none; color: var(--ink); padding: 6px 0; }
.site-footer nav a:hover { color: var(--teal-dark); }
.site-footer .copy { color: var(--muted); }

@media (max-width: 900px) {
  .slogan { display: none; }
  .hero { min-height: 560px; }
  .hero-inner { padding-top: 100px; }
  .hero-buttons { justify-content: flex-start; }
  .how-row, .how-row.reverse { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .how-row.reverse .how-shot { order: 0; }
  .how-text h3 { justify-content: center; }
  .how-text p { margin-left: auto; margin-right: auto; }
  .how-shot { width: min(240px, 70%); }
}
@media (max-width: 600px) {
  .header-inner { min-height: 60px; }
  .brand img, .home .brand .logo-light { width: 92px; }
  .site-header nav { gap: 0; }
  .site-header nav a { padding: 8px 6px; font-size: .9rem; }
  .site-header nav .nav-home { display: none; }
  .site-header nav a.nav-login { padding: 6px 12px; margin-left: 4px; }
  .brand img, .home .brand .logo-light { width: 80px; }
  .hero h1 { font-size: 2rem; }
  .pill { padding: 12px 18px; }
  .hero-buttons .store-buttons { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
