/* RollingCoin site. The inks are the application's own: the logo blue, the intro band greys. */
:root {
  --blue: #2680da;
  --blue-dark: #1f6bb8;
  --band-top: #484848;
  --band-bottom: #5e5e5e;
  --ink: #1e232a;
  --muted: #5f6772;
  --line: #dde1e6;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --card: #ffffff;
  --radius: 14px;
  --container: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: #1e232a; color: var(--ink);
  background: #ffffff; background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2680da; color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 3.1rem; font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: 2.1rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: #5f6772; color: var(--muted); }
.container { max-width: 1120px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* Header: the application's title band, logo the way the open panel places it. */
.site-header {
  background: linear-gradient(#484848, #5e5e5e); background: linear-gradient(var(--band-top), var(--band-bottom));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-coin { width: 44px; height: 44px; }
.wordmark { height: 31px; width: 163px; display: block; }
.wordmark .coin { fill: #cfcfcf; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  color: #e6e6e6;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav a.current { color: #fff; background: rgba(255, 255, 255, 0.16); }
.menu-toggle { display: none; }

/* Hero */
.hero { background: #f4f6f8; background: var(--bg-soft); border-bottom: 1px solid #dde1e6; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { margin-bottom: 0.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.hero-note { color: #5f6772; color: var(--muted); font-size: 0.95rem; }
.hero-picture img {
  border-radius: 14px; border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(30, 35, 42, 0.18), 0 2px 6px rgba(30, 35, 42, 0.1);
  border: 1px solid #dde1e6; border: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.button.store { background: #2680da; background: var(--blue); color: #fff; }
.button.store:hover { background: #1f6bb8; background: var(--blue-dark); transform: translateY(-1px); }
.button.quiet { background: transparent; color: #1e232a; color: var(--ink); border: 1px solid #dde1e6; border: 1px solid var(--line); }
.button.quiet:hover { border-color: #5f6772; border-color: var(--muted); }

/* A screenshot in the light look with its dark twin fading in and out over it - the two looks the
   program offers, shown rather than described. Both frames are the same size, so the box is the
   first picture's and the second lies over it. */
.crossfade { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid #dde1e6; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(30, 35, 42, 0.18), 0 2px 6px rgba(30, 35, 42, 0.1); }
.crossfade img { display: block; width: 100%; height: auto; }
.crossfade img.dark { position: absolute; top: 0; left: 0; opacity: 0; animation: crossfade 12s ease-in-out infinite; }
@keyframes crossfade {
  0%, 38% { opacity: 0; }
  50%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .crossfade img.dark { animation: none; }
}
.hero-picture img { border: 0; border-radius: 0; box-shadow: none; }

/* The small line above a section's heading that says what part of the program it is about. */
.eyebrow { color: #2680da; color: var(--blue); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4em; }
.section-lead { max-width: 720px; margin: 0 auto 44px; text-align: center; }

/* What it gives you: the reasons, before the tour of how. */
.benefits { padding-top: 80px; padding-bottom: 80px; }
.benefits h2 { text-align: center; margin-bottom: 16px; }
.benefit h3 { font-size: 1.2rem; }

/* The tour: a screenshot and what it shows, the picture on alternate sides, on alternate grounds. */
.tour { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid #dde1e6; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.tour.flip { background: #f4f6f8; background: var(--bg-soft); }
.tour-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.tour.flip .tour-inner { grid-template-columns: 0.75fr 1.25fr; }
.tour.flip .tour-picture { order: 2; }
.tour-text p:last-child { margin-bottom: 0; }
/* A grid cell may otherwise grow to its screenshot's own 1400px and push past a phone's screen. */
.hero-inner > *, .tour-inner > *, .wallet-inner > * { min-width: 0; }

/* Features */
.features { padding-top: 80px; padding-bottom: 80px; }
.features h2 { text-align: center; margin-bottom: 44px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #ffffff; background: var(--card);
  border: 1px solid #dde1e6; border: 1px solid var(--line);
  border-radius: 14px; border-radius: var(--radius);
  padding: 26px 24px;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(38, 128, 218, 0.12);
  color: #2680da; color: var(--blue);
  margin-bottom: 14px;
}
.feature p { margin: 0; color: #5f6772; color: var(--muted); font-size: 0.98rem; }

/* Wallet */
.wallet { background: #ffffff; background: var(--bg); border-top: 1px solid #dde1e6; border-top: 1px solid var(--line); border-bottom: 1px solid #dde1e6; border-bottom: 1px solid var(--line); }
.wallet-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
/* The two ends of the phone link: the rcPhoneLink window on the computer at the back, the phone
   in front of it at the lower right, spilling below the window's edge - the picture's padding is
   the room it spills into. Both crossfade light and dark in step, like the other windows. */
.wallet-picture { position: relative; padding: 0 0 20% 0; }
.wallet-picture .link { width: 84%; }
.wallet-picture .phone { position: absolute; right: 0; bottom: 0; width: 27%; border-radius: 12px; box-shadow: 0 24px 60px rgba(30, 35, 42, 0.28), 0 2px 6px rgba(30, 35, 42, 0.12); }

/* Two windows of the product together, the smaller one in front at the lower right - the Values
   section and the Watched Values program that downloads what it charts. */
.duo { position: relative; padding: 0 0 16% 0; }
.duo .back { width: 92%; }
.duo .front { position: absolute; right: 0; bottom: 0; width: 58%; box-shadow: 0 24px 60px rgba(30, 35, 42, 0.28), 0 2px 6px rgba(30, 35, 42, 0.12); }

/* Closing */
.closing { padding-top: 80px; padding-bottom: 80px; text-align: center; }
.closing .lead { max-width: 640px; margin: 0 auto 28px; }

/* Text pages */
.page { padding-top: 56px; padding-bottom: 80px; }
.page h1 { margin-bottom: 0.3em; }
.news-item { border-top: 1px solid #dde1e6; border-top: 1px solid var(--line); padding: 28px 0 8px; }
.news-item time { color: #5f6772; color: var(--muted); font-size: 0.9rem; }
.news-item h2 { font-size: 1.4rem; margin-top: 4px; }
.toc { background: #f4f6f8; background: var(--bg-soft); border: 1px solid #dde1e6; border: 1px solid var(--line); border-radius: 14px; border-radius: var(--radius); padding: 18px 24px; margin: 24px 0 40px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.help-section { border-top: 1px solid #dde1e6; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; scroll-margin-top: 90px; }
.help-section h2 { font-size: 1.5rem; }
.help-section h3 { margin-top: 1.4em; }
.legal-note:empty { display: none; }
.legal-note { background: #f4f6f8; background: var(--bg-soft); border: 1px solid #dde1e6; border: 1px solid var(--line); border-radius: 14px; border-radius: var(--radius); padding: 4px 20px; margin: 24px 0; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
ul { padding-left: 1.3em; }
li { margin-bottom: 0.3em; }

/* Footer */
.site-footer { background: #484848; background: var(--band-top); color: #cfcfcf; padding-top: 28px; padding-bottom: 28px; font-size: 0.92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
/* The other language sits last in the footer: the browser's language is picked on arrival, so few need it. */
.site-footer a.language { border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; padding: 0 10px; }

/* IE11 only (X5's window): it knows no gap in a flex row nor grids, so margins stand in for them. */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .logo-coin { margin-right: 10px; }
  .site-nav a { margin-left: 6px; }
  .button svg { margin-right: 10px; }
  .hero-actions .button { margin-right: 12px; }
  .hero-picture, .tour-text, .wallet-picture { margin-top: 36px; }
  .feature { margin-bottom: 24px; }
  .footer-links a { margin-left: 20px; }
}

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .hero-inner, .wallet-inner, .tour-inner, .tour.flip .tour-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner, .wallet-inner { padding-top: 48px; padding-bottom: 48px; }
  .tour { padding-top: 48px; padding-bottom: 48px; }
  .tour.flip .tour-picture { order: 0; }
  .wallet-inner { text-align: center; }
  .wallet-picture { max-width: 440px; margin: 0 auto; }
  .toc ol { columns: 1; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: #5e5e5e; background: var(--band-bottom);
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  body.menu-open .site-nav { display: flex; }
}
