/* Emoria Tech Inc. — emoriatech.com
   Brand: Emoria Corporate Brand Guide v1.2. Colours are locked; fonts are self-hosted (OFL, see /fonts). */

@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("/fonts/source-sans-3-700.woff2") format("woff2"); }

:root {
  --charcoal: #2B2D31;
  --platinum: #E5E4E2;
  --gold: #C9A24A;
  --midnight: #111214;
  --ivory: #F7F6F2;
  --steel: #8C9096;
  --head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--platinum);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.gold { color: var(--gold); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ivory); color: var(--charcoal); padding: 8px 12px; border-radius: 4px; z-index: 10; }

/* Header */
.site-header { background: var(--midnight); border-bottom: 1px solid rgba(229, 228, 226, .08); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: block; }
.brand img { height: 22px; width: auto; }
.site-nav ul { list-style: none; display: flex; gap: clamp(16px, 3vw, 36px); margin: 0; padding: 0; }
.site-nav a { font-family: var(--head); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--platinum); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold); }

/* Buttons: 4–6 px radius */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 16px; text-decoration: none; padding: 14px 26px; border-radius: 5px; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--midnight); }
.btn-gold:hover { background: #d4b060; }
.btn-dark { background: var(--charcoal); color: var(--ivory); }
.btn-dark:hover { background: var(--midnight); }

/* Hero */
/* Desktop: photo fills the hero; text sits over the open sky on the right, clear of the Bow and the Tower. */
.hero { position: relative; background: var(--midnight); color: var(--platinum); min-height: min(78vh, 720px); display: flex; align-items: flex-start; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 0%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 45, 49, 0) 30%, rgba(43, 45, 49, .45) 55%, rgba(17, 18, 20, .82) 100%),
    linear-gradient(180deg, rgba(17, 18, 20, 0) 62%, rgba(17, 18, 20, .9) 100%);
}
.hero-inner { position: relative; width: 100%; display: flex; justify-content: flex-end; padding-top: clamp(48px, 5vw, 72px); padding-bottom: 64px; }
.hero-copy { max-width: 600px; }
.hero h1 { font-weight: 700; font-size: clamp(36px, 3.7vw, 54px); letter-spacing: -.02em; margin-bottom: 22px; text-wrap: balance; }
.hero p { font-size: clamp(18px, 1.7vw, 21px); margin-bottom: 34px; color: var(--platinum); }

/* Slanted gold line into the Ivory section */
.slant { display: block; width: 100%; height: clamp(40px, 6vw, 80px); background: var(--ivory); }

/* About */
.about { background: var(--ivory); color: var(--charcoal); padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.about .lead { font-size: clamp(19px, 2vw, 22px); max-width: 40em; }
.principles { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principles li { border-top: 2px solid var(--gold); padding-top: 18px; font-family: var(--head); font-weight: 700; font-size: 20px; }

/* Products */
.products { background: var(--platinum); color: var(--charcoal); padding: clamp(64px, 9vw, 112px) 0; }
.card { background: var(--ivory); border-radius: 10px; border-left: 4px solid var(--gold); padding: clamp(28px, 4vw, 44px); max-width: 680px; }
.card h3 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.card .tag { font-family: var(--head); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.card p { margin-bottom: 24px; }
.more { font-size: 15px; margin: 22px 0 0; }

/* Founder */
.founder { background: var(--charcoal); color: var(--platinum); padding: clamp(64px, 9vw, 112px) 0; }
.founder .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.founder img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.founder blockquote { margin: 36px 0 0; padding: 0; }
.founder blockquote p { font-family: var(--head); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; color: var(--gold); margin-bottom: 12px; }
.founder cite { font-style: normal; font-size: 16px; color: var(--platinum); }

/* Contact */
.contact { background: var(--midnight); color: var(--platinum); padding: clamp(64px, 9vw, 112px) 0; }
.contact .mail { font-family: var(--head); font-weight: 700; font-size: clamp(22px, 3vw, 32px); color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--midnight); color: var(--platinum); border-top: 1px solid rgba(229, 228, 226, .1); padding: 32px 0 40px; font-size: 15px; }
.site-footer .line { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.site-footer .credits { font-size: 13px; margin: 18px 0 0; color: #b9bbbf; }

/* Plain pages (privacy, 404) */
.page { background: var(--ivory); color: var(--charcoal); padding: clamp(56px, 8vw, 96px) 0; min-height: 60vh; }
.page h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }
.page .prose { max-width: 40em; }
.page a { color: var(--charcoal); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.notfound { background: var(--midnight); color: var(--platinum); min-height: 70vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(36px, 6vw, 64px); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; padding-bottom: 10px; min-height: 0; }
  .principles { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  /* Phone: photo cropped to keep the Bow and the Tower, text on charcoal below a strong fade. */
  .hero { display: block; min-height: 0; background: var(--charcoal); }
  .hero-photo img { position: static; height: auto; aspect-ratio: 4 / 3.4; object-position: 14% 55%; }
  .hero-shade { top: auto; bottom: auto; height: 0; }
  .hero-photo { display: block; position: relative; }
  .hero-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, rgba(43, 45, 49, 0), var(--charcoal)); }
  .hero-inner { display: block; padding-top: 4px; padding-bottom: 56px; margin-top: -40px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: 36px; }
  .founder .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.slant polygon { fill: var(--midnight); }
@media (max-width: 760px) { .slant polygon { fill: var(--charcoal); } }
@media (max-width: 760px) {
  .site-footer .line { flex-direction: column; gap: 6px; }
  .site-footer .line > [aria-hidden="true"] { display: none; }
}

/* DoseWell card: the product's own colourway inside the Emoria frame. No Emoria gold here.
   DoseWell values sampled from the app icon and wordmark: cyan #00B0DD, teal #04798F, amber #F2A93B. */
.dw-card {
  --dw-navy: #0D2229;
  --dw-teal: #0E6F7E;
  --dw-cyan: #00B0DD;
  --dw-amber: #F2A93B;
  --dw-light: #EEF4F6;
  background: var(--dw-navy);
  color: var(--dw-light);
  border-left: 0;
  border-top: 3px solid var(--dw-amber);
}
.dw-brand { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.dw-icon { width: 80px; height: 80px; border-radius: 22.37%; background: #fff; box-shadow: 0 0 0 1px rgba(238, 244, 246, .25); flex: none; }
.dw-wordmark { margin: 0; line-height: 0; }
.dw-wordmark img { height: 40px; width: auto; }
.dw-card .tag { color: var(--dw-light); }
.btn-dw { background: var(--dw-cyan); color: var(--dw-navy); }
.btn-dw:hover { background: #2bc3ea; }
.btn-dw:focus-visible { outline-color: var(--dw-cyan); }
@media (max-width: 760px) {
  .dw-brand { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dw-wordmark img { height: 34px; }
}
.dw-card .dw-label { color: var(--dw-cyan); font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: -6px 0 16px; }
