/* ---------------------------------------------------------------------------
   Dramprint website - the app's Claret & Copper look (design/STYLE.md) for
   the web: Will's photo under a dark veil, Lora headings, Inter text,
   frosted glass cards with satin copper edges, claret glass buttons.
   Colours are the app's roles (lib/theme.dart DramColours).
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #1b1411;          /* espresso */
  --surface: #3a1720;     /* burgundy */
  --text: #f3e6d3;        /* cream */
  --soft: #cbb1a0;
  --primary: #7a2232;     /* claret */
  --on-primary: #f6e9d8;
  --accent: #d08a55;      /* copper */
  --accent-text: #de9c66;
  --glass: rgba(27, 20, 17, 0.62);
  /* The logo's satin copper bands (theme.dart bandColours on copper). */
  --copper-edge: linear-gradient(115deg, #92613c 0%, #d2905e 16%, #dead88 30%,
      #d18c58 42%, #96633d 55%, #d59666 68%, #dca881 80%, #c68351 90%, #8d5e3a 100%);
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The photo background with the app's veil, fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(90, 22, 38, 0.55) 0%, rgba(27, 20, 17, 0.45) 30%,
      rgba(27, 20, 17, 0.86) 62%, rgba(27, 20, 17, 0.96) 100%),
    url("img/background.jpg") center / cover no-repeat,
    var(--bg);
}

a { color: var(--accent-text); }
a:hover { color: var(--text); }

h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  font: 600 0.78rem/1.4 "Inter", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.6em;
}

.soft { color: var(--soft); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: block; line-height: 0; }
.logo svg { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--soft); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* --- Glass surfaces (GlassTile / buttons in the app) --------------------- */
.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
/* The satin copper hairline round a glass surface. */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--copper-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font: 600 1rem/1.2 "Inter", sans-serif;
  color: var(--on-primary);
  text-decoration: none;
  white-space: nowrap; /* button labels never wrap (STYLE.md) */
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.16) 30%,
      rgba(255,255,255,0.03) 42%, rgba(0,0,0,0.16) 55%, rgba(255,255,255,0.12) 80%,
      rgba(0,0,0,0.14) 100%),
    rgba(122, 34, 50, 0.85);
  position: relative;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--copper-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.button:hover { color: #fff; filter: brightness(1.08); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding: 40px 0 70px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead { font-size: 1.2rem; color: var(--soft); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* A phone-shaped frame round a screenshot. */
.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  border-radius: 34px;
  padding: 10px;
  background: #0f0b09;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(208, 138, 85, 0.45);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* --- Features ------------------------------------------------------------ */
section { padding: 60px 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.feature { padding: 26px; }
.feature p { color: var(--soft); margin: 0; }
.feature .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--accent);
}

/* Screenshots with captions, side by side. */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.screens figure { margin: 0; text-align: center; }
.screens figcaption { margin-top: 14px; color: var(--soft); font-size: 0.95rem; }

/* --- Where to buy / disclosure ------------------------------------------ */
.panel { padding: 32px; max-width: 760px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  padding: 40px 0 60px;
  color: var(--soft);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(243, 230, 211, 0.18);
  padding-top: 28px;
}
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* --- Long text pages (privacy, disclosure) ------------------------------- */
.doc { padding: 20px 0 60px; }
.doc .panel { max-width: 820px; }
.doc h2 { font-size: 1.4rem; margin-top: 1.6em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--soft); font-size: 0.95rem; }

/* --- Age check (as the app's: once per device) --------------------------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 11, 9, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.age-gate.open { display: flex; }
.age-gate .glass { max-width: 420px; padding: 32px; text-align: center; }
.age-gate .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.button.secondary {
  background: rgba(27, 20, 17, 0.5);
  color: var(--accent-text);
}

/* --- Phones --------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .features, .screens { grid-template-columns: 1fr; }
  .nav { display: none; }
  section { padding: 44px 0; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .logo svg { height: 32px; }
  .panel, .feature { padding: 22px; }
}

/* <button> elements styled as buttons (the age check). */
button.button { border: 0; cursor: pointer; }
