/* provly.co.uk: colours and type from the phone app (provly-app/lib/theme/provly_theme.dart). */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #f3f6fa;
  --ground-alt: #fefefe;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --ink: #0a233f;
  --ink-2: #2d415a;
  --muted: #5b6b80;
  --rule: #dce3eb;
  --accent: #0065ed;
  --button: #0065ed;
  --button-press: #004cb8;
  --button-ink: #ffffff;
  --tonal: #dce8fc;
  --tonal-press: #c3d8fa;
  --tonal-ink: #004cb8;
  --mint: #d5f0eb;
  --mint-ink: #0a233f;
  --ok: #1d7a4c;
  --shadow: 0 1px 2px rgba(10, 35, 63, .06), 0 8px 24px rgba(10, 35, 63, .07);
  --blob-a: rgba(0, 101, 237, .16);
  --blob-b: rgba(0, 221, 162, .16);
  --radius: 20px;
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #061527;
    --ground-alt: #0a1b30;
    --surface: #0d2139;
    --surface-2: #0a1b30;
    --ink: #e9eff6;
    --ink-2: #bac7d6;
    --muted: #8d9db1;
    --rule: #1d3350;
    --accent: #5c9dff;
    --button-press: #003f99;
    --tonal: #05254f;
    --tonal-press: #0a3570;
    --tonal-ink: #d3e4ff;
    --mint: #0f3a3a;
    --mint-ink: #c9f2ea;
    --ok: #5dc48b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --blob-a: rgba(0, 101, 237, .22);
    --blob-b: rgba(0, 180, 184, .14);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html { background: var(--ground); overflow-x: clip; }
body {
  position: relative;
  margin: 0;
  color: var(--ink-2);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0;
}
h1 { font-size: clamp(38px, 9vw, 64px); }
h2 { font-size: clamp(30px, 6.5vw, 44px); }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 999px; border: 0;
  font: 700 17px/1.2 "Public Sans", system-ui, sans-serif;
  cursor: pointer; transition: background-color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--button); color: var(--button-ink); }
.btn-primary:hover { background: var(--button-press); }
.btn-tonal { background: var(--tonal); color: var(--tonal-ink); }
.btn-tonal:hover { background: var(--tonal-press); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.btn .icon { width: 20px; height: 20px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: inline-flex; border-radius: 10px; }
.stores img { height: 52px; width: auto; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 36px; width: auto; }
@media (min-width: 720px) { .brand img { height: 42px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav .nav-link { display: none; padding: 10px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.nav .nav-link:hover { background: var(--tonal); color: var(--tonal-ink); }
@media (min-width: 900px) { .nav .nav-link { display: inline-flex; } .nav .btn { margin-left: 8px; } }

.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* ---------- Hero ---------- */
/* Soft brand-colour circles behind the top of the page, as on the store screenshots. */
body::before, body::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px); z-index: -1; pointer-events: none;
}
body::before { width: 520px; height: 520px; right: -240px; top: -240px; background: var(--blob-b); }
body::after { width: 460px; height: 460px; left: -300px; top: 520px; background: var(--blob-a); }
.hero { padding: 16px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero h1 { max-width: 12ch; } }
.hero .lead { margin-top: 20px; font-size: 20px; max-width: 34ch; color: var(--ink-2); }
.hero .stores { margin-top: 28px; }
.hero .computer { margin-top: 14px; }
.hero .note { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; }
.hero .note .icon { color: var(--ok); width: 20px; height: 20px; }
.hero .note + .note { margin-top: 8px; }
.hero-art { justify-self: center; width: min(100%, 360px); }
.hero-art img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero { padding: 40px 0 96px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-art { width: 380px; justify-self: end; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.alt { background: var(--ground-alt); }
.section-head { max-width: 780px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; font-size: 20px; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step .num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--button); color: #fff; font: 900 22px/1 "Nunito", sans-serif; margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }

/* Features */
.features { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .features { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature { background: var(--surface); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .feature { padding: 26px 22px; } }
.feature .badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--mint); color: var(--mint-ink); margin-bottom: 16px;
}
.feature h3 { font-size: 18px; overflow-wrap: anywhere; }
@media (min-width: 720px) { .feature h3 { font-size: 20px; } }
.feature p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--muted); }

/* Screenshots */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.gallery-controls { display: none; gap: 8px; }
@media (min-width: 720px) { .gallery-controls { display: flex; } }
.round {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--tonal); color: var(--tonal-ink);
}
.round:hover { background: var(--tonal-press); }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0;
  padding: 8px var(--gutter) 24px; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
  max-width: calc(var(--max) + 0px); margin-inline: auto;
}
.gallery li { flex: 0 0 auto; width: min(72vw, 280px); scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: var(--shadow); background: var(--surface-2); }

/* Pricing */
.pricing { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; gap: 64px; } }
.price-card { background: var(--surface); border-radius: 28px; padding: 32px 20px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .price-card { padding: 40px; } }
.price { font: 900 56px/1 "Nunito", sans-serif; color: var(--ink); }
.price small { font: 600 20px/1 "Public Sans", sans-serif; color: var(--muted); margin-left: 6px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { color: var(--ok); margin-top: 3px; }
.price-card .stores img { height: 42px; }
@media (min-width: 720px) { .price-card .stores img { height: 48px; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; min-height: 64px; font: 800 19px/1.3 "Nunito", sans-serif; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; }

/* Contact */
.contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; } }
.contact-actions { display: grid; gap: 12px; justify-items: start; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card address { font-style: normal; }
.contact-card + .contact-card { margin-top: 12px; }

/* Footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer .brand img { height: 32px; margin-bottom: 14px; }
.site-footer p + p { margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Keep both store badges on one line on the narrowest phones. */
@media (max-width: 400px) { .hero .stores img { height: 46px; } }

/* The "Need something it doesn't do?" form */
.ask { display: grid; gap: 14px; max-width: 640px; margin-top: 24px; padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.ask-pair { display: grid; gap: 14px; }
@media (min-width: 600px) { .ask-pair { grid-template-columns: 1fr 1fr; } }
.ask-field { display: grid; gap: 6px; font-weight: 700; color: var(--ink); }
.ask-field input, .ask-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface-2); color: var(--ink); font: 400 17px/1.4 "Public Sans", system-ui, sans-serif; }
.ask-field textarea { resize: vertical; }
.ask-field input:focus, .ask-field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ask-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask .btn { justify-self: start; }
.ask .btn:disabled { opacity: .6; cursor: default; }
.ask-note { margin: 0; min-height: 1.4em; color: var(--muted); }
.ask-note.ok { color: var(--ok); font-weight: 700; }
.ask-note.bad { color: #b42318; font-weight: 700; }
