/* Private Passwords website. Every colour comes from the theme in force (themes.css, made from the app's theme files):
   --c-* colours, --t-*-a/-b tints, --wash-a/-b the ground, --scenery-* the theme's place. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--c-text-primary);
  background: var(--wash-b);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* The theme's whole scene behind every page, as the app paints its scenery behind every panel: held still while the
   glass panels move over it. A fixed layer, not a fixed background, so it holds on iPhone too. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--wash-b) var(--scenery-wide) center bottom / cover no-repeat;
}
@media (orientation: portrait) { body::before { background-image: var(--scenery-tall); } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); }
h1, h2 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; font-weight: 800; letter-spacing: -0.012em; line-height: 1.08; margin: 0; }
p { margin: 0; }

.accent {
  background: linear-gradient(100deg, var(--t-signature-a), var(--t-signature-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Glass, as the app's panels ---- */
.glass, .header, .menu, .picker, .base, .glass-link, .message-words, .opening-in {
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--c-glass-edge);
  box-shadow: 0 18px 50px var(--c-shadow);
}

/* ---- The header ---- */
.header { position: sticky; top: 0; z-index: 20; border-width: 0 0 1px; border-radius: 0; box-shadow: 0 1px 0 var(--c-hairline); }
.header-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
/* The icon and the name, large (owner, 17 November 2026), the name in the theme's accent as the app shows it. */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.015em; white-space: nowrap; margin-right: auto; }
.brand img { flex: none; width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 4px 14px var(--c-shadow); }
.nav { display: flex; gap: 20px; }
.nav a, .base-nav a { color: var(--c-text-secondary); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .base-nav a:hover { color: var(--c-text-primary); }

/* Apple's own badges, unchanged: black on a light page, white on a dark one, at least 40 px high, with clear space
   round each of at least a quarter of its height. */
.downloads { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge { display: block; flex: none; line-height: 0; }
.downloads-header { flex-wrap: nowrap; }
.badge img { height: 40px; width: auto; }
.downloads-opening .badge img { height: 54px; }
.on-dark { display: none !important; }
:root[data-scheme="dark"] .on-dark { display: block !important; }
:root[data-scheme="dark"] .on-light { display: none !important; }

.theme-button, .menu-button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px;
  color: var(--c-text-secondary); background: transparent; border: 1px solid var(--c-hairline); border-radius: 999px; padding: 7px 12px;
}
.swatch { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--t-signature-a), var(--t-signature-b)); }
.menu-button { display: none; width: 40px; height: 36px; padding: 0; justify-content: center; }
.menu-button span, .menu-button span::before, .menu-button span::after { content: ""; display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; position: relative; }
.menu-button span::before { position: absolute; top: -5px; } .menu-button span::after { position: absolute; top: 5px; }

/* ---- Popovers: the theme picker and the small menu ---- */
[popover] { color: var(--c-text-primary); margin: 0; inset: auto; border-radius: 22px; padding: 18px; background: var(--c-menu-ground); }
.picker { top: 86px; right: 16px; left: auto; width: min(640px, calc(100vw - 32px)); }
.picker h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--c-text-secondary); }
.appearance { display: inline-flex; padding: 3px; margin-bottom: 14px; border-radius: 999px; background: var(--c-highlight); }
.appearance button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 6px 16px; cursor: pointer; background: transparent; color: var(--c-text-secondary); }
.appearance button[aria-pressed="true"] { background: var(--c-menu-ground); color: var(--c-text-primary); box-shadow: 0 1px 4px var(--c-shadow); }
.appearance-icons { margin: 0; flex: none; border: 1px solid var(--c-hairline); background: transparent; }
.appearance-icons button { width: 32px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.appearance-icons svg { width: 17px; height: 17px; }
.menu .appearance { margin: 8px 0 0; }
.menu { top: 86px; right: 16px; left: auto; min-width: 200px; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--c-text-primary); font-weight: 600; }
.menu a:hover, .menu-theme:hover { background: var(--c-highlight); }
.menu-theme { display: none; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-top: 1px solid var(--c-hairline); border-radius: 12px; background: transparent; font: inherit; font-weight: 600; color: var(--c-text-primary); cursor: pointer; }
[popover]::backdrop { background: var(--c-scrim); }

