/* ─────────────────────────────────────────────────────────────
   Peach marketing-web — designed CSS phone mockups
   Replaces the empty placeholder phones with full-fidelity
   in-app screens, drawn entirely in CSS so the page reads
   as a real product, not a wireframe.
   ───────────────────────────────────────────────────────────── */

/* ── DEVICE FRAME ───────────────────────────────────────────────────── */
.device {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  background: #1a0e0b;
  padding: 8px;
  box-sizing: border-box;
  box-shadow:
    0 1px 0 1px rgba(255,255,255,0.04) inset,
    0 28px 50px -12px rgba(90,53,48,0.30),
    0 8px 18px -6px rgba(90,53,48,0.20);
}
.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}
.device-island {
  position: absolute; top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 18px;
  background: #000; border-radius: 999px;
  z-index: 20;
}
.device-status {
  position: absolute; top: 9px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 22px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 11px; color: var(--ink);
  z-index: 15;
}
.device-status .status-right {
  display: flex; align-items: center; gap: 4px;
}
.device-status .status-right svg { width: 12px; height: 12px; color: var(--ink); }

/* Screen body — gives content room beneath the island */
.screen-body {
  padding-top: 36px;
  height: 100%;
  display: flex; flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── BOTTOM TAB BAR ─────────────────────────────────────────────────── */
.tab-bar {
  margin-top: auto;
  display: flex; justify-content: space-around;
  padding: 10px 12px 12px;
  background: var(--surface);
  border-top: 0.5px solid var(--line);
  align-items: center;
}
.tab-bar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink-3);
  font-size: 8px; font-weight: 600; letter-spacing: 0.2px;
}
.tab-bar .tab.on { color: var(--primary-deep); }
.tab-bar .tab svg { width: 16px; height: 16px; }

/* ── HOME SCREEN — Hero phone ───────────────────────────────────────── */
.screen-home {
  background: linear-gradient(to bottom, var(--warm-grad-top) 0%, var(--bg) 35%);
}
.screen-home .top-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 14px;
}
.screen-home .avatar {
  width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(135deg, #FFC7B8, #F4A0A0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
}
.screen-home .date {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 14px; color: var(--ink); letter-spacing: -0.2px;
}
.screen-home .top-icon {
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.screen-home .greeting {
  padding: 0 18px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 11px; color: var(--ink-2); letter-spacing: -0.1px;
  margin-bottom: 4px;
}
.screen-home .greeting b { color: var(--ink); font-weight: 700; }
.screen-home .day-title {
  padding: 0 18px;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 32px; line-height: 1; color: var(--ink); letter-spacing: -0.8px;
  margin-bottom: 4px;
}
.screen-home .phase-line {
  padding: 0 18px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 11px; color: var(--ink-2);
  display: flex; align-items: center; gap: 5px;
}
.screen-home .phase-line .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--primary);
}

/* Week strip */
.week-strip {
  margin: 14px 14px 12px;
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  background: var(--surface); border-radius: 16px;
  padding: 10px 6px;
  box-shadow: var(--shadow-card);
}
.week-strip .day {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 2px 0;
  font-family: var(--font-body); font-size: 8px;
  color: var(--ink-3); font-weight: 600;
}
.week-strip .day .num {
  width: 22px; height: 22px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--ink); font-weight: 600;
  background: transparent;
}
.week-strip .day.period .num {
  background: var(--cycle-period); color: #fff;
}
.week-strip .day.fertile .num {
  background: var(--cycle-fertile); color: var(--ink);
}
.week-strip .day.ovul .num {
  background: var(--cycle-ovul); color: #fff;
}
.week-strip .day.today .num {
  outline: 1.5px solid var(--ink);
  outline-offset: 1px;
  font-weight: 700;
}

/* Insight card — warm-brown gradient */
.insight-card {
  margin: 0 14px 14px;
  background: linear-gradient(135deg, var(--insight-grad-from), var(--insight-grad-to));
  color: #FFF6F1;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 6px 14px rgba(90,53,48,0.20);
}
.insight-card .eb {
  font-family: var(--font-body); font-weight: 600; font-size: 8px;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: rgba(255,246,241,0.6);
}
.insight-card .h {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 14px; line-height: 1.15; letter-spacing: -0.3px;
  margin-bottom: 2px;
}
.insight-card .p {
  font-family: var(--font-body); font-size: 9.5px; line-height: 1.4;
  color: rgba(255,246,241,0.82);
}

