/* Auraware — www.auraware.ca
   One stylesheet, no external requests. System font stack so the site renders
   instantly and works offline in a webview.

   Light theme. Two families of accent live here and they are not
   interchangeable:

     --accent / --accent-2        deepened, for anything carrying text or
                                  meaning. These pass WCAG AA on the page.
     --glow / --glow-2            the bright brand teal and violet, used only
                                  for decoration — washes, gradients, tints —
                                  where nothing has to be read against them.

   Using the bright pair for text is the one change that would break this
   theme: #4fd1c5 on white is 1.6:1. */

:root {
  --paper:      #f7fafa;  /* page ground — cool off-white, biased to the accent */
  --paper-2:    #eff5f5;  /* alternating bands */
  --surface:    #ffffff;  /* cards, inputs */
  --surface-2:  #e9f1f1;  /* hover fills */
  --line:       #d7e3e4;
  --line-soft:  #e6eeef;
  --text:       #0f1a20;
  --muted:      #556773;

  --accent:     #0d7d74;  /* 5.0:1 on white — links, focus, primary action */
  --accent-2:   #4f42c9;  /* 7.1:1 on white — gradient partner */
  --glow:       #4fd1c5;  /* decorative only */
  --glow-2:     #7c6cf7;  /* decorative only */

  --danger:     #a3232f;
  --danger-bg:  #fdf1f2;
  --danger-line:#f0c4c8;
  --note-bg:    #eef5f5;

  --wrap:       1120px;
  --radius:     14px;
  --shadow:     0 1px 2px rgba(15, 26, 32, .04), 0 10px 30px rgba(15, 26, 32, .07);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 620; }
p  { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration-color: rgba(13, 125, 116, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2.5rem)); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ---- Header ------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 250, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none; font-weight: 680;
  font-size: 1.1rem; letter-spacing: -.02em;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: 0 0 14px rgba(79, 108, 201, .28);
  flex: none;
}
.site-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  padding: .45rem .75rem; border-radius: 8px; font-size: .95rem; font-weight: 550;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-cta { color: #fff; background: var(--accent); font-weight: 620; }
.site-nav .nav-cta:hover { background: #0a655e; color: #fff; }

/* Products menu. Grouping the products keeps the header to one line on
   phones however many there are. A <details> disclosure opens without
   JavaScript, which this site does not run (CSP script-src 'none'). */
.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted); padding: .45rem .75rem; border-radius: 8px;
  font-size: .95rem; font-weight: 550;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after {
  content: ""; width: .4em; height: .4em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.nav-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.nav-menu > summary:hover, .nav-menu[open] > summary { color: var(--text); background: var(--surface-2); }
.nav-menu > summary.is-current { color: var(--text); }
.nav-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20;
  min-width: 12rem; display: grid; gap: .15rem; padding: .4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.site-nav .nav-menu-panel a { display: block; }

/* ---- Sections ---------------------------------------------------------- */

/* The hero wash is where the bright brand pair earns its keep: large, soft,
   and behind nothing that has to be read at small size. */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(79, 209, 197, .22), transparent 65%),
    radial-gradient(760px 400px at 88% 0%, rgba(124, 108, 247, .16), transparent 62%);
}
.hero-compact { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
  font-weight: 680; color: var(--accent); margin-bottom: .9rem;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.center .lede { margin-inline: auto; }

.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-title { margin-bottom: 2rem; }
.center .section-title { margin-bottom: 1rem; }

/* ---- Buttons ----------------------------------------------------------- */

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.center-row { justify-content: center; }

.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 10px;
  font-weight: 620; font-size: .98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
/* White reads at 5.0:1 over the lightest end of this gradient and 7.1:1 over
   the darkest, so the label holds all the way across. */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); background: var(--surface-2); }

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

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--text); }
.card p { color: var(--muted); margin-bottom: 0; }
.card p + p { margin-top: .6rem; }

.card.numbered { position: relative; padding-top: 2.6rem; }
.card.numbered::before {
  content: attr(data-step);
  position: absolute; top: 1.4rem; left: 1.6rem;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: .85rem;
}
.card.numbered h3 { margin-top: 1.5rem; }

