/* IdeaLove site. Colours are the brand tokens (waterman:
   docs/brand/color-tokens.json) plus the IdeaLove wordmark's coral-red.
   Phone first: most visitors arrive from a store listing or a shared link. */
:root {
  --navy: #0B2D4F; --ocean: #0066CC; --aqua: #0084DB; --seafoam: #2ECC71;
  --sunrise: #FFCC3D; --coral: #FF7750; --love: #F2401F; --sand: #F4EBD0; --sky: #E6F4FF;
  --ink-soft: #3d566e; --card: #ffffff; --line: #d9e3ea;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #f7fbff; color: var(--navy);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.55;
}
a { color: var(--ocean); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--love); font-weight: 800; }
.top nav { display: flex; gap: 18px; font-weight: 600; font-size: .98rem; }
.top nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; }
.top nav a[aria-current] { color: var(--navy); border-bottom: 2px solid var(--love); }

/* Type */
main { padding-bottom: 32px; }
h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); line-height: 1.12; margin: .2rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); line-height: 1.2; margin: 2.4rem 0 .7rem; }
h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
p { margin: .6rem 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--aqua); margin: 0; }
.pillars { letter-spacing: .18em; font-size: .78rem; color: var(--navy); }
.pillars span { color: var(--sunrise); margin: 0 .15em; }
section { padding: 8px 0; }

/* Blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.note { background: #fff8e1; border-left: 4px solid var(--sunrise); border-radius: 10px; padding: 14px 16px; }
.pill { display: inline-block; background: var(--sand); color: var(--navy); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .95rem; }
.btn { display: inline-block; background: var(--ocean); color: #fff; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 12px 18px; }
.btn.ghost { background: transparent; color: var(--ocean); border: 2px solid var(--ocean); padding: 10px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.grid2, .grid3 { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.list { padding-left: 1.2rem; } .list li { margin: .35rem 0; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #f7fbff 100%); padding: 28px 0 8px; }
.hero .wrap { display: grid; gap: 18px; align-items: center; }
.hero .logo { width: min(300px, 70%); }
.hero .mark { width: min(260px, 60%); justify-self: center; }
@media (min-width: 760px) { .hero .wrap { grid-template-columns: 1.3fr 1fr; } .hero .mark { width: 300px; } }

/* App card */
.app { display: grid; gap: 18px; align-items: center; }
.app .mark { width: 120px; }
.app .tag { color: var(--aqua); font-weight: 800; font-size: 1.2rem; margin: 0; }
.app .sub { font-weight: 600; margin: .2rem 0 .6rem; }
@media (min-width: 760px) { .app { grid-template-columns: 140px 1fr; } }

/* Activities */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acts div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; text-align: center; font-weight: 600; font-size: .92rem; }
.acts img { width: 48px; height: 48px; margin: 0 auto 6px; }
@media (min-width: 760px) { .acts { grid-template-columns: repeat(9, 1fr); } }

/* Score bands */
.bands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bands div { border-radius: 12px; padding: 10px 12px; color: #fff; font-weight: 700; }
.bands small { display: block; font-weight: 500; opacity: .95; }
@media (min-width: 760px) { .bands { grid-template-columns: repeat(4, 1fr); } }

/* Screenshots: a row that scrolls sideways on a phone */
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; -webkit-overflow-scrolling: touch; }
.shots figure { flex: 0 0 min(70vw, 250px); margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(11,45,79,.12); }
.shots figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }

/* Free vs Premium */
table.tiers { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; font-size: .95rem; }
.tiers th, .tiers td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tiers thead th { background: var(--navy); color: #fff; }
.tiers tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: .6rem 0 .2rem; }

/* Legal and reference pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.meta { color: var(--ink-soft); font-size: .95rem; }
dl.sources dt { font-weight: 700; margin-top: 1rem; }
dl.sources dd { margin: .2rem 0 0; }

/* Footer */
footer { margin-top: 24px; }
.waves { display: block; width: 100%; height: 70px; }
.foot { background: #0B4F8A; color: #e6f4ff; }
.foot .wrap { padding: 16px 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.foot a { color: #fff; text-decoration: none; font-weight: 600; }
.foot p { margin: 0; font-size: .9rem; opacity: .9; }

/* Shown only on wider screens, where it sits beside the text rather than repeating below it. */
@media (max-width: 759px) { .wide-only { display: none; } }
