/* Trino website. One shared stylesheet, no build step.
   Colors and shapes come from the app's own design system. */

:root {
  --sky-top: #CFE6FF;
  --sky-middle: #E6E8FF;
  --sky-bottom: #FFE6F1;

  --ink: #1B2550;
  --ink-soft: #5D6690;
  --ink-ghost: rgba(27, 37, 80, .12);

  --card: rgba(255, 255, 255, .85);
  --card-edge: #FFFFFF;
  --shadow: rgba(59, 91, 181, .16);
  --well: rgba(234, 241, 255, .75);

  --action-top: #64A0FF;
  --action: #3D7BFF;
  --action-edge: #2152CC;
  --shelf: #BFCDEE;

  --rose: #FF6FA5;
  --rose-soft: #FFDCEA;
  --rose-deep: #9C1F55;
  --plum: #9B7BE8;
  --plum-soft: #E7DEFF;
  --plum-deep: #44288F;
  --mint: #45C48B;
  --mint-soft: #D3F4E4;
  --mint-deep: #136144;
  --sky: #4DA8F0;
  --sky-soft: #D3E8FF;
  --sky-deep: #0F4C81;

  --radius: 28px;
  --column: 720px;
  --gutter: 20px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}

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

html {
  background: var(--sky-middle);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-middle) 50%, var(--sky-bottom) 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--action-edge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--action); }

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.75rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }
li::marker { color: var(--action); font-weight: 800; }

strong { font-weight: 800; }

/* ---------- Layout ---------- */

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: calc(var(--column) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main { flex: 1; padding-bottom: 24px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 10;
}
.skip:focus { left: 8px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 10px var(--shadow);
}

/* Language switcher */
.lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card);
  border: 1.5px solid var(--card-edge);
  border-radius: 999px;
  box-shadow: 0 6px 16px var(--shadow);
  font-size: .85rem;
  font-weight: 800;
  line-height: 1;
}
.lang a,
.lang span {
  display: inline-block;
  min-width: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang a:hover { background: var(--well); color: var(--ink); }
.lang [aria-current] { background: var(--action); color: #fff; }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1.5px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px var(--shadow);
  padding: 28px;
  margin-top: 20px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.card > h2 { margin-bottom: 12px; }
.card > :last-child { margin-bottom: 0; }
.card > h3 { margin-bottom: 8px; }

.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* ---------- Buttons: puffy 3D capsules ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--action-top) 0%, var(--action) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .32),
    0 6px 0 var(--action-edge),
    0 14px 22px var(--shadow);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transform: translateY(0);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.btn:hover { color: #fff; }
.btn:active {
  transform: translateY(6px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .32),
    0 0 0 var(--action-edge),
    0 4px 10px var(--shadow);
}

.btn.quiet {
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 6px 0 var(--shelf),
    0 14px 22px var(--shadow);
}
.btn.quiet:hover { color: var(--ink); }
.btn.quiet:active {
  box-shadow:
    0 0 0 var(--shelf),
    0 4px 10px var(--shadow);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

/* ---------- Home ---------- */

.hero {
  text-align: center;
  padding: 12px 0 8px;
}
.hero-art {
  width: min(78vw, 360px);
  margin: 0 auto -6px;
  filter: drop-shadow(0 18px 22px var(--shadow));
}
.hero h1 { margin-top: 8px; }
.hero .lead {
  max-width: 34em;
  margin: 16px auto 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.hero .tagline {
  margin: 10px auto 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-soft);
}

/* "Coming soon" line: plain text, not a store badge and not a link. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 12px 24px var(--shadow);
}
.soon::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
}
.devices { margin-top: 14px; color: var(--ink-soft); font-size: .95rem; }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}
.feature {
  margin-top: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px 24px 20px 16px;
}
/* The art has a wide transparent margin, so it is drawn a little larger than its box. */
.feature img { width: 120px; height: 120px; object-fit: contain; transform: scale(1.3); }
.feature h2 { font-size: 1.3rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
}
.chips li {
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.3;
}
.chips .rose { background: var(--rose-soft); color: var(--rose-deep); }
.chips .plum { background: var(--plum-soft); color: var(--plum-deep); }
.chips .mint { background: var(--mint-soft); color: var(--mint-deep); }
.chips .sky { background: var(--sky-soft); color: var(--sky-deep); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(.2em + 5px);
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.bibles { list-style: none; padding: 0; margin: 12px 0 0; }
.bibles li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--well);
  border-radius: 18px;
}
.bibles b { display: block; font-weight: 800; }
.bibles span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Legal and support pages ---------- */

.page-head { padding: 20px 0 4px; }
.page-head .kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.3;
}
.kicker.rose { background: var(--rose-soft); color: var(--rose-deep); }
.kicker.plum { background: var(--plum-soft); color: var(--plum-deep); }
.kicker.mint { background: var(--mint-soft); color: var(--mint-deep); }
.page-head .date { margin-top: 10px; color: var(--ink-soft); font-weight: 700; }
.page-head .lead { margin-top: 14px; font-size: 1.15rem; }

.page-head.with-art {
  display: grid;
  grid-template-columns: 1fr 130px;
  align-items: center;
  gap: 12px;
}
.page-head.with-art img { width: 130px; height: 130px; object-fit: contain; transform: scale(1.3); }

.doc h2 { font-size: 1.35rem; }
.doc h3 { margin-top: 18px; margin-bottom: 6px; font-size: 1.05rem; }

.summary { border-color: #fff; background: rgba(255, 255, 255, .92); }

.path { font-weight: 800; white-space: nowrap; }

.plan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 12px 0 16px;
  padding: 16px 18px;
  background: var(--well);
  border-radius: 18px;
}
.plan dt { color: var(--ink-soft); font-weight: 700; }
.plan dd { margin: 0; font-weight: 800; }

.contact { text-align: center; }
.contact p { color: var(--ink-soft); }
.contact .btn { margin-top: 6px; }

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 28px;
  padding-bottom: 36px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .95rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-bottom: 10px;
}
.site-footer a {
  display: inline-block;
  padding: 8px 2px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .card { padding: 22px 20px; border-radius: 24px; }
  .feature { grid-template-columns: 88px 1fr; gap: 14px; padding: 18px 18px 18px 12px; }
  .feature img { width: 88px; height: 88px; }
  .page-head.with-art { grid-template-columns: 1fr 96px; }
  .page-head.with-art img { width: 96px; height: 96px; }
  .actions .btn { flex: 1 1 100%; }
  .plan { grid-template-columns: 1fr; gap: 0; }
  .plan dd { margin-bottom: 10px; }
  .plan dd:last-child { margin-bottom: 0; }
  .path { white-space: normal; }
  .site-footer { font-size: .9rem; }
  .site-footer nav { gap: 2px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  body { background: #fff; }
  .card { box-shadow: none; border-color: var(--ink-ghost); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .lang, .skip { display: none; }
}
