/* Ruju site. Colours and type from the iOS app Theme: white, navy ink, #1A6DFF accent, rounded system fonts. */
:root {
  --ink: #1a1a2e;
  --black: #000000;
  --muted: #59595f;
  --body: #4b5563;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #e8e8ed;
  --accent: #1a6dff;
  --accent-soft: #edf3ff;
  --green: #219e5c;
  --track: rgba(0, 0, 0, 0.06);
  --warn: #8a5800;
  --warn-bg: #fff6e8;
  --warn-line: #efd2a3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

/* —— Legal / inner pages ———————————————————————————— */
header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.wrap {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
}

header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand span { color: var(--accent); }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main { padding: 2rem 0 3.5rem; }

h1 {
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.6rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.4rem;
}

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin: 0 0 0.4rem; }

.lead { font-size: 1.05rem; color: var(--ink); }

.contact-box {
  background: var(--accent-soft);
  border: 1px solid #c9dbff;
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  margin: 0 0 1.75rem;
}

.contact-box p { margin: 0 0 0.35rem; }

.contact-box .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.contact-box a.email,
.contact-box .email {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--accent);
  word-break: break-word;
  margin-top: 0.15rem;
}

.placeholder {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  margin: 0 0 1.75rem;
}

.placeholder .flag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  background: #ffe9c2;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin: 0 0 0.55rem;
}

.placeholder .email {
  display: block;
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--ink);
  word-break: break-word;
  margin: 0.2rem 0 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.placeholder p:last-child { margin-bottom: 0; }

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  justify-content: space-between;
}

footer a { color: var(--muted); }

.home-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.home-list li { margin: 0 0 0.85rem; }

.home-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.home-list a strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.home-list a:hover { border-color: #b7c9f5; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f1f1f4;
  border-radius: 4px;
  padding: 0.05em 0.3em;
}

/* —— Homepage (single-screen layout) ——— */
body.landing {
  min-height: 100svh;
}

body.landing main { padding: 0; }

.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.25rem 1rem 5.5rem;
}

@media (min-width: 640px) {
  .stage { padding: 2rem 2rem 5.5rem; }
}

.stage-inner {
  width: 100%;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .stage-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

.copy {
  width: 100%;
  text-align: left;
}

@media (min-width: 1024px) {
  .copy {
    max-width: 42rem;
    margin-right: 4rem;
  }
}

.landing h1 {
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--black);
  margin: 0 0 0.7rem;
}

.landing h1 .accent {
  color: var(--accent);
  font-weight: 700;
}

.sub {
  font-size: clamp(1.15rem, 2.4vw, 1.875rem);
  color: var(--body);
  margin: 0 0 2.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.sub .accent { color: var(--accent); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-row { justify-content: flex-start; }
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.85rem 1.5rem;
  background: var(--black);
  color: #fff;
  border-radius: 12px;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: default;
  user-select: none;
}

.cta:hover { text-decoration: none; color: #fff; }

.demo {
  width: 100%;
  max-width: 20rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .demo { max-width: 24rem; }
}

@media (min-width: 1024px) {
  .demo {
    width: 350px;
    max-width: 350px;
    margin-top: 0;
    flex-shrink: 0;
  }
}

.demo-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--accent);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone {
  width: 78%;
  aspect-ratio: 9 / 19.5;
  background: #111118;
  border-radius: 2rem;
  padding: 0.45rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

.phone-screen {
  background: #fff;
  border-radius: 1.6rem;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.75rem 0.8rem;
  color: var(--ink);
}

.notch {
  width: 34%;
  height: 0.7rem;
  background: #111118;
  border-radius: 999px;
  margin: 0.15rem auto 0.55rem;
}

.status {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  padding: 0 0.2rem;
}

.today-card {
  text-align: center;
  padding: 0.15rem 0 0.5rem;
}

.today-card img {
  width: 42%;
  max-width: 7.5rem;
  margin: 0 auto 0.35rem;
  display: block;
}

.today-count {
  font-size: 0.72rem;
  font-weight: 750;
  margin: 0;
}

.today-caption {
  font-size: 0.62rem;
  color: var(--muted);
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.prayers {
  list-style: none;
  padding: 0;
  margin: 0.15rem 0 0;
  flex: 1;
}

.prayers li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.28rem;
  padding: 0.32rem 0.45rem;
  border-radius: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.04);
}

.prayers li.due {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.tick {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green);
  position: relative;
}

.tick::after {
  content: "";
  position: absolute;
  left: 0.22rem;
  top: 0.14rem;
  width: 0.22rem;
  height: 0.38rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #c5c5cb;
}

.home-footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  border: 0;
  padding: 0 1rem 0.25rem;
  background: transparent;
}

.home-footer a {
  color: #6b7280;
  text-decoration: none;
  margin: 0 0.5rem;
}

.home-footer a:hover { color: #374151; }

.home-footer .dot-sep {
  margin: 0 0.15rem;
  color: #9ca3af;
}

.home-footer p { margin: 0.4rem 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .today-card img {
    animation: breath 3.2s ease-in-out infinite;
    transform-origin: bottom center;
  }
}

@keyframes breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@media (max-width: 639px) {
  .cta-row { justify-content: center; }
  .copy { text-align: left; }
}