/* Quick log row */
.quick-log {
  margin: 0 14px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quick-log .tile {
  background: var(--surface); border-radius: 14px;
  padding: 9px 11px; box-shadow: var(--shadow-card);
}
.quick-log .tile .lbl {
  font-size: 8px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px;
}
.quick-log .tile .val {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 16px; color: var(--ink); letter-spacing: -0.2px; line-height: 1;
}
.quick-log .tile .val small {
  font-family: var(--font-body); font-style: normal; font-weight: 500;
  font-size: 9px; color: var(--ink-3); margin-left: 3px;
}
.quick-log .tile .mood-row {
  display: flex; gap: 4px; margin-top: 4px;
  font-size: 12px;
}
.quick-log .tile .mood-row span.on { transform: scale(1.3); }
.quick-log .tile .mood-row span { opacity: 0.4; transition: all .2s; }

/* ── DAILY LOG SCREEN — Step 01 ─────────────────────────────────────── */
.screen-log {
  background: var(--bg);
}
.screen-log .nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 18px 12px;
}
.screen-log .nav-row .back {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.screen-log .nav-row .title {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  color: var(--ink);
}
.screen-log .nav-row .skip {
  font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--ink-2);
}
.screen-log .head {
  padding: 0 18px;
}
.screen-log .head .eb {
  font-family: var(--font-body); font-weight: 600; font-size: 8px;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 4px;
}
.screen-log .head .h {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 22px; line-height: 1.05; letter-spacing: -0.6px;
  color: var(--ink); margin-bottom: 10px;
}

.section-card {
  margin: 0 14px 10px;
  background: var(--surface); border-radius: 16px;
  padding: 11px 12px;
  box-shadow: var(--shadow-card);
}
.section-card .lbl {
  font-family: var(--font-body); font-weight: 600;
  font-size: 8px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}

/* Phase pickers */
.phase-pills {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
.phase-pills .pp {
  border-radius: 999px;
  padding: 5px 4px;
  font-family: var(--font-body); font-size: 8.5px; font-weight: 600;
  text-align: center; color: var(--ink-2);
  background: var(--bg-2);
}
.phase-pills .pp.on {
  background: var(--ink); color: #fff;
}
.phase-pills .pp.period.on { background: var(--cycle-period); }
.phase-pills .pp.ovul.on { background: var(--cycle-ovul); }

/* Mood slider */
.mood-slider {
  height: 22px; border-radius: 999px;
  background: linear-gradient(to right, var(--mood-1), var(--mood-2), var(--mood-3), var(--mood-4), var(--mood-5));
  position: relative; margin-top: 3px;
}
.mood-slider .thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.20);
}
.mood-slider .emoji-row {
  position: absolute; inset: 0; display: flex; justify-content: space-between;
  align-items: center; padding: 0 4px; font-size: 11px;
}

/* Symptoms chip grid */
.sym-grid {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.sym-grid .chip {
  font-family: var(--font-body); font-size: 8.5px; font-weight: 500;
  padding: 4px 8px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid transparent;
}
.sym-grid .chip.on {
  background: var(--accent-2); color: var(--ink); border-color: var(--primary);
  font-weight: 600;
}

/* Save button */
.screen-log .save-bar {
  margin: auto 14px 14px;
  background: var(--primary); color: #fff;
  border-radius: 999px; padding: 10px;
  text-align: center;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  box-shadow: 0 6px 14px rgba(244,160,160,0.45);
}

/* ── CYCLE SCREEN — Step 02 ──────────────────────────────────────────── */
.screen-cycle {
  background: var(--bg);
}
.screen-cycle .head {
  padding: 6px 18px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.screen-cycle .head .h {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 18px; color: var(--ink); letter-spacing: -0.3px;
}
.screen-cycle .head .month {
  font-family: var(--font-body); font-weight: 600; font-size: 10px;
  color: var(--ink-2);
}

/* Cycle ring */
.cycle-ring-wrap {
  margin: 4px 14px 10px;
  background: var(--surface); border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center;
}
.cycle-ring {
  position: relative; width: 130px; height: 130px;
  border-radius: 999px;
  background: conic-gradient(
    var(--cycle-period) 0deg 60deg,
    var(--accent-2) 60deg 110deg,
    var(--cycle-fertile) 110deg 150deg,
    var(--cycle-ovul) 150deg 180deg,
    var(--bg-2) 180deg 360deg
  );
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.cycle-ring::before {
  content: ''; position: absolute; inset: 14px;
  border-radius: 999px; background: var(--surface);
}
.cycle-ring .inside {
  position: relative; text-align: center; z-index: 1;
}
.cycle-ring .inside .day-n {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 30px; color: var(--ink); line-height: 1; letter-spacing: -0.6px;
}
.cycle-ring .inside .day-l {
  font-family: var(--font-body); font-weight: 600; font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-3);
  margin-top: 2px;
}
.cycle-ring-wrap .phase-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body); font-weight: 600; font-size: 9px;
  color: var(--ink); padding: 3px 9px; border-radius: 999px;
  background: var(--accent-2);
}
.cycle-ring-wrap .phase-chip .d {
  width: 5px; height: 5px; border-radius: 999px; background: var(--primary-deep);
}

