/* Camipack site — Verde design language, shared across pages. */
:root {
  --green: #1a6b47;
  --green-soft: rgba(26, 107, 71, 0.10);
  --amber: #b97f16;
  --amber-soft: rgba(224, 166, 58, 0.14);
  --sky: #3772be;
  --page: #f4f7f5;
  --card: #ffffff;
  --ink: #1c241f;
  --ink-2: #5b6660;
  --line: #e2e8e4;
  --shadow: 0 2px 10px rgba(20, 40, 30, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #7fb591;
    --green-soft: rgba(127, 181, 145, 0.14);
    --amber: #e0a63a;
    --amber-soft: rgba(224, 166, 58, 0.14);
    --sky: #7aa9e4;
    --page: #101512;
    --card: #1a201c;
    --ink: #e8ede9;
    --ink-2: #96a29b;
    --line: #2a332d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 20px 64px; }
.narrow { max-width: 680px; }

header.site {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0 24px;
}
header.site > a {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
header.site img { width: 44px; height: 44px; border-radius: 10px; }
header.site .name { font-weight: 850; font-size: 19px; letter-spacing: -0.01em; }
header.site nav { margin-left: auto; display: flex; gap: 18px; }
header.site nav a {
  color: var(--ink-2); text-decoration: none;
  font-size: 14px; font-weight: 700;
}
header.site nav a:hover { color: var(--green); }

.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin: 0 0 8px;
}
h1 {
  font-size: clamp(30px, 6vw, 44px); font-weight: 850;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px;
  text-wrap: balance;
}
h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 12px; }
h3 { font-size: 17px; font-weight: 800; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 560px; }
a { color: var(--sky); }

.badges { display: flex; gap: 12px; align-items: center; margin: 22px 0 8px; flex-wrap: wrap; }
.store-badge {
  display: inline-block; background: var(--ink); color: var(--page);
  border-radius: 10px; padding: 10px 18px; text-decoration: none;
  font-weight: 700; font-size: 15px;
}
.pill {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft);
  border-radius: 999px; padding: 5px 12px;
}

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 24px 0; }
.hero .phone { justify-self: center; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }

.banner { margin: 8px 0 32px; }
.banner video { display: block; width: 100%; aspect-ratio: 3840 / 1646; object-fit: cover;
  border-radius: 20px; background: #0e3b28; box-shadow: var(--shadow); }
/* On a phone the headline in the video is ~9 px tall, and the hero above already
   says it -- so the banner is for wide screens only. */
@media (max-width: 720px) { .banner { display: none; } }

.phone {
  border-radius: 36px; padding: 10px; background: #111;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  max-width: 290px;
}
.phone img { display: block; width: 100%; border-radius: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.card {
  background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px;
}
.card .icon { font-size: 22px; margin-bottom: 8px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.pricing .card p.price { margin: 2px 0 10px; font-size: 18px; font-weight: 800; color: var(--ink); }
.pricing .card ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.pricing .card li + li { margin-top: 6px; }

.privacy-strip {
  background: var(--green-soft); border-radius: 16px;
  padding: 22px; margin: 36px 0; text-align: center;
}
.privacy-strip strong { color: var(--green); }
.highlight { display: flex; gap: 16px; align-items: flex-start; margin: 36px 0; padding: 22px; }
.highlight .icon { font-size: 30px; margin: 0; line-height: 1; }
.highlight h2 { margin: 0 0 8px; }
.highlight p + p { margin-top: 8px; }
@media (max-width: 520px) { .highlight { flex-direction: column; gap: 10px; padding: 18px; } }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 0 16px; }
.shots .phone { flex: none; max-width: 230px; }

footer.site {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
  display: flex; gap: 18px; flex-wrap: wrap;
}
footer.site a { color: var(--ink-2); }

/* Footer row linking the social accounts, on every page. */
footer.site .social { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
footer.site .social .lbl { font-weight: 700; margin-right: 4px; }
footer.site .social a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px 6px 10px; font-weight: 700;
}
footer.site .social a:hover { border-color: var(--green); color: var(--green); }
footer.site .social a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
footer.site .social svg { width: 18px; height: 18px; flex: none; }

/* "See it in action": a poster per Short that becomes the YouTube player on tap. */
.action-intro { color: var(--ink-2); font-size: 15.5px; max-width: 600px; }
.vids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0 14px; }
.vid { margin: 0; min-width: 0; }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0;
  border-radius: 18px; overflow: hidden; background: #111; box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center;
}
.play svg { width: 22px; height: 22px; margin-left: 4px; }
.vid figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; }
.vid figcaption b { display: block; }
.tier {
  display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 2px 8px;
}
.tier.pro { color: var(--amber); background: var(--amber-soft); }
.more { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14.5px; }
.more > a:first-child { font-weight: 700; }
@media (max-width: 640px) {
  .vids { grid-template-columns: 1fr 1fr; gap: 12px; }
  .play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .vid figcaption { font-size: 13px; }
}

/* Updates page */
.release { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; }
.release .ver { display: flex; align-items: baseline; gap: 10px; }
.release .ver h3 { margin: 0; font-size: 18px; }
.release .ver time { font-size: 13px; color: var(--ink-2); }
.release ul { margin: 10px 0 0; padding-left: 20px; }
.release li { margin-bottom: 5px; font-size: 15px; }
.tag-feat { color: var(--green); font-weight: 800; }
.tag-fix { color: var(--amber); font-weight: 800; }

