/* Pray Five website. Colours, radii and type follow docs/brand.md and the
   Garden theme in lib/theme/app_theme.dart. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fraunces-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fraunces-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #1F3A33;
  --ink-soft: #55706A;
  --ink-faint: #7D938C;
  --mist: #F3F8F5;
  --cloud: #FFFFFF;
  --haze: #E6F0EA;
  --line: #DCE8E1;
  --accent: #1F7559;
  --glow: linear-gradient(120deg, #1E7A63, #3B8B6B, #5E9669);
  --sky: linear-gradient(180deg, #2E7A62 0%, #5A8F72 58%, #F0CD95 100%);
  --night: linear-gradient(180deg, #0C1E1A 0%, #15302A 55%, #25493F 100%);
  --peach: #FFD3AE;
  --moon: #FFE3B0;
  --shadow: 0 1px 2px rgba(20, 50, 40, .06), 0 8px 24px rgba(20, 50, 40, .08);
  --float: 0 12px 32px rgba(20, 50, 40, .14);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEF5F1;
    --ink-soft: #A8C1B8;
    --ink-faint: #6F8C83;
    --mist: #0F1B18;
    --cloud: #172622;
    --haze: #21352F;
    --line: #2B423B;
    --accent: #86D3B2;
    --sky: linear-gradient(180deg, #1F4F41 0%, #3D6050 58%, #9C8668 100%);
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    --float: inset 0 1px 0 rgba(255, 255, 255, .06);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(30px, 5vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0; }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--ink-soft); margin-top: 14px; max-width: 34em; }

/* Header bar over the sky */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.bar nav { display: flex; gap: 6px; }
.bar nav a {
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.bar nav a:hover { background: rgba(255, 255, 255, .26); }

/* The sky */
.sky { position: relative; overflow: hidden; background: var(--sky); color: #fff; isolation: isolate; }
.sky.night { background: var(--night); }
.cloud-soft {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0));
  animation: drift 60s ease-in-out infinite alternate;
}
.cloud-soft.c1 { width: 70vw; height: 70vw; left: -20vw; top: -25vw; }
.cloud-soft.c2 { width: 55vw; height: 55vw; right: -18vw; top: 10vw; animation-delay: -20s; }
.cloud-soft.c3 { width: 40vw; height: 40vw; left: 30vw; bottom: -15vw; animation-delay: -40s; }
@keyframes drift { from { transform: translateX(-3vw); } to { transform: translateX(3vw); } }
@media (prefers-reduced-motion: reduce) { .cloud-soft { animation: none; } }

.hero { padding: 120px 0 0; overflow: visible; }
.sky-layer { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.sun {
  position: absolute; width: 300px; height: 300px; right: 33%; bottom: 30%; border-radius: 50%;
  background: radial-gradient(closest-side, #FFD3AE 0 9%, rgba(255, 211, 174, .6) 16%, rgba(255, 211, 174, .2) 45%, rgba(255, 211, 174, 0));
}
.hero > .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero-text { padding-bottom: 150px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 78px); text-shadow: 0 2px 30px rgba(12, 40, 33, .25); }
.hero .lead { color: rgba(255, 255, 255, .92); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badges a { display: block; border-radius: 8px; transition: transform .2s ease-out; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 52px; width: auto; }
.hero .note { font-size: 14px; color: rgba(255, 255, 255, .85); margin-top: 14px; }


.phone {
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 1320 / 2868;
  border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #3a3d41, #1b1c1f 45%, #2c2e32);
  box-shadow: 0 30px 60px rgba(12, 40, 33, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.phone img { width: 100%; height: 100%; border-radius: 38px; object-fit: cover; }
.hero .phone { justify-self: center; margin-bottom: -170px; z-index: 2; }

/* Sections */
section.block { padding: 96px 0; }
section.block.after-hero { padding-top: 220px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* A sky for every prayer */
.strip {
  display: flex; gap: 22px; margin-top: 44px; padding: 10px 20px 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.strip .phone { width: 200px; border-radius: 32px; padding: 6px; box-shadow: var(--float); }
.strip .phone img { border-radius: 27px; }
.strip figcaption { margin-top: 14px; font-family: var(--serif); font-size: 20px; }
.strip figcaption span { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
@media (min-width: 1160px) { .strip { justify-content: center; } }

/* Privacy */
.promise { background: var(--cloud); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 56px 48px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.promise-grid p { color: var(--ink-soft); margin-top: 8px; }
.tile {
  width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--haze);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--accent);
}
.tile svg { width: 24px; height: 24px; }
.promise .more { margin-top: 36px; color: var(--ink-soft); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { background: var(--cloud); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 28px 26px; }
.feature h3 { font-size: 21px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 16px; }
.feature li { padding: 5px 0 5px 20px; position: relative; }
.feature li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* Pray Five+ */
.plus { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.plus-card { background: var(--glow); color: #fff; border-radius: var(--r-lg); padding: 40px 36px; box-shadow: 0 8px 20px rgba(46, 132, 104, .32); }
.plus-card h3 { font-size: 30px; }
.plus-card ul { margin: 18px 0 0; padding-left: 20px; }
.plus-card li { margin: 8px 0; }
.plus-card .small { margin-top: 18px; font-size: 14px; opacity: .9; }

/* Final call */
.final { padding: 110px 0 120px; text-align: center; }
.final h2 { color: #fff; }
.final .lead { color: rgba(255, 255, 255, .88); margin: 14px auto 0; }
.final .badges { justify-content: center; }
.moon { width: 64px; height: 64px; margin: 0 auto 26px; filter: drop-shadow(0 0 24px rgba(255, 227, 176, .55)); }
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Footer */
footer { padding: 44px 0 56px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--accent); text-decoration: underline; }
footer .brand { color: var(--ink); font-size: 19px; }
footer .copyright { width: 100%; font-size: 14px; }
footer .brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: none; }

/* Text pages: privacy, support */
.page-head { padding: 128px 0 120px; }
.page-head h1 { font-size: clamp(38px, 6vw, 56px); }
.page-head .lead { color: rgba(255, 255, 255, .92); }
.doc { background: var(--cloud); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 48px; margin: -32px auto 0; position: relative; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 8px 0; }
.doc .meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.doc a { word-break: break-word; }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg);
  transition: transform .2s ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); }
.faq details > div p + p { margin-top: 10px; }

.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--glow); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px; box-shadow: 0 8px 20px rgba(46, 132, 104, .32);
}
.button.secondary { background: var(--haze); color: var(--accent); box-shadow: none; }
.button:hover { text-decoration: none; filter: brightness(1.05); }

/* Phone widths */
@media (max-width: 860px) {
  .hero { padding-top: 104px; }
  .hero > .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { padding-bottom: 0; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .hero .phone { width: 250px; margin-bottom: -150px; }
  section.block.after-hero { padding-top: 190px; }
  .sun { width: 240px; height: 240px; right: auto; left: -80px; bottom: 30%; }
  .promise-grid, .features, .plus { grid-template-columns: 1fr; }
  .plus { gap: 28px; }
  section.block { padding: 72px 0; }
  .promise { padding: 40px 24px; }
  .doc { padding: 32px 22px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .bar nav a { padding: 7px 11px; font-size: 14px; }
  .features { gap: 14px; }
  .feature { padding: 24px 20px; }
  .plus-card { padding: 32px 24px; }
  .strip .phone { width: 170px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 359px) { .bar .brand span { display: none; } }

section.block.tight { padding-top: 0; }
.lost { min-height: 100vh; display: grid; place-items: center; }
.lost-action { margin-top: 28px; }