/* ---- Theme tiles ---- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.tile { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: center; font-weight: 600; font-size: 14px; color: var(--c-text-secondary); }
.tile img { width: 100%; aspect-ratio: 412 / 300; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 18px var(--c-shadow); outline: 3px solid transparent; outline-offset: 2px; transition: transform .15s; }
.tile:hover img { transform: translateY(-2px); }
.tile[aria-pressed="true"] img { outline-color: var(--t-signature-b); }
.tile[aria-pressed="true"] { color: var(--c-text-primary); }
.tile:focus-visible img { outline-color: var(--c-link); }
.tiles-large { gap: 22px; margin-top: 30px; }
.tiles-large .tile { font-size: 16px; }

/* ---- The opening, over the theme's own scenery ---- */
.opening { position: relative; padding: 72px 20px 0; }
.opening-in { max-width: 760px; margin: 0 auto; text-align: center; padding: 34px 30px 30px; border-radius: 28px; }
.opening h1 { font-size: clamp(38px, 6.4vw, 70px); }
.opening h1 .accent { display: block; }
.h1-2 { display: block; font-size: 0.66em; margin-top: 6px; color: var(--c-text-primary); }
.tagline { margin-top: 14px; font-weight: 800; font-size: 22px; color: var(--c-text-secondary); }
.lead { margin: 16px auto 24px; max-width: 600px; font-size: 19px; color: var(--c-text-secondary); }
.opening .downloads { justify-content: center; }
.opening-card { max-width: 1040px; margin: 48px auto 0; }

.card img { width: 100%; border-radius: 22px; box-shadow: 0 30px 70px var(--c-shadow); }

/* ---- Key messages ---- */
.message {
  max-width: 1200px; margin: 0 auto; padding: 70px 20px;
  display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center;
}
.message.flip .message-words { order: 2; }
.message-words { padding: 30px; border-radius: 26px; }
.message h2, .themes-message h2 { font-size: clamp(30px, 3.6vw, 44px); }
.subline { margin-top: 10px; font-weight: 700; font-size: 20px; color: var(--c-text-secondary); }
.message-words > p:not(.subline) { margin-top: 14px; color: var(--c-text-secondary); }
.points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; color: var(--c-text-primary); }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--t-signature-a), var(--t-signature-b)); }

