/* Grounded Word website. Colors from the app icon. */
:root {
  --navy: #042C53; --navy2: #0A3B6C; --deep: #021A33;
  --blue: #378ADD; --blue-dk: #185FA5; --sky: #A9CCF2; --mist: #E6F1FB;
  --leaf: #9DCA59; --leaf-dk: #4E7D22;
  --paper: #F7FAFD; --ink: #10243A; --soft: #5B7088; --line: #DCE6F0;
  --radius: 20px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--blue-dk); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(4, 44, 83, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mist); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav .links { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav .links a { color: var(--sky); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav .links a.on, .nav .links a:hover { color: #fff; }
.nav .links a.pill { background: var(--leaf); color: var(--navy); padding: 7px 15px; border-radius: 999px; font-weight: 700; }
@media (max-width: 640px) { .nav .links a:not(.pill) { display: none; } }

/* hero */
.hero { background: radial-gradient(120% 90% at 30% 0%, var(--navy2) 0%, var(--navy) 55%, var(--deep) 100%); color: var(--mist); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5.4vw, 58px); line-height: 1.08; margin: 0 0 16px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero p.lead { font-size: 19px; color: var(--sky); margin: 0 0 28px; max-width: 34em; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); font-weight: 700; margin-bottom: 14px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 13px 24px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.primary { background: var(--leaf); color: var(--navy); }
.btn.ghost { color: var(--mist); border: 1.5px solid rgba(169, 204, 242, .45); }
.btn.dark { background: var(--navy); color: #fff; }
.small-note { color: var(--sky); font-size: 13px; margin-top: 14px; opacity: .85; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; } }

/* phone frames (screenshots) */
.phones { position: relative; height: 470px; }
.phone { position: absolute; width: 250px; aspect-ratio: 800 / 1184; border-radius: 22px; background: #0B1726; padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.phone .screen { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #F3EBDD, #E6DCC8); position: relative; }
.phone .screen img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .screen .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #8A7A62; font-size: 13px; padding: 20px; }
.phone.a { left: 0; top: 30px; transform: rotate(-5deg); }
.phone.b { left: 52%; top: 0; transform: rotate(4deg); }
@media (max-width: 820px) { .phones { height: 380px; } .phone { width: 200px; } .phone.a { left: 4%; } .phone.b { left: 44%; } }

/* sections */
section { padding: 72px 0; }
section.alt { background: #fff; }
h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 12px; color: var(--navy); }
.sub { color: var(--soft); font-size: 18px; max-width: 40em; margin: 0 0 36px; }
.center { text-align: center; } .center .sub { margin-left: auto; margin-right: auto; }

/* three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--blue); margin-bottom: 14px; }
.step:nth-child(2) .n { background: var(--blue-dk); } .step:nth-child(3) .n { background: var(--leaf-dk); }
.step h3 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.step p { margin: 0; color: var(--soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--blue), var(--leaf)); }
.card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 21px; color: var(--navy); }
.card p { margin: 0; color: var(--soft); }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink); }
.card li { margin: 4px 0; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* split rows (text + screenshot) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .shot { display: flex; justify-content: center; }
.split .phone { position: relative; width: 310px; transform: none; left: auto; top: auto; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 30px; position: relative; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23042C53' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }

/* library shelf */
.shelf { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.shelf span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--ink); }

/* band */
.band { background: radial-gradient(120% 120% at 50% 0%, var(--navy2), var(--navy) 60%, var(--deep)); color: var(--mist); text-align: center; }
.band h2 { color: #fff; }
.band .sub { color: var(--sky); }
.verse { font-family: var(--serif); font-style: italic; color: var(--sky); font-size: 19px; max-width: 34em; margin: 0 auto; }
.verse b { display: block; font-style: normal; font-weight: 600; color: var(--leaf); font-size: 13px; letter-spacing: .1em; margin-top: 8px; }

/* plain page (privacy, about, download) */
.page-head { background: linear-gradient(var(--navy), var(--navy2)); color: var(--mist); padding: 56px 0 44px; }
.page-head h1 { font-family: var(--serif); color: #fff; font-size: clamp(32px, 4.6vw, 46px); margin: 0 0 8px; }
.page-head p { color: var(--sky); margin: 0; font-size: 18px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { color: var(--navy); margin: 26px 0 6px; }
.prose p, .prose li { color: #24384F; }
.numbered { counter-reset: n; list-style: none; padding: 0; }
.numbered li { counter-increment: n; position: relative; padding: 4px 0 14px 50px; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.note { background: #EEF6E4; border: 1px solid #CFE3B4; border-radius: 14px; padding: 16px 18px; color: #2E4A14; }
.dl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.dl img { width: 72px; height: 72px; border-radius: 18px; }
.dl .meta { flex: 1; min-width: 200px; }
.dl .meta b { font-size: 20px; color: var(--navy); }

/* footer */
footer { background: var(--deep); color: var(--sky); padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer a { color: var(--mist); text-decoration: none; }
footer .copy { margin-left: auto; opacity: .8; }

/* two tablets side by side: the card that opens at the verse, and its senses */
.duo { position: relative; height: 520px; width: 100%; max-width: 540px; }
.split .duo .phone { position: absolute; width: 275px; }
.split .duo .phone.a { left: 0; top: 30px; transform: rotate(-4deg); }
.split .duo .phone.b { left: auto; right: 0; top: 0; transform: rotate(4deg); }
.cap { font-size: 13px; color: var(--blue-dk); text-align: center; margin-top: 10px; }
.stat { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.stat div { background: var(--mist); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--navy); }
.stat b { display: block; font-size: 22px; }
@media (max-width: 820px) { .duo { height: 400px; max-width: 440px; margin: 0 auto; } .split .duo .phone { width: 200px; } }

.claim { font-size: 19px; font-weight: 600; color: var(--leaf); margin: -6px 0 16px; letter-spacing: .01em; }
.claim.dark { color: var(--leaf-dk); margin: 22px 0 0; font-size: 17px; }

.mission { padding: 64px 0; background: var(--mist); }
.mission figure { margin: 0 auto; max-width: 46em; text-align: center; position: relative; }
.mission figure { border-top: 3px solid var(--leaf); padding-top: 28px; max-width: 40em; }
.mission blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--navy); }
.mission figcaption { margin-top: 14px; font-size: 14px; color: var(--blue-dk); letter-spacing: .02em; }
.mission figcaption b { color: var(--navy); }
.mission .aim { max-width: 40em; margin: 26px auto 0; text-align: center; font-size: 18px; color: #3B5672; }
@media (max-width: 820px) { .mission { padding: 44px 0; } .mission blockquote { font-size: 21px; } }

.mission .plain { margin: 14px auto 0; max-width: 36em; font-size: 16px; color: #3B5672; }
.mission .plain span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-dk); margin-bottom: 4px; }
.mission figcaption { line-height: 1.5; }

/* the screenshots: sharper frames, and a tap opens the picture full size */
.phone .screen img { cursor: zoom-in; image-rendering: auto; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(2, 26, 51, .94); display: flex; align-items: center; justify-content: center; padding: 18px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox span { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 30px; line-height: 1; }
@media (max-width: 820px) { .split .phone { width: 270px; } }

/* narrow screens (tablets held upright, phones): one big, straight screenshot at a time, so its words stay readable */
@media (max-width: 820px) {
  .phones { height: auto; display: flex; justify-content: center; }
  .phones .phone.b { display: none; }
  .phones .phone.a, .split .phone, .split .duo .phone {
    position: relative; left: auto; right: auto; top: auto; transform: none;
    width: min(460px, 88vw);
  }
  .duo { height: auto; max-width: none; display: flex; flex-direction: column; align-items: center; gap: 22px; }
}
