/* assets/app.css — Pregnancy WPA styles. Extracted from the design prototype
   and extended for the full-page (non-canvas) live runtime. */

@font-face { font-family: 'TT Interfaces'; src: url('/fonts/TTInterfaces-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'TT Interfaces'; src: url('/fonts/TTInterfaces-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'TT Interfaces'; src: url('/fonts/TTInterfaces-ExtraLight.woff') format('woff'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Capitolium News'; src: url('/fonts/Capitolium-News-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Capitolium News'; src: url('/fonts/Capitolium-News-Bold-Italic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }

html, body {
  margin: 0; padding: 0;
  background: #ECECEC;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}
body.pt-app-host {
  background: #ECECEC;
  min-height: 100vh;
  min-height: 100dvh;
}
#root {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

/* Phone-shaped frame on desktop, full-bleed on phones. */
.pt-runtime {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--pt-bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 10px 40px rgba(0,0,0,0.06);
}
@media (min-width: 760px) {
  .pt-runtime {
    margin: 24px 0;
    border-radius: 32px;
    min-height: 820px;
    height: calc(100dvh - 48px);
    max-height: 920px;
  }
}

/* --- design tokens ------------------------------------------------------- */
.pt-app {
  --pt-bg: #FFFFFF;
  --pt-bg-soft: #F7F5F1;
  --pt-text: #1A1A1A;
  --pt-text-muted: #8A8783;
  --pt-text-faint: #BDBAB5;
  --pt-border: #EEEAE2;
  --pt-card: #FFFFFF;
  --pt-nav: #0E0E0E;
  --pt-accent: #B89BE8;
  --pt-accent-soft: #EFE5FB;
  --pt-accent-deep: #6E47C9;
  --pt-accent-ink: #2C1B5C;

  --pt-radius-sm: 14px;
  --pt-radius: 22px;
  --pt-radius-lg: 28px;
  --pt-radius-pill: 999px;

  --pt-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --pt-font-serif: 'DM Serif Display', 'Capitolium News', serif;

  background: var(--pt-bg);
  color: var(--pt-text);
  font-family: var(--pt-font);
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
}
.pt-app.font-aeberli {
  --pt-font: 'TT Interfaces', 'Plus Jakarta Sans', system-ui, sans-serif;
  --pt-font-serif: 'Capitolium News', 'DM Serif Display', serif;
}

/* Screen layout */
.pt-screen {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: var(--pt-bg);
  overflow: hidden;
  position: relative;
  padding-top: max(24px, env(safe-area-inset-top));
  box-sizing: border-box;
}
.pt-screen-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 22px 110px;
  scrollbar-width: none;
}
.pt-screen-scroll::-webkit-scrollbar { display: none; }

.pt-h1 { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.pt-h2 { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.pt-h3 { font-size: 17px; line-height: 1.25; font-weight: 700; margin: 0; }
.pt-muted { color: var(--pt-text-muted); }
.pt-tiny { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pt-text-muted); }

.pt-card {
  background: var(--pt-card);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 16px;
  box-sizing: border-box;
}
.pt-card.accent {
  background: var(--pt-accent);
  border-color: transparent;
  color: var(--pt-accent-ink);
}
.pt-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 14px;
  background: var(--pt-bg-soft);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-pill);
  font-size: 12px; font-weight: 500;
  color: var(--pt-text);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pt-pill.active {
  background: var(--pt-accent);
  border-color: var(--pt-accent);
  color: var(--pt-accent-ink);
  font-weight: 600;
}
.pt-iconbtn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pt-bg);
  border: 1px solid var(--pt-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--pt-text);
  transition: background .15s;
}
.pt-iconbtn:hover { background: var(--pt-bg-soft); }
.pt-iconbtn.dark { background: var(--pt-nav); color: #fff; border-color: var(--pt-nav); }

/* --- Auth screen (login/register) --------------------------------------- */
.pt-auth {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 0 22px;
  padding-top: max(48px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: var(--pt-bg);
}
.pt-auth h1 { font-family: var(--pt-font-serif); font-style: italic; font-weight: 400; font-size: 38px; line-height: 1.05; margin: 0 0 6px; letter-spacing: -0.02em; }
.pt-auth p.sub { color: var(--pt-text-muted); margin: 0 0 28px; font-size: 14px; }
.pt-auth label { display: block; font-size: 12px; font-weight: 600; color: var(--pt-text-muted); margin: 14px 0 6px; letter-spacing: .02em; text-transform: uppercase; }
.pt-auth input {
  width: 100%; box-sizing: border-box;
  height: 48px; padding: 0 16px;
  border: 1px solid var(--pt-border);
  border-radius: 14px;
  font-size: 15px; font-family: inherit; color: var(--pt-text);
  background: var(--pt-bg);
  transition: border-color .15s, box-shadow .15s;
}
.pt-auth input:focus {
  outline: none;
  border-color: var(--pt-accent-deep);
  box-shadow: 0 0 0 3px var(--pt-accent-soft);
}
.pt-auth .submit {
  margin-top: 22px; width: 100%; height: 52px;
  border-radius: 999px; border: none; cursor: pointer;
  background: var(--pt-nav); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600;
}
.pt-auth .submit:disabled { opacity: .5; cursor: progress; }
.pt-auth .switch {
  margin-top: 18px; text-align: center; font-size: 13px; color: var(--pt-text-muted);
}
.pt-auth .switch button {
  background: none; border: none; color: var(--pt-accent-deep);
  font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px;
  padding: 0 0 0 6px;
}
.pt-auth .tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--pt-bg-soft);
  border-radius: 999px;
  margin-bottom: 24px;
}
.pt-auth .tabs button {
  flex: 1; height: 38px; border-radius: 999px;
  border: none; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--pt-text-muted); cursor: pointer;
}
.pt-auth .tabs button.active {
  background: #fff; color: var(--pt-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pt-auth .error {
  margin-top: 14px; padding: 10px 14px;
  background: #FDECEA; color: #8E2E26;
  border-radius: 12px; font-size: 13px;
}

/* Radius variants */
.pt-app.radius-square { --pt-radius-sm: 6px; --pt-radius: 10px; --pt-radius-lg: 14px; }
.pt-app.radius-pill   { --pt-radius-sm: 20px; --pt-radius: 28px; --pt-radius-lg: 36px; }