/* The App Store's own "What's New", above the per-commit changelog. */
.release .summary { margin: 0 0 1.1rem; }
.release details.summary > summary { cursor: pointer; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; align-items: baseline; gap: 8px; }
.release details.summary > summary::-webkit-details-marker { display: none; }
.release details.summary > summary::before { content: "\203A"; color: var(--ink-2);
  transition: transform .15s ease; }
@media (prefers-reduced-motion: reduce) {
  .release details.summary > summary::before { transition: none; }
}
.release details.summary[open] > summary::before { transform: rotate(90deg); }
.release details.summary[open] > summary { margin-bottom: .7rem; }
.release .summary h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
  margin: 1.1rem 0 .35rem;
}
.release .summary h4:first-child { margin-top: 0; }
.release .summary p { margin: 0 0 .6rem; }
.release .summary ul.plain { margin: 0 0 .6rem; padding-left: 1.1rem; list-style: disc; }
.release .summary ul.plain li { margin: .15rem 0; }

/* A diagram inside a feature's prose — the app's own drawing, not a screenshot. */
.shot-inline { margin: 1.1rem 0 0; }
.shot-inline img {
  max-width: 100%; width: 340px; height: auto; display: block;
  border-radius: 12px; border: 1px solid var(--rule, #DDE5DF);
}

/* Language switcher in the site header. The current language is marked, not
   linked — a link to the page you are already on is a dead end. */
/* Language menu.
   A <details> rather than a <select>: the options stay real <a href> links, so
   crawlers follow them and the translated pages keep being discovered. No
   JavaScript, so it works on the first paint and with scripting off. */
.langs { margin-left: auto; padding-left: 14px; position: relative; }
.langs > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-2); padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
}
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary::after {
  content: ""; width: 5px; height: 5px; margin-left: 1px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}
.langs[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.langs > summary:hover { color: var(--ink); }
.langs > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  margin: 0; padding: 5px; list-style: none; min-width: 168px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0,0,0,.14);
}
.langs ul a, .langs ul .on {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2);
}
.langs ul a:hover { background: var(--green-soft); color: var(--ink); }
.langs ul .on { color: var(--green); }
/* The flag renders as a country flag on Apple and Android and as a letter pair
   on most Windows builds, which have no flag glyphs. The language name beside it
   is what actually carries the meaning — the flag is decoration, and is hidden
   from screen readers for the same reason. */
.langs .fl { font-size: 15px; line-height: 1; font-family: "Apple Color Emoji",
  "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.langs .cur { display: inline-block; }

@media (max-width: 520px) {
  .langs .cur { display: none; }
  .langs > summary { padding: 5px 8px; }
}

/* Header menu.
   Below 640px the four nav links collapse behind a ☰, so the header stops
   overflowing sideways on a phone. The links sit in a sibling .menu-panel rather
   than inside the <details>: a browser will not reveal a closed details' children
   whatever you set `display` to, so the details carries only the button and :has()
   drives the panel from its open state. On desktop the panel is display:contents
   and the links flow as nav's own flex children, exactly as they always have.

   Both header menus share name="camipack-hdr" — the browser closes one when the
   other opens. An exclusive pair with no JavaScript, the same stance as the
   language menu above. */
.menu-panel { display: contents; }
header.site nav .menu { display: none; }

@media (max-width: 640px) {
  header.site { position: relative; }
  header.site nav { gap: 10px; align-items: center; }

  header.site nav .menu { display: block; }
  .menu > summary {
    list-style: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
    padding: 8px 7px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--card);
  }
  .menu > summary::-webkit-details-marker { display: none; }
  /* Three bars: two pseudo-elements plus the one real span, which is also the
     hook screen readers skip past to the summary's aria-label. */
  .menu > summary::before,
  .menu > summary::after,
  .menu .bars {
    content: ""; display: block;
    width: 15px; height: 1.7px; border-radius: 2px;
    background: var(--ink-2);
  }
  .menu[open] > summary { background: var(--green-soft); border-color: var(--green); }
  .menu[open] > summary::before,
  .menu[open] > summary::after,
  .menu[open] .bars { background: var(--green); }
  .menu > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

  header.site nav .menu-panel { display: none; }
  header.site nav:has(.menu[open]) .menu-panel {
    display: flex; flex-direction: column; gap: 1px;
    position: absolute; left: 0; right: 0; top: calc(100% - 14px); z-index: 20;
    padding: 6px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--line);
    box-shadow: 0 8px 26px rgba(0,0,0,.14);
  }
  header.site nav .menu-panel a {
    padding: 11px 12px; border-radius: 8px; font-size: 15px;
  }
  header.site nav .menu-panel a:hover { background: var(--green-soft); color: var(--ink); }
}

/* Links between the comparison pages, and from how-it-works to them. */
.cmp-links { list-style: none; margin: 14px 0 8px; padding: 0; display: flex;
             flex-wrap: wrap; gap: 10px; }
.cmp-links a { display: inline-block; background: var(--card); border: 1px solid var(--line);
               border-radius: 10px; padding: 9px 15px; text-decoration: none;
               font-weight: 600; font-size: 15px; }
.ai-steps { margin: 10px 0; padding-left: 22px; font-size: 15px; }
.ai-steps li + li { margin-top: 4px; }
.highlight .fine { font-size: 13.5px; color: var(--ink-2); }
