/* AS-TODO-APP — ArhamSoft brand: deep charcoal + vivid orange */

:root {
  --bg-deep:       #0a0a0a;
  --bg:            #111111;
  --bg-elevated:   #1a1a1a;
  --bg-card:       #161616;

  --accent:        #e8751a;
  --accent-bright: #f08830;
  --accent-hover:  #d4650f;
  --accent-muted:  rgba(232, 117, 26, 0.20);
  --accent-glow:   rgba(232, 117, 26, 0.14);

  --accent-warm:   #f5a623;
  --accent-warm-dim: #d4860f;

  --text:          #ffffff;
  --text-muted:    #a8a8a8;
  --text-dim:      #666666;
  --text-body:     #d0d0d0;

  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(232, 117, 26, 0.30);

  --footer-bg:     #060606;
  --footer-text:   #505050;

  --radius:        10px;
  --radius-lg:     20px;
  --header-h:      60px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hero-panel-max: min(92vw, 1280px);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 60% at 75% -5%, rgba(232,117,26,0.10), transparent 55%),
    radial-gradient(ellipse 60% 40% at 5% 95%, rgba(232,117,26,0.06), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  background-attachment: fixed;
}

.shell { min-height: 100dvh; display: flex; flex-direction: column; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  flex-shrink: 0;
  min-height: var(--header-h);
  padding: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: min(90rem, 94vw);
  height: var(--header-h);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 639px) {
  .site-header { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .header-inner { height: auto; flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .brand { justify-content: center; }
  .site-nav { justify-content: center; }
}

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--text);
  min-height: 44px;
}

.brand img {
  display: block; height: 30px; width: auto; object-fit: contain;
}
@media (min-width: 480px) { .brand img { height: 34px; } }

.brand-text {
  font-weight: 700;
  font-size: clamp(0.88rem, 3vw, 0.98rem);
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-nav {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: flex-end; gap: 0.2rem;
}

.site-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0.35rem 0.8rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.site-nav a[aria-current="page"] {
  color: var(--accent-bright);
  background: rgba(232,117,26,0.13);
  box-shadow: inset 0 0 0 1px rgba(232,117,26,0.28);
}

/* HERO */
.hero {
  width: 100%; flex-shrink: 0; position: relative;
  padding: clamp(1.25rem,4vw,2rem) max(1rem, env(safe-area-inset-right)) clamp(1.5rem,5vw,3rem) max(1rem, env(safe-area-inset-left));
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 10% 15%, rgba(232,117,26,0.16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 90% 70%, rgba(232,117,26,0.08), transparent 50%),
    linear-gradient(160deg, #141414 0%, #0a0a0a 50%, #050505 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.20;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
}

.hero-inner { position: relative; z-index: 1; max-width: var(--hero-panel-max); margin: 0 auto; }

.hero-panel {
  display: grid;
  gap: clamp(1.25rem,3vw,2.5rem);
  padding: clamp(1.5rem,4vw,3rem) clamp(1.25rem,4vw,3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20,20,20,0.96) 0%, rgba(12,12,12,0.92) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5) inset, 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 80px rgba(0,0,0,0.60);
}

@media (min-width: 900px) {
  .hero-panel {
    grid-template-columns: minmax(0,1fr) minmax(130px,190px);
    align-items: center;
    padding: clamp(2rem,4vw,3.5rem) clamp(2rem,5vw,4.5rem);
  }
}

.hero-copy { min-width: 0; }

.hero-deco {
  display: none; position: relative; aspect-ratio: 1;
  max-height: 190px; border-radius: 50%;
  background: conic-gradient(from 200deg, #f5a623, #e8751a, #c2560a, #7a3005, #e8751a, #f5a623);
  opacity: 0.75;
  box-shadow: 0 0 60px rgba(232,117,26,0.35), 0 0 120px rgba(232,117,26,0.12);
}
.hero-deco::after {
  content: ""; position: absolute; inset: 20%; border-radius: 50%;
  background: #0a0a0a; border: 1px solid rgba(255,255,255,0.05);
}
@media (min-width: 900px) { .hero-deco { display: block; } }

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.71rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-warm);
}
.hero-eyebrow-dot {
  flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232,117,26,0.70);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem,5.5vw,3.1rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff; text-wrap: balance;
}
@media (min-width: 1200px) { .hero h1 { font-size: clamp(2.4rem,3.4vw,3.2rem); } }

