/* Skippa - landing page styles
 *
 * Hand-written, no framework, no build step. Colour tokens mirror the app so
 * the site and the product read as one thing:
 *   Shared (App)/AppConstants.swift        - K.accent, K.accentDeep
 *   Shared (Extension)/Resources/popup.css - the light-dark() palette
 *
 * Layout uses logical properties (inline-start/end, margin-inline) throughout
 * so the Arabic build mirrors correctly from `dir="rtl"` alone.
 */

:root {
  color-scheme: light dark;

  --accent:      light-dark(#34c759, #30d158);
  --accent-deep: light-dark(#248a3d, #34c759);
  --accent-ink:  light-dark(#1a6b30, #7ee89b);

  --bg:      light-dark(#f2f2f7, #17171a);
  --bg-alt:  light-dark(#ffffff, #1e1e22);
  --card:    light-dark(#ffffff, #26262a);
  --text:    light-dark(#1c1c1e, #f5f5f7);
  --text-2:  light-dark(#6e6e73, #98989d);
  --text-3:  light-dark(#8e8e93, #7c7c81);
  --line:    light-dark(#e3e3e8, #33333a);

  --radius:    18px;
  --radius-lg: 26px;
  --shadow:    0 1px 2px rgb(0 0 0 / 6%), 0 12px 32px -12px rgb(0 0 0 / 18%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 8%), 0 32px 64px -24px rgb(0 0 0 / 28%);

  --measure: 1120px;
  --pad: clamp(1.15rem, 5vw, 2rem);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root { --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -12px rgb(0 0 0 / 60%); }
}

/* light-dark() is Baseline 2024. On anything older every var() above would be
 * invalid at computed-value time and the page would lose its colours, so pin
 * the light palette explicitly for those browsers. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --accent: #34c759; --accent-deep: #248a3d; --accent-ink: #1a6b30;
    --bg: #f2f2f7; --bg-alt: #ffffff; --card: #ffffff;
    --text: #1c1c1e; --text-2: #6e6e73; --text-3: #8e8e93; --line: #e3e3e8;
  }
  .nav { background: rgb(242 242 247 / 92%); }
  .window-bar { background: #f6f6f8; }
  .phone { background: #dcdce2; }
  .lang-menu a:hover { background: #f2f2f7; }
  .badge-soon { border-color: #c7c7cc; background: rgb(255 255 255 / 55%); }
  .tag-before { background: #ffeceb; color: #c0392b; }
  .tag-after { background: #e6f8ec; color: #1a6b30; }
  .never .no svg { color: #c0392b; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 6.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--card); color: var(--text);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------------------------------------------------------------- layout */

.wrap { width: min(100% - (var(--pad) * 2), var(--measure)); margin-inline: auto; }

section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
section.tint { background: var(--bg-alt); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: .78rem; font-weight: 650; letter-spacing: .085em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: .85rem;
}
.lede { font-size: clamp(1.02rem, 2.1vw, 1.2rem); color: var(--text-2); max-width: 62ch; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lede { margin-top: 1rem; }

/* The App Store description supplies these headings in ALL CAPS. Rendered at
 * full h2 size they shout, so they are set smaller and tracked out to read as
 * deliberate section labels. Lower-casing them in code is not an option: it
 * would wrongly strip the capital from German nouns ("30 Sekunden"). */
h2.caps {
  font-size: clamp(1.3rem, 2.9vw, 1.85rem);
  letter-spacing: .055em;
  color: var(--text);
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: light-dark(rgb(242 242 247 / 82%), rgb(23 23 26 / 82%));
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 58px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 650; color: var(--text); text-decoration: none; letter-spacing: -0.015em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav-links { display: flex; gap: 1.4rem; margin-inline-start: auto; align-items: center; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: .93rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links .opt { display: none; } }

/* language switcher - a <details>, so it works with JS disabled */
.lang { position: relative; margin-inline-start: .25rem; }
.lang summary {
  list-style: none; cursor: pointer; font-size: .93rem; font-weight: 500;
  color: var(--text-2); display: flex; align-items: center; gap: .35rem;
  padding: .3rem .1rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); }
.lang summary svg { width: 15px; height: 15px; flex: none; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + .5rem);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: .4rem; min-width: 210px;
  max-height: min(70vh, 420px); overflow-y: auto; z-index: 60;
}
.lang-menu a {
  display: block; padding: .5rem .7rem; border-radius: 9px;
  color: var(--text); text-decoration: none; font-size: .92rem; white-space: nowrap;
}
.lang-menu a:hover { background: light-dark(#f2f2f7, #33333a); }
.lang-menu a[aria-current="true"] { color: var(--accent-ink); font-weight: 600; }

/* ---------------------------------------------------------------- hero */

.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-block-start: -32%; inset-inline-start: 50%;
  width: min(150%, 1100px); aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 17%, transparent) 0%, transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-icon { width: clamp(96px, 22vw, 132px); height: auto; margin-inline: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 18px 34px rgb(0 0 0 / 22%)); }
.hero h1 { margin-bottom: 1.15rem; }
.hero .lede { margin-inline: auto; }
.hero-tagline { margin-top: 1rem; font-size: 1.02rem; color: var(--text-3); font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: 999px; font-size: 1rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); }
.btn-secondary:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* "Coming soon" - looks like the store badge but is plainly not a link */
.badge-soon {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .78rem 1.4rem; border-radius: 999px;
  border: 1.5px dashed light-dark(#c7c7cc, #48484e);
  background: light-dark(rgb(255 255 255 / 55%), rgb(255 255 255 / 4%));
  color: var(--text-2); font-size: .97rem; font-weight: 600;
}
.badge-soon svg { width: 19px; height: 19px; flex: none; opacity: .75; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center;
  margin-top: 1.6rem; font-size: .89rem; color: var(--text-3);
}
.meta-row span { display: inline-flex; align-items: center; gap: .4rem; }
.meta-row svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ------------------------------------------------------------ device frames */

/* Safari-ish window chrome around the desktop captures. */
.window {
  border-radius: 13px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; background: light-dark(#f6f6f8, #2c2c31);
  border-bottom: 1px solid var(--line);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window img { display: block; width: 100%; }

/* iPhone frame around the portrait captures. */
.phone {
  width: min(100%, 268px); margin-inline: auto; padding: 9px;
  border-radius: 42px; background: light-dark(#dcdce2, #3a3a40);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px light-dark(#c3c3cb, #4d4d55);
}
.phone img { border-radius: 34px; width: 100%; }

figure { margin: 0; }
figcaption { margin-top: .9rem; font-size: .88rem; color: var(--text-3); text-align: center; }

/* -------------------------------------------------------------- sections */

.compare { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .tag {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .9rem;
  font-size: .8rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.tag-before { background: light-dark(#ffeceb, #3a2422); color: light-dark(#c0392b, #ff8d80); }
.tag-after  { background: light-dark(#e6f8ec, #16311f); color: var(--accent-ink); }

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--text-2); font-size: .96rem; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1.05rem;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-ink);
}
.card .icon svg { width: 21px; height: 21px; }

.numbered { counter-reset: step; display: grid; gap: .8rem; list-style: none; padding: 0; margin: 0; }
.numbered li {
  counter-increment: step; display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.15rem; box-shadow: var(--shadow); font-weight: 500;
}
.numbered li::before {
  content: counter(step); flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .92rem; font-weight: 700;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #fff;
}

.setup-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .setup-grid { grid-template-columns: 1.15fr .85fr; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.chip {
  padding: .42rem .85rem; border-radius: 999px; font-size: .87rem; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2);
  white-space: nowrap;
}

.stats { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-top: 2rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; color: var(--accent-ink); line-height: 1.1; }
.stat span { font-size: .87rem; color: var(--text-2); }

/* never-clicks list */
.never { display: grid; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.never li { display: flex; align-items: flex-start; gap: .7rem; color: var(--text-2); font-size: .97rem; }
.never svg { width: 19px; height: 19px; flex: none; margin-top: .17rem; }
.never .no svg  { color: light-dark(#c0392b, #ff8d80); }
.never .yes svg { color: var(--accent); }

.privacy-list { display: grid; gap: .85rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.privacy-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: 1rem; }
.privacy-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: .2rem; }

.note {
  margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: .93rem; color: var(--text-2);
}

/* support call-to-action */
.support-card {
  text-align: center; border-radius: var(--radius-lg); padding: clamp(2.2rem, 6vw, 3.6rem);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 13%, var(--card)),
    var(--card) 62%);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  box-shadow: var(--shadow-lg);
}
.support-card h2 { margin-bottom: .9rem; }
.support-card .lede { margin-inline: auto; }
.support-card .btn { margin-top: 1.8rem; }
.support-mail { margin-top: 1.1rem; font-size: .92rem; color: var(--text-3); }

/* ----------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); padding-block: 2.6rem; background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-inline-start: auto; }
.footer a { color: var(--text-2); text-decoration: none; font-size: .9rem; }
.footer a:hover { color: var(--text); }
.footer small { color: var(--text-3); font-size: .87rem; }

/* ------------------------------------------------------------ legal pages */

.legal { padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-bottom: .75rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.6rem; margin-bottom: .8rem; }
.legal h3 { margin-top: 1.7rem; margin-bottom: .5rem; }
.legal p, .legal li { color: var(--text-2); font-size: 1rem; }
.legal p + p { margin-top: 1rem; }
.legal ul { padding-inline-start: 1.3rem; display: grid; gap: .55rem; margin: 1rem 0 0; }
.legal .updated { font-size: .9rem; color: var(--text-3); }
.legal .summary {
  margin-top: 1.8rem; padding: 1.3rem 1.5rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.legal .summary p { color: var(--text); font-weight: 500; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .94rem; }
.legal th, .legal td { text-align: start; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 650; color: var(--text); }
.legal td { color: var(--text-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------- rtl */

[dir="rtl"] .numbered li::before { font-feature-settings: normal; }
[dir="rtl"] .window-bar { flex-direction: row-reverse; }
