/* Arete website - one stylesheet for every page. Colors are the app's own theme tokens
   (Hypertrophy_Android ui/theme/Color.kt), so the site and the app look like one product.
   No web fonts and no scripts on purpose: nothing is loaded from third parties. */

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #f1ece1;
  --text: #211c14;
  --muted: #6f6656;
  --border: #e2dacb;
  --accent: #e8590c;
  --accent-text: #b8460a; /* accent dark enough for body-size text on --bg */
  --on-gradient: #2b1100;
  --gradient: linear-gradient(90deg, #ffa556, #e8590c);
  --band: rgba(12, 163, 12, 0.18);
  --marker: #9aa0ae;
  --statue: rgba(90, 58, 26, 0.16);
  --statue-strong: rgba(90, 58, 26, 0.32);
  --shadow: 0 1px 2px rgba(33, 28, 20, 0.04), 0 8px 24px rgba(33, 28, 20, 0.06);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(151, 140, 119, 0.28);
  --glass-inset: rgba(241, 236, 225, 0.55);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --gutter: 16px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0a09;
    --surface: #1a1a1c;
    --surface-2: #141312;
    --text: #f2efe9;
    --muted: #a8a296;
    --border: #2c2b28;
    --accent-text: #ff8a3d;
    --band: rgba(34, 197, 94, 0.2);
    --marker: #66655e;
    --statue: rgba(184, 115, 51, 0.2);
    --statue-strong: rgba(184, 115, 51, 0.42);
    --shadow: none;
    --glass: rgba(26, 26, 28, 0.45);
    --glass-border: rgba(242, 239, 233, 0.09);
    --glass-inset: rgba(242, 239, 233, 0.05);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* --- header ------------------------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none;
}
.wordmark svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 520px) { .nav .optional { display: none; } }

/* --- hero ------------------------------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 16px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 20px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 32px; max-width: 34rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.button.primary { background: var(--gradient); color: var(--on-gradient); }
.button.ghost { border-color: var(--glass-border); color: var(--text); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.button.ghost:hover { border-color: var(--muted); }
.button[aria-disabled="true"] { cursor: default; }
.button small { font-weight: 500; opacity: 0.8; }

/* The volume card: the app's signature view in plain HTML - target band, dashed MEV/MRV
   markers and the actual sets as a bar in the status color. */
.showcase { display: grid; place-items: center; }
/* The app's statue artwork as a tinted watermark: the SVG is only the shape (a mask), the color
   comes from --statue, so it follows light/dark mode like the app's watermark does. */
.statue {
  aspect-ratio: 1; background: var(--statue); pointer-events: none;
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
.statue-hero { --shape: url("/assets/statue4.svg"); }
.statue-david { --shape: url("/assets/statue2.svg"); }
/* The hero's picture: the whole statue, a touch stronger than the watermarks elsewhere. */
.showcase .statue { width: 100%; max-width: 420px; background: var(--statue-strong); }
/* Frosted glass like the app's cards: translucent, the statues behind them shine through blurred. */
.card {
  position: relative; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
.volume-card { width: 100%; max-width: 360px; padding: 22px 22px 18px; }
.volume-card header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.volume-card h3 { margin: 0; font-size: 1.15rem; }
.volume-card .meta { font-size: 0.8rem; color: var(--muted); }
.bars { display: flex; justify-content: space-around; gap: 10px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 20%; }
.bar b { font-size: 0.95rem; }
.track {
  position: relative; width: 34px; height: 150px; border-radius: 10px; overflow: hidden;
  background: rgba(154, 160, 174, 0.16);
}
.track .band { position: absolute; left: 0; right: 0; background: var(--band); }
.track .fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px; }
.track .mark { position: absolute; left: -4px; right: -4px; border-top: 2px dashed var(--marker); }
.bar span { font-size: 0.72rem; color: var(--muted); text-align: center; line-height: 1.2; }
/* Values on a 0-24 sets scale: band = target min..max, marks = MEV/MRV, fill = actual. */
.chest .band { bottom: 41.7%; height: 25%; }  .chest .fill { height: 58%; background: #0ca30c; }
.back .band  { bottom: 41.7%; height: 29.2%; } .back .fill  { height: 75%; background: #d03b3b; }
.delts .band { bottom: 33.3%; height: 25%; }  .delts .fill { height: 21%; background: #fab219; }
.arms .band  { bottom: 33.3%; height: 25%; }  .arms .fill  { height: 46%; background: #0ca30c; }
.chest .mev, .back .mev { bottom: 25%; } .delts .mev, .arms .mev { bottom: 16.7%; }
.mrv { bottom: 83.3%; }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--glass-inset); font-size: 0.85rem; color: var(--muted); }
.status-line b { color: #0a8a0a; }
@media (prefers-color-scheme: dark) { .status-line b { color: #22c55e; } }

/* --- sections --------------------------------------------------------------------------- */
section { padding: 64px 0; }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.features-section { position: relative; overflow: hidden; }
.features-section > .wrap { position: relative; }
/* Intro text next to the example from the app. */
.features-intro { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 48px; align-items: center; margin-bottom: 40px; }
.features-intro .section-head { margin-bottom: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); color: var(--on-gradient); margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--sans); font-size: 1.05rem; margin: 0 0 8px; letter-spacing: 0; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.meaning { position: relative; overflow: hidden; }
.meaning .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.meaning .statue { width: 100%; max-width: 340px; justify-self: center; }
.greek { font-family: var(--serif); font-size: 1.4rem; color: var(--accent-text); margin: 0 0 8px; }
.meaning blockquote { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }
.meaning p { color: var(--muted); }

.promise { padding: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise h3 { font-family: var(--sans); font-size: 1rem; margin: 0 0 6px; letter-spacing: 0; }
.promise p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* --- legal pages ------------------------------------------------------------------------- */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 8px; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal .muted { color: var(--muted); font-size: 0.92rem; }
.lang-switch { display: flex; gap: 8px; margin: 20px 0 8px; }
.lang-switch a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 0.9rem; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 56px 0; }
.placeholder { background: rgba(232, 89, 12, 0.12); border: 1px dashed var(--accent); border-radius: 8px; padding: 2px 8px; }

/* --- footer ------------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* --- small screens ----------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 32px; }
  .hero .wrap, .meaning .wrap { grid-template-columns: 1fr; gap: 32px; }
  .showcase .statue { max-width: 240px; }
  .features-intro { grid-template-columns: 1fr; gap: 24px; }
  .features { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr; }
  .meaning .statue { max-width: 200px; }
}
@media (max-width: 560px) {
  section { padding: 44px 0; }
  .features { grid-template-columns: 1fr; }
  .volume-card { padding: 18px 14px 14px; }
  .track { width: 28px; }
}

/* Language switch in the header: a small pill, so it reads as a toggle, not a page. */
.nav .lang {
  padding: 2px 10px; border: 1px solid var(--glass-border); border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
}
.nav .lang:hover { color: var(--text); border-color: var(--muted); }