/* ---- A message given the whole width: every Apple device ---- */
.band { max-width: 1480px; margin: 0 auto; padding: 90px 20px; display: grid; gap: 30px; justify-items: center; text-align: center; }
.band-words { max-width: 860px; padding: 30px 36px; border-radius: 28px; }
.band h2 { font-size: clamp(36px, 5.4vw, 66px); }
.band-text { margin-top: 14px; font-size: 20px; color: var(--c-text-secondary); }
.band-picture { width: 100%; }
.band-picture .card img { border-radius: 30px; box-shadow: 0 40px 100px var(--c-shadow); }
.band-points { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.band-points li { padding: 18px 24px; border-radius: 20px; font-weight: 600; max-width: 420px; }

.section-head { display: inline-block; padding: 26px 34px; border-radius: 26px; }
.section-pill { display: inline-block; padding: 12px 26px; border-radius: 999px; }

/* ---- Key message 7: the themes ---- */
.themes-message { max-width: 1100px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.themes-message > p:not(.subline) { margin-top: 10px; color: var(--c-text-secondary); }

/* ---- Help ---- */
.help { max-width: 1100px; margin: 0 auto; padding: 20px 20px 90px; text-align: center; }
.help-panel { display: inline-block; padding: 30px 36px 34px; border-radius: 28px; }
.help h2 { font-size: 32px; }
.help-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.help-link { padding: 14px 24px; border-radius: 16px; font-weight: 700; text-decoration: none; color: var(--c-text-primary); background: var(--c-highlight); border: 1px solid var(--c-hairline); }
.help-link:hover { background: var(--c-glass-hover); }
.glass-link { padding: 16px 26px; border-radius: 18px; font-weight: 700; text-decoration: none; color: var(--c-text-primary); }
.glass-link:hover { background: var(--c-glass-hover); }

/* ---- The base, at the foot of every page ---- */
.base { border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
.base-in { max-width: 1240px; margin: 0 auto; padding: 36px 20px 44px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.base-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.made-by, .copyright { color: var(--c-text-tertiary); font-size: 14px; }
.made-by a { color: var(--c-text-secondary); }

/* ---- Narrower screens ---- */
/* Below this the links fold into the menu, so the large name, Apple's badges and the switches keep their room. */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-button { display: inline-flex; }
}
@media (max-width: 980px) {
  .brand { font-size: 24px; }
  .brand img { width: 48px; height: 48px; border-radius: 11px; }
  .theme-label { display: none; }
  .message { grid-template-columns: 1fr; gap: 26px; padding: 44px 16px; }
  .message.flip .message-words { order: 0; }
}
@media (max-width: 700px) {
  /* Two rows on a phone: the icon, the name and the menu, then Apple's two badges, which may not be made smaller. */
  .picker, .menu { top: 124px; }
  html { scroll-padding-top: 134px; }
  .header-in { padding: 8px 12px 10px; gap: 8px 10px; flex-wrap: wrap; }
  .brand { font-size: 23px; gap: 10px; }
  .brand img { width: 46px; height: 46px; border-radius: 11px; }
  .menu-button { flex: none; width: 40px; height: 38px; }
  .theme-button, .header .appearance-icons { display: none; }
  .menu-theme { display: flex; }
  .downloads-header { order: 3; flex-basis: 100%; justify-content: center; gap: 12px; }
  .band { padding: 50px 12px; }
  .band-words { padding: 22px; }
  .opening { padding: 28px 12px 0; }
  .opening-in { padding: 24px 18px; }
  .card img { border-radius: 26px; max-width: 420px; margin: 0 auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .message-words { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile img { transition: none; } }

/* ---- Pages other than Home: the blog, a story, About, Contact ---- */
.page { max-width: 1100px; margin: 0 auto; padding: 60px 20px 90px; }
.page.narrow { max-width: 760px; margin: 60px auto 90px; padding: 40px; border-radius: 28px; }
.page h1 { font-size: clamp(34px, 5vw, 54px); }
.page-title { font-size: clamp(30px, 4.4vw, 46px) !important; margin-bottom: 30px; }
.page.narrow > p { margin-top: 16px; font-size: 19px; color: var(--c-text-secondary); }

.stories { display: grid; gap: 26px; }
.story-card { border-radius: 26px; overflow: hidden; }
.story-link { display: grid; grid-template-columns: 5fr 6fr; text-decoration: none; color: inherit; }
.story-link .story-hero { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.story-words { padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.story-words h2 { font-size: clamp(24px, 2.8vw, 32px); }
.story-date { color: var(--c-text-tertiary); font-size: 15px; font-weight: 600; }
.story-intro { color: var(--c-text-secondary); }
.story-more { margin-top: auto; font-weight: 700; color: var(--c-link); }
.story-link:hover .story-more { text-decoration: underline; }

.story { max-width: 860px; margin: 50px auto 90px; padding: 0; border-radius: 28px; overflow: hidden; }
.story > .story-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-body { padding: 34px 40px 44px; }
.story-body .story-date { margin-top: 10px; }
.story-body .story-intro { margin-top: 18px; font-size: 21px; }
.prose { margin-top: 24px; font-size: 18px; line-height: 1.65; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.05em; }
.prose h2 { font-size: 28px; margin: 1.4em 0 0.5em; }
.prose h3 { font-size: 22px; margin: 1.2em 0 0.4em; }
.prose img { border-radius: 16px; margin: 1.4em auto; box-shadow: 0 16px 40px var(--c-shadow); }
.prose blockquote { padding-left: 18px; border-left: 4px solid var(--t-signature-b); color: var(--c-text-secondary); }

.about-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.contact-form { display: grid; gap: 18px; margin-top: 26px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--c-text-secondary); }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--c-text-primary); background: var(--c-menu-ground); border: 1px solid var(--c-hairline);
  border-radius: 14px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--t-signature-b); outline-offset: 1px; }
.unseen { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.send {
  justify-self: start; font: inherit; font-weight: 700; color: #fff; cursor: pointer; border: 0; border-radius: 999px;
  padding: 13px 30px; background: linear-gradient(100deg, var(--t-signature-a), var(--t-signature-b));
  box-shadow: 0 6px 18px var(--c-shadow);
}
.send:disabled { opacity: 0.6; cursor: default; }
.form-result { min-height: 1.5em; font-weight: 600; }

@media (max-width: 700px) {
  .story-link { grid-template-columns: 1fr; }
  .page.narrow { margin: 30px 12px 60px; padding: 26px 20px; }
  .story { margin: 24px 12px 60px; }
  .story-body { padding: 24px 20px 32px; }
}

/* The base sits at the foot of the window on a short page. */
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---- The screens, large enough to read ---- */
.screens { margin: 0; width: 100%; }
.screens-mac { display: flex; gap: 2.2%; align-items: flex-start; justify-content: center; max-width: 1360px; margin: 0 auto; }
.screens-mac img { min-width: 0; width: 100%; filter: drop-shadow(0 22px 40px var(--c-shadow)); }
.screens-iphone { display: none; gap: 22px; justify-content: center; flex-wrap: wrap; }
.phone {
  width: min(80vw, 330px); padding: 9px; border-radius: 48px; background: #111;
  box-shadow: 0 0 0 2px #3a3d44 inset, 0 26px 60px var(--c-shadow);
}
.phone img { width: 100%; border-radius: 40px; }
.opening .screens { margin-top: 48px; }

.message.stacked { grid-template-columns: 1fr; justify-items: center; max-width: 1440px; gap: 34px; }
.message.stacked .message-words { max-width: 860px; width: 100%; text-align: center; }
.message.stacked .points { justify-items: center; }
.message.stacked .points li { text-align: left; }

@media (max-width: 700px) {
  .screens-mac { display: none; }
  .screens-iphone { display: flex; }
}

/* The iPhone Duo: open (both halves one display, a seam where it folds) and closed (the cover screen). */
.screens-duo { display: flex; gap: 4%; align-items: center; justify-content: center; max-width: 1300px; margin: 0 auto; }
.duo-frame { min-width: 0; background: #17191d; box-shadow: 0 0 0 2px #3a3d44 inset, 0 28px 64px var(--c-shadow); position: relative; }
.duo-frame img { width: 100%; }
.duo-open { padding: 1.2%; border-radius: 34px; }
.duo-open img { border-radius: 24px; }
.duo-open::after { content: ""; position: absolute; top: 1.2%; bottom: 1.2%; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.08)); }
.duo-closed { padding: 2.6%; border-radius: 40px; }
.duo-closed img { border-radius: 30px; }
@media (max-width: 700px) {
  .screens-duo { flex-direction: column; gap: 22px; }
  .duo-open { width: 100%; flex: none !important; border-radius: 22px; }
  .duo-open img { border-radius: 14px; }
  .duo-closed { width: 62%; flex: none !important; border-radius: 30px; }
  .duo-closed img { border-radius: 22px; }
}

/* The large switch under the theme tiles. */
.appearance-large { margin: 34px auto 0; padding: 6px; gap: 6px; background: var(--c-glass); border: 1px solid var(--c-glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 18px 50px var(--c-shadow); }
.appearance-large button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 19px; font-weight: 700; }
.appearance-large svg { width: 24px; height: 24px; }
@media (max-width: 700px) {
  .appearance-large button { padding: 12px 16px; font-size: 16px; gap: 7px; }
  .appearance-large svg { width: 20px; height: 20px; }
}

/* A story is long reading: its panel is solid, in the theme's own colour, so the scene does not show through the text. */
.story { background: var(--c-menu-ground); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- Other products (Home only) ---- */
.others { max-width: 1160px; margin: 0 auto; padding: 0 20px 100px; text-align: center; }
.others-title { font-size: 30px; margin-bottom: 30px; }
.others-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: left; }
.other { border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.other-stage { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(160deg, var(--c-highlight), transparent); }
.other-stage-mac .other-picture { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.other-phone { width: auto; height: 88%; padding: 6px; border-radius: 30px; margin-top: 8%; align-self: flex-start; }
.other-phone img { height: 100%; width: auto; border-radius: 24px; }
.other-words { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.other-head { display: flex; align-items: center; gap: 16px; }
.other-icon { flex: none; width: 64px; height: 64px; }
.other-icon-iphone { border-radius: 15px; box-shadow: 0 4px 12px var(--c-shadow); }
.other-icon-mac { filter: drop-shadow(0 4px 10px var(--c-shadow)); }
.other h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.012em; }
.other-sub { color: var(--c-text-secondary); font-weight: 600; margin-top: 2px; }
.other-text { color: var(--c-text-secondary); flex: 1; }
.other .downloads { justify-content: flex-start; }
@media (max-width: 860px) { .others-cards { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .others { padding: 0 12px 70px; } .other-words { padding: 20px; } }
/* Private Authenticator's Apple Watch beside its iPhone. */
.other-stage-iphone .other-phone { margin-right: 22%; }
.other-watch { position: absolute; left: 57%; bottom: 10%; height: 37.5%; width: auto;
  filter: drop-shadow(0 16px 30px var(--c-shadow)); }

/* The newsletter's sign-up and the Atom feed (blog and stories), and Previous / Next under a story */
.subscribe { border-radius: 26px; padding: 26px 30px; margin-bottom: 26px; display: grid; gap: 14px; }
.subscribe h2 { font-size: 24px; }
.subscribe-form { display: flex; gap: 12px; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  flex: 1 1 260px; font: inherit; color: var(--c-text-primary); background: var(--c-menu-ground);
  border: 1px solid var(--c-hairline); border-radius: 999px; padding: 12px 18px;
}
.subscribe-form input[type="email"]:focus { outline: 3px solid var(--t-signature-b); outline-offset: 1px; }
.feed-link { justify-self: start; display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
  color: var(--c-link); text-decoration: none; }
.feed-icon { flex: none; }
.feed-link:hover { text-decoration: underline; }
.story-foot { max-width: 860px; margin: -60px auto 90px; }
.story-turn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.turn { display: grid; gap: 4px; padding: 16px 22px; border-radius: 18px; text-decoration: none; color: var(--c-text-primary);
  background: var(--c-menu-ground); border: 1px solid var(--c-hairline); box-shadow: 0 6px 18px var(--c-shadow); }
.turn:hover { border-color: var(--t-signature-b); }
.turn-word { font-weight: 700; color: var(--c-link); }
.turn-title { color: var(--c-text-secondary); font-size: 15px; }
.turn-next { grid-column: 2; text-align: right; }
@media (max-width: 700px) {
  .story-foot { margin: -40px 12px 60px; }
  .story-turn { grid-template-columns: 1fr; }
  .turn-next { grid-column: 1; }
  .subscribe { padding: 22px 20px; }
}