/* Prediction card */
.pred-card {
  margin: 0 14px 10px;
  background: var(--surface); border-radius: 16px;
  padding: 11px 13px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px;
}
.pred-card .ic {
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent-2); display: flex; align-items: center; justify-content: center;
  flex: none;
}
.pred-card .ic svg { width: 14px; height: 14px; color: var(--ink); }
.pred-card .h {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 13px; color: var(--ink); letter-spacing: -0.2px; line-height: 1.1;
}
.pred-card .p {
  font-family: var(--font-body); font-size: 9px; color: var(--ink-2);
  margin-top: 2px;
}

/* Legend */
.cyc-legend {
  margin: 0 14px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
}
.cyc-legend .lg {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-size: 8.5px; color: var(--ink-2); font-weight: 500;
}
.cyc-legend .lg .sw {
  width: 8px; height: 8px; border-radius: 999px;
}

/* ── COACH SCREEN — Step 03 ─────────────────────────────────────────── */
.screen-coach {
  background: var(--bg);
}
.screen-coach .head {
  padding: 6px 14px 10px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 0.5px solid var(--line);
}
.screen-coach .head .av {
  width: 32px; height: 32px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 11px;
  flex: none;
}
.screen-coach .head .info {
  flex: 1; min-width: 0;
}
.screen-coach .head .name {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  color: var(--ink);
}
.screen-coach .head .status {
  font-family: var(--font-body); font-size: 9px; color: var(--accent); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.screen-coach .head .status::before {
  content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--accent);
}

.chat-body {
  flex: 1;
  padding: 12px 12px 8px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.chat-day {
  text-align: center;
  font-family: var(--font-body); font-weight: 600; font-size: 8px;
  letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-3);
}
.bubble {
  max-width: 80%;
  padding: 8px 11px;
  border-radius: 16px;
  font-family: var(--font-body); font-size: 10px; line-height: 1.4;
  letter-spacing: -0.1px;
}
.bubble.them {
  align-self: flex-start;
  background: var(--surface); color: var(--ink);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-card);
}
.bubble.them b { color: var(--primary-deep); font-weight: 700; }
.bubble.me {
  align-self: flex-end;
  background: var(--primary); color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.them em { font-style: italic; color: var(--primary-deep); }

.chat-input {
  margin: 8px 12px 12px;
  background: var(--surface); border-radius: 999px;
  padding: 6px 6px 6px 14px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-card);
}
.chat-input .ph {
  flex: 1; font-family: var(--font-body); font-size: 10px; color: var(--ink-3);
}
.chat-input .send-btn {
  width: 26px; height: 26px; border-radius: 999px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex: none;
}
.chat-input .send-btn svg { width: 12px; height: 12px; }
.chat-quota {
  text-align: center;
  font-family: var(--font-body); font-size: 8px; color: var(--ink-3);
  padding: 0 12px 6px;
}

/* ── HERO PHONE — sized + tilted ────────────────────────────────────── */
.hero-phone-real {
  position: absolute; top: 0; left: -2%;
  width: 50%;
  transform: rotate(-5deg);
  z-index: 1;
}

/* Override the existing how-phone to fit a full device frame */
.how-phone.has-device {
  background: transparent; padding: 0; box-shadow: none;
  border: 0;
  width: 70%; max-width: 280px; aspect-ratio: 9 / 19;
  height: auto;
}
