/* ivorypiano.com: the app's own look (PaywallColor, Figtree). Light only, like the app. */
:root {
  --page: #FBF6EF; --paper: #FFFDF9; --ink: #2B211D; --muted: #5F534B; --line: #EADFD3;
  --pill: #F3EBE2; --accent: #B4552C; --peach: #F4A57E; --lit: #FCD9C4; --keydark: #3D302A;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 "Figtree", -apple-system, system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site { padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.brand:hover { text-decoration: none; }
.pearl { width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 30%, #FFFCF2 0%, #EEDCC2 55%, #BD9E80 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 3px 10px rgba(91,60,30,.18); }
nav.site a { color: var(--muted); font-weight: 600; font-size: 15px; margin-left: 20px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-weight: 800; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -1.6px; margin: 0 0 18px; }
.hero p.lede { color: var(--muted); font-size: 20px; margin: 0 0 30px; max-width: 30em; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #FFF8F1; border-radius: 999px;
  padding: 15px 26px; font-weight: 700; font-size: 17px; }
.store:hover { text-decoration: none; opacity: .92; }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store.soon { background: var(--pill); color: var(--muted); cursor: default; }
.hero .small { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* The listening card (as on the app's welcome screen) */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: 0 18px 50px rgba(91,60,30,.10); }
.card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.listening { display: inline-flex; align-items: center; gap: 8px; background: var(--lit); color: var(--accent); font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 999px; }
.listening::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.piece { color: var(--muted); font-size: 15px; }
.keys { position: relative; height: 120px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; background: #FFFDF8; }
.keys .w { flex: 1; border-right: 1px solid var(--line); }
.keys .w:last-child { border-right: 0; }
.keys .w.lit { background: var(--lit); }
.keys .b { position: absolute; top: 0; width: 4.4%; height: 60%; background: var(--keydark); border-radius: 0 0 5px 5px; }
.remark { display: flex; gap: 14px; align-items: center; background: #F8F2EA; border-radius: 18px; padding: 16px 18px; margin-top: 18px; font-size: 17px; line-height: 1.4; }
.remark .pearl { width: 30px; height: 30px; }
.note-b { color: #8B7BC0; font-weight: 700; } .note-c { color: var(--accent); font-weight: 700; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .listening::before { animation: none; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 8px 0 80px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.3px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature .icon { width: 38px; height: 38px; border-radius: 12px; background: var(--lit); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Text pages */
.doc { max-width: 720px; min-width: 0; padding: 24px 0 80px; }
.doc h1 { font-size: 44px; letter-spacing: -1px; line-height: 1.08; margin: 12px 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 34px; }
.doc h2 { font-size: 22px; letter-spacing: -0.3px; margin: 38px 0 10px; }
.doc p, .doc li { color: #3F332D; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .table { overflow-x: auto; margin: 14px 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.fill { background: #FFE7B8; border-radius: 4px; padding: 0 4px; color: var(--ink); }
.contact { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px; margin: 18px 0; }
.contact a { font-weight: 700; font-size: 20px; }

main { flex: 1 0 auto; width: 100%; min-width: 0; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--muted); margin-right: 18px; font-weight: 600; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 20px 0 56px; }
  .features { grid-template-columns: 1fr; }
  nav.site a { margin-left: 14px; }
  .doc h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  /* The privacy table as one block per row, each part labelled. */
  .doc table { min-width: 0; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr:first-child { display: none; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .doc td { border: 0; padding: 4px 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin-top: 6px; }
  .doc td:first-child { font-weight: 700; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .card { padding: 16px; border-radius: 22px; }
}
footer.site a { display: inline-block; }   /* whole links wrap as units */
footer.site .credit { width: 100%; font-size: 12px; opacity: .8; }
footer.site .credit a { margin: 0; font-weight: 500; }