.card.platform h3 { margin-bottom: .4rem; }
.store-note { margin-top: 1.75rem; }

.ticks { list-style: none; padding: 0; margin: 1.5rem 0; }
.ticks li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(13, 125, 116, .12);
}

/* ---- Product feature --------------------------------------------------- */

.product-feature {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}
.feature-visual { display: grid; place-items: center; }
/* Vimlo's own exercise animation (a transparent GIF — no script needed). */
.demo-anim { width: min(340px, 100%); height: auto; }
/* Springlet's drink illustrations: a wide strip generated from the app's own artwork. */
.drink-art { width: 100%; height: auto; border-radius: 16px; }
.phone {
  width: min(240px, 70%); aspect-ratio: 9 / 17.5;
  border: 1px solid var(--line); border-radius: 30px;
  background: var(--surface); padding: 12px;
  box-shadow: var(--shadow);
}
.phone-screen {
  height: 100%; border-radius: 20px; background: var(--paper-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px;
  align-content: start;
}
.tile {
  aspect-ratio: 1; border-radius: 8px;
  background: linear-gradient(140deg, rgba(79, 209, 197, .55), rgba(124, 108, 247, .42));
}
.tile:nth-child(even) { background: linear-gradient(140deg, rgba(124, 108, 247, .45), rgba(79, 209, 197, .38)); }

/* ---- FAQ --------------------------------------------------------------- */

.faq {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); padding: 1rem 1.25rem; margin-bottom: .75rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--accent); }
.faq p { color: var(--muted); margin: .8rem 0 .2rem; }

/* ---- Prose (legal pages) ----------------------------------------------- */

.prose h2 { margin-top: 2.5rem; font-size: 1.3rem; }
.prose h2:first-of-type { margin-top: 1rem; }
.prose p { color: var(--muted); }
/* Italics mark the passages still awaiting real legal wording, so they need to
   be visibly unfinished rather than merely styled. */
.prose em { color: var(--accent-2); font-style: italic; }

/* ---- Forms ------------------------------------------------------------- */

.contact-form { margin-top: 1.5rem; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.req { color: var(--accent); margin-left: .2rem; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%; padding: .7rem .85rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .98rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px rgba(13, 125, 116, .15);
}
.field ::placeholder { color: #8a9aa5; }

.help { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; }
.err  { color: var(--danger); font-size: .88rem; margin: .4rem 0 0; font-weight: 550; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); }

.form-actions {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap; margin-top: 1.75rem;
}
.form-actions p { margin: 0; }

.banner {
  border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: 1.5rem;
  border: 1px solid var(--line); font-size: .95rem;
}
.banner p:last-child { margin-bottom: 0; }
.banner-error { background: var(--danger-bg); border-color: var(--danger-line); color: #7d1922; }
.banner-note  { background: var(--note-bg); color: var(--muted); }
.banner-note strong { color: var(--text); }

/* The honeypot must be reachable by a naive parser but never by a person.
   `display: none` is skipped by some bots, so hide it geometrically instead. */
.hp {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  left: -9999px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2rem;
}
.footer-brand { font-weight: 680; margin-bottom: .25rem; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.footer-legal p { margin: 0; }

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 760px) {
  .product-feature { grid-template-columns: 1fr; }
  .feature-visual { order: -1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .header-inner { min-height: 60px; }
  .site-nav a, .nav-menu > summary { padding: .4rem .6rem; font-size: .9rem; }
}

/* Small phones: tighten the header so logo, Products and Contact stay on one
   line; below 340px the wordmark is hidden visually (the link keeps its
   aria-label, "Auraware home"). */
@media (max-width: 380px) {
  .header-inner { gap: .5rem; }
  .brand { font-size: 1rem; gap: .45rem; }
  .site-nav { gap: .2rem; }
  .site-nav a, .nav-menu > summary { padding: .4rem .5rem; font-size: .88rem; }
}
@media (max-width: 340px) {
  .brand-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
