/* Pianissima website. Colours follow the app: dark navy + teal by default,
   the app's cool light theme when the visitor's system is light. */

@font-face {
  font-family: "Arima";
  src: url("../fonts/Arima-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Arima";
  src: url("../fonts/Arima-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0a1220;
  --bg-2: #0d1626;
  --card: #111c30;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #eef3f8;
  --ink-2: #b4c0cf;
  --ink-3: #7d8a9c;
  --accent: #00e5c8;
  --accent-ink: #04211d;
  --accent-soft: rgba(0, 229, 200, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --display: "Arima", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fa;
    --bg-2: #ffffff;
    --card: #ffffff;
    --line: rgba(20, 34, 54, 0.1);
    --ink: #142236;
    --ink-2: #44546a;
    --ink-3: #6b7a8e;
    --accent: #1f9e70;
    --accent-ink: #ffffff;
    --accent-soft: rgba(63, 184, 138, 0.14);
    --shadow: 0 14px 40px rgba(20, 34, 54, 0.1);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav .opt { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg-2); }
.btn-ghost:hover { border-color: var(--accent); }

.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); min-width: 170px;
}
.store small { color: var(--ink-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.store span { font-weight: 600; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }
.hero-art { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 40px; gap: 32px; }
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--ink-2); margin: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-art { order: 2; }
.feature-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--card); }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }
.feature ul { padding-left: 1.1em; color: var(--ink-2); margin: 0; }
.feature li { margin: 0.3em 0; }
.feature p { color: var(--ink-2); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature.flip .feature-art { order: 0; }
}

.steps { counter-reset: step; }
.steps .card h3::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 0.95rem var(--body);
  vertical-align: 3px;
}

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .price { font-family: var(--display); font-size: 1.9rem; margin: 4px 0 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 4px; color: var(--ink-2); }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.note { color: var(--ink-3); font-size: 0.92rem; }

/* CTA band */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 24px; }
.cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Support + FAQ */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 20px; margin: 10px 0;
}
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.3rem; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p, details li { color: var(--ink-2); }
details ul, details ol { padding-left: 1.2em; margin: 0 0 1em; }
.faq-group { margin-top: 44px; }
.faq-group h2 { font-size: 1.6rem; }
.path { font-weight: 600; color: var(--ink); }
.contact-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
@media (max-width: 760px) { .contact-card { grid-template-columns: minmax(0, 1fr); } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }

/* Legal */
.legal { padding: 56px 0 72px; }
.legal h1 { margin-bottom: 0.2em; }
.legal .effective { color: var(--ink-3); margin-bottom: 28px; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; scroll-margin-top: 80px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 0.4em 0; }
.legal strong { color: var(--ink); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin: 0 0 28px; }
.toc p { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.site-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-3); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* App screenshots (iPad, landscape) in a thin device frame. */
figure { margin: 0; }
.device {
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 2420 / 1668;
}
.device picture, .device img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.hero-device { border-radius: 22px; outline: 8px solid var(--bg-2); outline-offset: 0; }
.shots figure, .strip figure { aspect-ratio: auto; background: var(--card); }
.shots picture, .strip picture { aspect-ratio: 2420 / 1668; height: auto; }
.shots img, .strip img { height: auto; }
figcaption { padding: 10px 14px 12px; color: var(--ink-2); font-size: 0.95rem; }
.shots figcaption { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(20px, calc((100vw - 1080px) / 2)) 24px;
  scrollbar-width: thin;
}
.strip figure { scroll-snap-align: center; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-device { outline-width: 4px; }
}
