/* Hopwise website: one stylesheet for every page. Light and dark follow the system setting. */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #5f5f64;
  --rule: #e2e2e7;
  --accent: #0a6672;
  --accent-soft: #e3f3f4;
  --code: #eeeef1;
  --hero-top: #0b5561;
  --hero-bottom: #04222b;
  --on-hero: #ffffff;
  --on-hero-muted: rgba(255, 255, 255, .82);
  --shadow: 0 30px 60px -20px rgba(2, 30, 38, .45), 0 12px 24px -12px rgba(2, 30, 38, .3);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --fg: #f5f5f7;
    --muted: #a8a8ad;
    --rule: #38383a;
    --accent: #5ed0d6;
    --accent-soft: #0c2a2e;
    --code: #2c2c2e;
    --hero-top: #0b2f36;
    --hero-bottom: #020a0d;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: from-font; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code); padding: .1em .35em; border-radius: 5px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 48rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--card); color: var(--fg); padding: .5rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: .5rem; }

/* Header */
header.top { position: absolute; inset: 0 0 auto; z-index: 2; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { font-weight: 600; color: var(--on-hero); display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.links { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
nav.links a { color: var(--on-hero-muted); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current] { color: var(--on-hero); text-decoration: underline; }

/* Hero */
.hero {
  background: radial-gradient(60rem 30rem at 50% -6rem, rgba(94, 208, 214, .35), transparent 70%),
              linear-gradient(var(--hero-top), var(--hero-bottom));
  color: var(--on-hero);
  text-align: center;
  padding: 7.5rem 0 0;
  overflow: hidden;
}
.hero.page { padding: 7rem 0 3.5rem; }
.hero .icon { width: 88px; height: 88px; margin: 0 auto 1.25rem; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.06; letter-spacing: -.035em; margin: 0 auto .9rem; max-width: 18ch; }
.hero.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.hero .lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--on-hero-muted); max-width: 40rem; margin: 0 auto 2rem; }
.hero.page .lead { margin-bottom: 0; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
.button { display: inline-block; background: var(--accent); color: #fff; padding: .75rem 1.4rem; border-radius: 12px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.hero .button, .closing .button { background: #fff; color: #06404a; }
/* Same look as the App Store badge next to it. */
.button.ghost { display: inline-flex; align-items: center; align-self: stretch; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 10px; padding: .45rem 1.1rem; }
.badge { display: inline-flex; align-items: center; gap: .6rem; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 10px; padding: .45rem 1.1rem .45rem .9rem; text-decoration: none; line-height: 1.15; text-align: left; }
.badge svg { width: 26px; height: 26px; fill: currentColor; }
.badge small { display: block; font-size: .68rem; }
.badge strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.meta { margin: 1.1rem 0 0; font-size: .9rem; color: var(--on-hero-muted); }
.hero figure { margin: 3.5rem auto 0; max-width: 1000px; padding: 0 1rem; }
.hero figure img { border-radius: 12px 12px 0 0; box-shadow: 0 -10px 60px rgba(0, 0, 0, .35); margin: 0 auto; }

/* Highlights */
.strip { background: var(--card); border-bottom: 1px solid var(--rule); }
.strip ul { list-style: none; margin: 0 auto; padding: 1.4rem 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 68rem; text-align: center; font-size: .95rem; color: var(--muted); }
.strip strong { display: block; color: var(--fg); font-size: 1.05rem; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3rem; align-items: center; padding: 5rem 0; }
.feature + .feature { border-top: 1px solid var(--rule); }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .text { order: 2; }
.feature figure { margin: 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.text p { color: var(--muted); margin: 0 0 1rem; }
.text ul { margin: 0; padding: 0; list-style: none; }
.text li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.text li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .6rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg) scale(.75); }
.shot img { border-radius: 12px; box-shadow: var(--shadow); margin: 0 auto; }
.shot.phone img { max-width: 300px; border-radius: 36px; }
.shot.watch img { max-width: 240px; border-radius: 44px; }

/* Gallery: the App Store screenshots, one sideways reel per platform */
.gallery { background: linear-gradient(var(--hero-top), var(--hero-bottom)); color: var(--on-hero); padding: 5rem 0 4.5rem; }
.gallery .eyebrow { color: #8fe3e8; text-align: center; }
.gallery h2 { text-align: center; }
.gallery .intro { color: var(--on-hero-muted); text-align: center; max-width: 38rem; margin: 0 auto 1rem; }
.platform { margin-top: 3rem; }
.platform-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.platform h3 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 .3rem; }
.platform-head p { color: var(--on-hero-muted); margin: 0; max-width: 34rem; }
.reel-buttons { display: flex; gap: .5rem; flex-shrink: 0; }
.reel-buttons[hidden] { display: none; }
.reel-buttons button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.reel-buttons button:hover { background: rgba(255, 255, 255, .28); }
.reel-buttons button:disabled { opacity: .35; cursor: default; }
.gallery button:focus-visible, .reel:focus-visible { outline: 3px solid #8fe3e8; outline-offset: 3px; }
.reel {
  --edge: 1rem;
  list-style: none; max-width: 68rem; margin: 0 auto; padding: .5rem var(--edge) 1.5rem; box-sizing: border-box;
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent;
}
.reel li { flex: none; scroll-snap-align: start; }
.reel img { box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .7); }
.reel.phone li { width: min(260px, 62vw); }
.reel.phone img { border-radius: 26px; }
.reel.mac li { width: 100%; }
.reel.mac img { border-radius: 14px; }
.zoom-open { -webkit-appearance: none; appearance: none; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; color: inherit; border-radius: 14px; cursor: zoom-in; }
.reel.phone .zoom-open { border-radius: 26px; }
.zoom-open:hover img { filter: brightness(1.08); }
.zoom { box-sizing: border-box; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 4rem 4.5rem 3rem; border: 0; background: rgba(4, 14, 18, .94); color: #fff; place-items: center; cursor: zoom-out; }
.zoom[open] { display: grid; }
.zoom::backdrop { background: transparent; }
html:has(.zoom[open]) { overflow: hidden; }
.zoom img { max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px -20px #000; }
.zoom button { position: fixed; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.zoom button:hover { background: rgba(255, 255, 255, .28); }
.zoom button:focus-visible { outline: 3px solid #8fe3e8; outline-offset: 3px; }
.zoom-close { top: 1rem; right: 1rem; }
.zoom-prev, .zoom-next { top: 50%; transform: translateY(-50%); }
.zoom-prev { left: 1rem; }
.zoom-next { right: 1rem; }
.zoom-count { position: fixed; bottom: 1rem; left: 0; right: 0; margin: 0; text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 600px) {
  .zoom { padding: 4rem .5rem 4.5rem; }
  .zoom img { max-height: calc(100dvh - 8.5rem); }
  .zoom-prev, .zoom-next { top: auto; bottom: .7rem; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .zoom[open] img { animation: zoom-in .2s ease-out; }
  @keyframes zoom-in { from { opacity: 0; transform: scale(.96); } }
}

/* Tool groups */
.band { background: var(--card); padding: 5rem 0; }
.band h2, .band > .wrap > p { text-align: center; }
.band > .wrap > p { color: var(--muted); max-width: 40rem; margin: 0 auto 3rem; }
.band > .wrap > p.more { margin: 2rem auto 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.grid > li { background: var(--bg); border-radius: 16px; padding: 1.4rem; }
.grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.grid ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.grid ul li { margin-bottom: .2rem; }
.tag { font-size: .78rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* Privacy */
.privacy { text-align: center; padding: 5rem 0; }
.privacy p { color: var(--muted); max-width: 40rem; margin: 0 auto 1rem; }

/* FAQ */
.faq { max-width: 48rem; margin: 0 auto; padding: 0 1rem 5rem; }
.faq h2 { text-align: center; margin-bottom: 1.5rem; }
details { background: var(--card); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
details[open] summary::after { content: "−"; }
details p { margin: .6rem 0 0; color: var(--muted); }

/* Closing */
.closing { background: linear-gradient(var(--hero-top), var(--hero-bottom)); color: var(--on-hero); text-align: center; padding: 4.5rem 1rem; }
.closing h2 { margin-bottom: .6rem; }
.closing p { color: var(--on-hero-muted); margin: 0 auto 1.75rem; max-width: 34rem; }
.closing .also { margin: 2.5rem auto .75rem; }

/* Text pages (support, privacy, accessibility) */
.doc { padding: 3rem 1rem 4rem; }
.doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.5rem 0 .8rem; }
.doc h3 { margin-top: 1.5rem; }
.doc p, .doc li { color: var(--fg); }
.doc .muted { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.note { background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.todo { background: #fff3cd; color: #4d3800; border-radius: 10px; padding: .75rem 1rem; }

footer { color: var(--muted); font-size: .85rem; padding: 2rem 0 3rem; border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer a { color: var(--muted); }
nav.lang a[aria-current] { color: var(--fg); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .platform-head { align-items: flex-start; }
  .reel-buttons { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0; }
  .feature.flip .text { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .strip ul { grid-template-columns: 1fr 1fr; }
  nav.links .hide-small { display: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; }
  nav.links { gap: 1rem; }
}