.hero-lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: clamp(1rem,2.4vw,1.14rem);
  line-height: 1.62;
  color: rgba(208,208,208,0.85);
}
@media (min-width: 1024px) { .hero-lead { max-width: 50rem; } }

/* MAIN */
main {
  flex: 1; width: 100%;
  padding: clamp(1.5rem,5vw,2.5rem) max(1.25rem, env(safe-area-inset-right)) clamp(2rem,6vw,3rem) max(1.25rem, env(safe-area-inset-left));
}

.content-inner { max-width: 38rem; margin: 0 auto; }
@media (min-width: 768px)  { .content-inner { max-width: 46rem; } }
@media (min-width: 1024px) { .content-inner { max-width: 54rem; } }
@media (min-width: 1280px) { .content-inner { max-width: 62rem; } }

.content-inner.wide { max-width: 42rem; }
@media (min-width: 768px)  { .content-inner.wide { max-width: 50rem; } }
@media (min-width: 1024px) { .content-inner.wide { max-width: 58rem; } }
@media (min-width: 1280px) { .content-inner.wide { max-width: 68rem; } }

/* PROSE */
.prose p { margin: 0 0 1.1em; font-size: clamp(1rem,2.2vw,1.07rem); color: var(--text-body); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-warm); }

/* CALLOUT */
.callout {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  font-size: 0.875rem; line-height: 1.55;
  color: var(--text-muted);
  background: rgba(16,16,16,0.80);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.callout-strong { color: var(--text); font-weight: 600; }

/* TERMS */
.terms h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: clamp(1.05rem,2.2vw,1.18rem);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
}
.terms h2:first-of-type { margin-top: 1.25rem; }
.terms p { margin: 0 0 0.85em; font-size: clamp(0.95rem,2.1vw,1.02rem); color: var(--text-body); }
.terms a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.terms a:hover { color: var(--accent-warm); }

/* CTA */
.cta-wrap { margin: 1.5rem 0 0; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.8rem 2rem;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  color: #fff; text-decoration: none;
  background: linear-gradient(160deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-hover) 100%);
  border: none; border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(232,117,26,0.40), 0 1px 0 rgba(255,255,255,0.10) inset;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
  cursor: pointer; width: 100%;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(232,117,26,0.52); }
.btn-primary:active { transform: translateY(0); }

.prose a.btn-primary,
.terms a.btn-primary { color: #fff; text-decoration: none; }
.prose a.btn-primary:hover,
.terms a.btn-primary:hover { color: #fff; }

.btn-danger {
  background: linear-gradient(160deg, #f87171 0%, #ef4444 55%, #dc2626 100%);
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.42), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn-danger:hover {
  box-shadow: 0 8px 32px rgba(220, 38, 38, 0.52);
}
.btn-danger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-message {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.status-message.success { color: #5eead4; }
.status-message.error { color: #fca5a5; }

@media (min-width: 480px) {
  .btn-primary { width: auto; min-width: min(100%, 260px); }
  .cta-wrap { display: flex; flex-direction: column; align-items: flex-start; }
}

.email-display { margin: 1.1rem 0 0; font-size: 0.9rem; word-break: break-all; color: var(--text-dim); }

/* FOOTER */
.site-footer {
  flex-shrink: 0; margin-top: auto;
  padding: 1.25rem max(1rem, env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  text-align: center; font-size: 0.8rem;
  color: var(--footer-text);
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }