{
  "id": 90,
  "slug": "headspace-sunny-whimsy",
  "name": "Headspace Sunny Whimsy",
  "kind": "style",
  "family": "Playful & Hand-Drawn",
  "sourceSite": {
    "name": "Headspace",
    "url": "https://www.headspace.com/",
    "verifiedStatus": 200
  },
  "tagline": "Warm mid-century illustrated wellness whimsy with friendly sun characters, tangerine warmth, and pillowy pill geometry.",
  "whyUnique": "Softens digital anxiety with expressive minimal-face SVG characters, sun-drenched tangerine and cream surfaces, and generously rounded pill geometry that feels immediately welcoming.",
  "theme": "light",
  "mobileStrength": "native-first",
  "tags": [
    "illustrated-whimsy",
    "mid-century-modern",
    "warm-wellness",
    "character-svg",
    "pill-geometry",
    "friendly-ui"
  ],
  "bestFor": [
    "Mental wellness & mindfulness apps",
    "Family-friendly health & habit trackers",
    "Approachable consumer onboarding flows",
    "Playful educational & coaching platforms"
  ],
  "palette": [
    {
      "role": "canvas",
      "hex": "#FFF8EE",
      "name": "Morning Cream"
    },
    {
      "role": "surface",
      "hex": "#FFEBD2",
      "name": "Apricot Glow"
    },
    {
      "role": "ink",
      "hex": "#292524",
      "name": "Warm Espresso"
    },
    {
      "role": "accent",
      "hex": "#F47D31",
      "name": "Sunny Tangerine"
    },
    {
      "role": "muted",
      "hex": "#78716C",
      "name": "Pebble Warm Gray"
    }
  ],
  "typography": {
    "display": "Fredoka, -apple-system, sans-serif",
    "body": "Nunito, -apple-system, sans-serif",
    "mono": "Space Mono, ui-monospace, monospace",
    "googleFontsUrl": "https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&family=Space+Mono:wght@400&display=swap",
    "scaleNotes": "Rounded Fredoka display headings (32–52px) paired with soft, airy Nunito body copy (16px) and calm mono timer readouts."
  },
  "layoutNotes": "Generous curved section dividers, soft 28px-radius cards, centered breathing-exercise medallion, and expressive illustrated character vignettes.",
  "interactionNotes": "Working 4-7-8 guided breathing circle timer with smooth inhale/hold/exhale animation; mood check-in pills dynamically morph the SVG character's facial expression and soothing prompt.",
  "mobileNotes": "Native-app-like vertical flow at 390px with large thumb-friendly >=48px mood pills and centered breathing medallion.",
  "agentGuardrails": {
    "do": [
      "Use warm espresso ink (#292524) instead of harsh pure black to preserve the gentle warmth.",
      "Keep corner radii generous (24px–999px pills) and animations slow, organic, and soothing.",
      "Integrate simple geometric character illustrations that respond to user state."
    ],
    "dont": [
      "Do not use sharp 0px brutalist borders or high-stress red alert badges.",
      "Do not crowd cards with dense data tables or tiny cramped buttons."
    ]
  },
  "demoFile": "demos/headspace-sunny-whimsy.html",
  "thumbDesktop": "thumbs/headspace-sunny-whimsy-desktop.webp",
  "thumbMobile": "thumbs/headspace-sunny-whimsy-mobile.webp",
  "urls": {
    "page": "https://templates.michaelpitts.net/t/headspace-sunny-whimsy",
    "markdown": "https://templates.michaelpitts.net/t/headspace-sunny-whimsy.md",
    "api": "https://templates.michaelpitts.net/api/templates/headspace-sunny-whimsy",
    "demo": "https://templates.michaelpitts.net/demos/headspace-sunny-whimsy.html",
    "thumbDesktop": "https://templates.michaelpitts.net/thumbs/headspace-sunny-whimsy-desktop.webp",
    "thumbMobile": "https://templates.michaelpitts.net/thumbs/headspace-sunny-whimsy-mobile.webp"
  },
  "agentPrompt": "Design & build using template #090 \"Headspace Sunny Whimsy\" (style / Playful & Hand-Drawn, light theme).\nFull AI blueprint & standalone starter code: https://templates.michaelpitts.net/t/headspace-sunny-whimsy.md\nLive demo: https://templates.michaelpitts.net/demos/headspace-sunny-whimsy.html\nReal-world inspiration: Headspace (https://www.headspace.com/)\n\nCore aesthetic: Softens digital anxiety with expressive minimal-face SVG characters, sun-drenched tangerine and cream surfaces, and generously rounded pill geometry that feels immediately welcoming.\nPalette: canvas: #FFF8EE (Morning Cream), surface: #FFEBD2 (Apricot Glow), ink: #292524 (Warm Espresso), accent: #F47D31 (Sunny Tangerine), muted: #78716C (Pebble Warm Gray)\nTypography: Display=\"Fredoka, -apple-system, sans-serif\", Body=\"Nunito, -apple-system, sans-serif\", Mono=\"Space Mono, ui-monospace, monospace\"\nLayout: Generous curved section dividers, soft 28px-radius cards, centered breathing-exercise medallion, and expressive illustrated character vignettes.\nInteractions: Working 4-7-8 guided breathing circle timer with smooth inhale/hold/exhale animation; mood check-in pills dynamically morph the SVG character's facial expression and soothing prompt.\nMobile: Native-app-like vertical flow at 390px with large thumb-friendly >=48px mood pills and centered breathing medallion.\n\nGuardrails:\n- DO: Use warm espresso ink (#292524) instead of harsh pure black to preserve the gentle warmth.\n- DO: Keep corner radii generous (24px–999px pills) and animations slow, organic, and soothing.\n- DO: Integrate simple geometric character illustrations that respond to user state.\n- DON'T: Do not use sharp 0px brutalist borders or high-stress red alert badges.\n- DON'T: Do not crowd cards with dense data tables or tiny cramped buttons.",
  "sourceCode": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  <title>Sunbeam Mind — Gentle Daily Breathing &amp; Sunny Whimsy</title>\n  <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n  <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n  <link href=\"https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;700;800&family=Space+Mono:wght@400;700&display=swap\" rel=\"stylesheet\">\n  <style>\n    :root {\n      --bg: #FFF8EE;\n      --surface: #FFEBD2;\n      --ink: #292524;\n      --accent: #F47D31;\n      --accent-deep: #DC641B;\n      --muted: #78716C;\n      --butter: #FFD166;\n      --sage: #8CC084;\n      --sky: #8ECAE6;\n      --lavender: #C7B8EA;\n      --radius-xl: 32px;\n      --radius-pill: 999px;\n    }\n\n    *, *::before, *::after {\n      box-sizing: border-box;\n    }\n\n    html, body {\n      margin: 0;\n      padding: 0;\n      background-color: var(--bg);\n      color: var(--ink);\n      font-family: 'Nunito', system-ui, -apple-system, sans-serif;\n      line-height: 1.55;\n      overflow-x: hidden;\n    }\n\n    h1, h2, h3, .display {\n      font-family: 'Fredoka', system-ui, sans-serif;\n      margin: 0;\n      line-height: 1.12;\n      font-weight: 600;\n    }\n\n    .mono {\n      font-family: 'Space Mono', ui-monospace, monospace;\n    }\n\n    a {\n      color: inherit;\n      text-decoration: none;\n    }\n\n    button {\n      font-family: inherit;\n      cursor: pointer;\n      border: none;\n      background: transparent;\n      color: inherit;\n    }\n\n    .container {\n      width: 100%;\n      max-width: 1100px;\n      margin: 0 auto;\n      padding: 0 22px;\n    }\n\n    /* Header */\n    header {\n      position: sticky;\n      top: 0;\n      z-index: 50;\n      background: rgba(255, 248, 238, 0.92);\n      backdrop-filter: blur(10px);\n    }\n\n    .nav-wrap {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      min-height: 76px;\n      gap: 16px;\n    }\n\n    .brand {\n      display: inline-flex;\n      align-items: center;\n      gap: 12px;\n      font-family: 'Fredoka', sans-serif;\n      font-size: 1.5rem;\n      font-weight: 700;\n    }\n\n    .nav-links {\n      display: flex;\n      align-items: center;\n      gap: 24px;\n    }\n\n    .nav-links a {\n      font-weight: 700;\n      color: var(--muted);\n      min-height: 44px;\n      display: inline-flex;\n      align-items: center;\n      padding: 0 6px;\n      transition: color 0.18s;\n    }\n\n    .nav-links a:hover {\n      color: var(--accent);\n    }\n\n    .pill-btn {\n      display: inline-flex;\n      align-items: center;\n      justify-content: center;\n      gap: 8px;\n      min-height: 46px;\n      min-width: 46px;\n      padding: 10px 24px;\n      border-radius: var(--radius-pill);\n      font-weight: 800;\n      font-size: 0.98rem;\n      transition: transform 0.16s ease, background-color 0.18s ease, box-shadow 0.18s ease;\n    }\n\n    .pill-btn.sunny {\n      background: var(--accent);\n      color: #FFFDF9;\n      box-shadow: 0 8px 20px rgba(244, 125, 49, 0.28);\n    }\n\n    .pill-btn.sunny:hover {\n      background: var(--accent-deep);\n      transform: translateY(-2px);\n    }\n\n    .pill-btn.soft {\n      background: var(--surface);\n      color: var(--ink);\n    }\n\n    .pill-btn.soft:hover {\n      background: #FFE0B8;\n    }\n\n    .menu-toggle {\n      display: none;\n      width: 46px;\n      height: 46px;\n      border-radius: 50%;\n      background: var(--surface);\n      align-items: center;\n      justify-content: center;\n    }\n\n    .mobile-nav {\n      display: none;\n      flex-direction: column;\n      gap: 8px;\n      padding: 12px 22px 22px;\n      background: var(--surface);\n      border-radius: 0 0 28px 28px;\n    }\n\n    .mobile-nav.open {\n      display: flex;\n    }\n\n    .mobile-nav a {\n      min-height: 44px;\n      display: flex;\n      align-items: center;\n      padding: 10px 16px;\n      border-radius: 16px;\n      background: var(--bg);\n      font-weight: 700;\n    }\n\n    /* Hero */\n    .hero {\n      padding: 36px 0 48px;\n    }\n\n    .hero-card {\n      background: var(--surface);\n      border-radius: 40px;\n      padding: 44px 40px;\n      display: grid;\n      grid-template-columns: 1.1fr 0.9fr;\n      gap: 36px;\n      align-items: center;\n      position: relative;\n      overflow: hidden;\n    }\n\n    .hero-badge {\n      display: inline-flex;\n      align-items: center;\n      gap: 8px;\n      background: var(--bg);\n      padding: 6px 16px;\n      border-radius: var(--radius-pill);\n      font-size: 0.88rem;\n      font-weight: 800;\n      color: var(--accent-deep);\n      margin-bottom: 18px;\n    }\n\n    .hero h1 {\n      font-size: clamp(2.3rem, 5vw, 3.6rem);\n      margin-bottom: 16px;\n    }\n\n    .hero p {\n      font-size: 1.12rem;\n      color: var(--muted);\n      margin: 0 0 26px;\n      max-width: 46ch;\n    }\n\n    .hero-actions {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 12px;\n    }\n\n    .hero-art {\n      display: flex;\n      justify-content: center;\n      align-items: center;\n    }\n\n    .float-slow {\n      animation: floatY 5.5s ease-in-out infinite;\n    }\n\n    @keyframes floatY {\n      0%, 100% { transform: translateY(0px); }\n      50% { transform: translateY(-10px); }\n    }\n\n    /* Interactive Wellness Duo: 4-7-8 Breathing + Mood Check-in */\n    .section {\n      padding: 44px 0;\n    }\n\n    .wellness-grid {\n      display: grid;\n      grid-template-columns: 1fr 1fr;\n      gap: 28px;\n    }\n\n    .soft-panel {\n      background: #FFFDF9;\n      border: 2px solid #F5E1C8;\n      border-radius: var(--radius-xl);\n      padding: 30px;\n      display: flex;\n      flex-direction: column;\n      justify-content: space-between;\n      gap: 20px;\n    }\n\n    .panel-kicker {\n      font-family: 'Space Mono', monospace;\n      font-size: 0.78rem;\n      text-transform: uppercase;\n      letter-spacing: 0.06em;\n      color: var(--accent-deep);\n      font-weight: 700;\n    }\n\n    /* 4-7-8 Breathing Orb */\n    .breath-stage {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: center;\n      padding: 16px 0;\n      gap: 18px;\n    }\n\n    .orb-shell {\n      width: 210px;\n      height: 210px;\n      border-radius: 50%;\n      background: #FFF1DF;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      position: relative;\n    }\n\n    .breath-orb {\n      width: 118px;\n      height: 118px;\n      border-radius: 50%;\n      background: radial-gradient(circle at 35% 32%, #FFD166, #F47D31);\n      box-shadow: 0 14px 36px rgba(244, 125, 49, 0.34);\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: center;\n      color: #FFFDF9;\n      transform: scale(1);\n      transition: transform 0.9s ease-in-out, background 0.6s ease;\n    }\n\n    .breath-orb.inhale {\n      transform: scale(1.48);\n    }\n\n    .breath-orb.hold {\n      transform: scale(1.48);\n      background: radial-gradient(circle at 35% 32%, #FFE28A, #E8943A);\n    }\n\n    .breath-orb.exhale {\n      transform: scale(0.92);\n      background: radial-gradient(circle at 35% 32%, #A8DADC, #F47D31);\n    }\n\n    .breath-timer {\n      font-family: 'Fredoka', sans-serif;\n      font-size: 2rem;\n      line-height: 1;\n    }\n\n    .breath-phase {\n      font-size: 1.15rem;\n      font-weight: 800;\n      color: var(--ink);\n      text-align: center;\n      min-height: 28px;\n    }\n\n    .breath-controls {\n      display: flex;\n      flex-wrap: wrap;\n      justify-content: center;\n      gap: 10px;\n    }\n\n    /* Mood Check-in Panel */\n    .mood-character-stage {\n      background: var(--surface);\n      border-radius: 26px;\n      padding: 22px;\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      text-align: center;\n      gap: 12px;\n      transition: background-color 0.35s ease;\n    }\n\n    .mood-quote {\n      font-size: 1.05rem;\n      font-weight: 700;\n      color: var(--ink);\n      margin: 0;\n      max-width: 34ch;\n    }\n\n    .mood-pills {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 10px;\n    }\n\n    .mood-pill {\n      min-height: 44px;\n      padding: 8px 16px;\n      border-radius: var(--radius-pill);\n      background: var(--bg);\n      border: 2px solid #F0D9BD;\n      font-weight: 800;\n      font-size: 0.92rem;\n      color: var(--ink);\n      transition: background 0.16s, border-color 0.16s, transform 0.14s;\n    }\n\n    .mood-pill:hover {\n      transform: translateY(-1px);\n    }\n\n    .mood-pill.active {\n      background: var(--accent);\n      border-color: var(--accent);\n      color: #FFFDF9;\n    }\n\n    /* Daily Ritual Cards */\n    .rituals-grid {\n      display: grid;\n      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));\n      gap: 20px;\n      margin-top: 24px;\n    }\n\n    .ritual-card {\n      border-radius: 28px;\n      padding: 24px;\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n      transition: transform 0.2s ease;\n    }\n\n    .ritual-card:hover {\n      transform: translateY(-4px);\n    }\n\n    .ritual-card.peach { background: #FFEBD2; }\n    .ritual-card.butter { background: #FFF1B8; }\n    .ritual-card.sage { background: #E3F2E1; }\n    .ritual-card.sky { background: #DFEFF7; }\n\n    .duration-tag {\n      align-self: flex-start;\n      background: rgba(255, 255, 255, 0.75);\n      padding: 4px 12px;\n      border-radius: var(--radius-pill);\n      font-family: 'Space Mono', monospace;\n      font-size: 0.76rem;\n      font-weight: 700;\n    }\n\n    .ritual-card h3 {\n      font-size: 1.38rem;\n    }\n\n    .ritual-card p {\n      margin: 0;\n      color: #4D4744;\n      font-size: 0.96rem;\n    }\n\n    footer {\n      margin-top: 44px;\n      background: var(--surface);\n      border-radius: 40px 40px 0 0;\n      padding: 36px 0 44px;\n    }\n\n    .footer-row {\n      display: flex;\n      flex-wrap: wrap;\n      align-items: center;\n      justify-content: space-between;\n      gap: 16px;\n    }\n\n    @media (max-width: 820px) {\n      .hero-card, .wellness-grid {\n        grid-template-columns: 1fr;\n      }\n      .hero-card {\n        padding: 30px 24px;\n      }\n      .nav-links, .nav-cta {\n        display: none;\n      }\n      .menu-toggle {\n        display: inline-flex;\n      }\n    }\n  </style>\n</head>\n<body>\n  <header>\n    <div class=\"container nav-wrap\">\n      <a href=\"#top\" class=\"brand\">\n        <svg width=\"36\" height=\"36\" viewBox=\"0 0 40 40\" fill=\"none\" aria-hidden=\"true\">\n          <circle cx=\"20\" cy=\"20\" r=\"16\" fill=\"#F47D31\"/>\n          <circle cx=\"15\" cy=\"18\" r=\"2\" fill=\"#292524\"/>\n          <circle cx=\"25\" cy=\"18\" r=\"2\" fill=\"#292524\"/>\n          <path d=\"M15 24c1.5 2.5 8.5 2.5 10 0\" stroke=\"#292524\" stroke-width=\"2.4\" stroke-linecap=\"round\"/>\n        </svg>\n        <span>Sunbeam Mind</span>\n      </a>\n\n      <nav class=\"nav-links\" aria-label=\"Main\">\n        <a href=\"#breathe\">4-7-8 Breathing</a>\n        <a href=\"#mood\">Mood Check-In</a>\n        <a href=\"#rituals\">Daily Sessions</a>\n      </nav>\n\n      <div class=\"nav-cta\">\n        <a href=\"#breathe\" class=\"pill-btn sunny\">Start a Breath</a>\n      </div>\n\n      <button class=\"menu-toggle\" id=\"menuToggle\" aria-expanded=\"false\" aria-controls=\"mobileNav\" aria-label=\"Toggle Menu\">\n        <svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#292524\" stroke-width=\"2.5\" stroke-linecap=\"round\">\n          <path d=\"M4 7h16M4 12h16M4 17h16\"/>\n        </svg>\n      </button>\n    </div>\n\n    <div class=\"mobile-nav\" id=\"mobileNav\">\n      <a href=\"#breathe\">4-7-8 Breathing</a>\n      <a href=\"#mood\">Mood Check-In</a>\n      <a href=\"#rituals\">Daily Sessions</a>\n    </div>\n  </header>\n\n  <main id=\"top\">\n    <section class=\"hero\">\n      <div class=\"container\">\n        <div class=\"hero-card\">\n          <div>\n            <span class=\"hero-badge\">☀ Warm daily pauses &bull; Zero pressure</span>\n            <h1>Make a little sunny room in a busy head.</h1>\n            <p>\n              Take three quiet minutes to unclench your jaw, breathe along with our friendly sun orb, and check in with how today actually feels.\n            </p>\n            <div class=\"hero-actions\">\n              <a href=\"#breathe\" class=\"pill-btn sunny\">Try 4-7-8 Breathing</a>\n              <a href=\"#mood\" class=\"pill-btn soft\">How Are You Feeling?</a>\n            </div>\n          </div>\n\n          <div class=\"hero-art\">\n            <svg class=\"float-slow\" width=\"270\" height=\"240\" viewBox=\"0 0 270 240\" fill=\"none\" role=\"img\" aria-label=\"Smiling mid-century sun character resting on soft clouds\">\n              <!-- Warm halo -->\n              <circle cx=\"138\" cy=\"108\" r=\"78\" fill=\"#FFD166\" opacity=\"0.35\"/>\n              <!-- Sun Rays -->\n              <g stroke=\"#F47D31\" stroke-width=\"6\" stroke-linecap=\"round\">\n                <line x1=\"138\" y1=\"16\" x2=\"138\" y2=\"30\"/>\n                <line x1=\"205\" y1=\"42\" x2=\"195\" y2=\"52\"/>\n                <line x1=\"71\" y1=\"42\" x2=\"81\" y2=\"52\"/>\n                <line x1=\"228\" y1=\"108\" x2=\"214\" y2=\"108\"/>\n                <line x1=\"48\" y1=\"108\" x2=\"62\" y2=\"108\"/>\n              </g>\n              <!-- Sun Body -->\n              <circle cx=\"138\" cy=\"108\" r=\"58\" fill=\"#F47D31\"/>\n              <!-- Rosy Cheeks -->\n              <ellipse cx=\"109\" cy=\"116\" rx=\"8\" ry=\"5\" fill=\"#FFD166\" opacity=\"0.7\"/>\n              <ellipse cx=\"167\" cy=\"116\" rx=\"8\" ry=\"5\" fill=\"#FFD166\" opacity=\"0.7\"/>\n              <!-- Happy Eyes -->\n              <path d=\"M113 102c3-5 10-5 13 0\" stroke=\"#292524\" stroke-width=\"3.6\" stroke-linecap=\"round\"/>\n              <path d=\"M150 102c3-5 10-5 13 0\" stroke=\"#292524\" stroke-width=\"3.6\" stroke-linecap=\"round\"/>\n              <!-- Gentle Smile -->\n              <path d=\"M124 120c7 8 21 8 28 0\" stroke=\"#292524\" stroke-width=\"3.6\" stroke-linecap=\"round\"/>\n              <!-- Fluffy Cloud Foreground -->\n              <path d=\"M52 192h170c17 0 28-11 28-25 0-13-10-24-24-25-4-18-20-31-40-31-14 0-27 7-34 18-6-5-14-8-23-8-18 0-33 13-35 30-15 1-27 12-27 25 0 9 7 16 15 16z\" fill=\"#FFFDF9\"/>\n              <!-- Small sleepy cloud face -->\n              <circle cx=\"176\" cy=\"166\" r=\"2.6\" fill=\"#78716C\"/>\n              <circle cx=\"194\" cy=\"166\" r=\"2.6\" fill=\"#78716C\"/>\n              <path d=\"M181 173c2.5 2.5 5.5 2.5 8 0\" stroke=\"#78716C\" stroke-width=\"2.4\" stroke-linecap=\"round\"/>\n            </svg>\n          </div>\n        </div>\n      </div>\n    </section>\n\n    <section class=\"section\">\n      <div class=\"container wellness-grid\">\n        <!-- 4-7-8 Breathing Timer -->\n        <article class=\"soft-panel\" id=\"breathe\">\n          <div>\n            <span class=\"panel-kicker\">Guided Pacer &bull; 4-7-8 Rhythm</span>\n            <h2 style=\"font-size:1.85rem; margin-top:6px;\">Breathe with the Sun Orb</h2>\n          </div>\n\n          <div class=\"breath-stage\">\n            <div class=\"orb-shell\">\n              <div class=\"breath-orb\" id=\"breathOrb\">\n                <span class=\"breath-timer\" id=\"breathCount\">4</span>\n                <span class=\"mono\" style=\"font-size:0.72rem; opacity:0.9;\" id=\"breathUnit\">SEC</span>\n              </div>\n            </div>\n            <div class=\"breath-phase\" id=\"breathPhase\" aria-live=\"polite\">Press Play to begin a calm cycle</div>\n          </div>\n\n          <div class=\"breath-controls\">\n            <button class=\"pill-btn sunny\" id=\"breathToggle\">Play 4-7-8</button>\n            <button class=\"pill-btn soft\" id=\"breathReset\">Reset</button>\n          </div>\n        </article>\n\n        <!-- Interactive Mood Check-In -->\n        <article class=\"soft-panel\" id=\"mood\">\n          <div>\n            <span class=\"panel-kicker\">Gentle Check-In</span>\n            <h2 style=\"font-size:1.85rem; margin-top:6px;\">How is your weather today?</h2>\n          </div>\n\n          <div class=\"mood-character-stage\" id=\"moodStage\">\n            <svg id=\"moodFaceSvg\" width=\"136\" height=\"136\" viewBox=\"0 0 136 136\" fill=\"none\" role=\"img\" aria-label=\"Sun character mood expression\">\n              <circle id=\"moodHalo\" cx=\"68\" cy=\"68\" r=\"60\" fill=\"#FFD166\" opacity=\"0.4\"/>\n              <circle id=\"moodBody\" cx=\"68\" cy=\"68\" r=\"44\" fill=\"#F47D31\"/>\n              <g id=\"moodEyes\">\n                <path d=\"M49 63c3-4 8-4 11 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/>\n                <path d=\"M76 63c3-4 8-4 11 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/>\n              </g>\n              <path id=\"moodMouth\" d=\"M56 78c6 7 18 7 24 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/>\n            </svg>\n            <p class=\"mood-quote\" id=\"moodQuote\">\"Warm and steady. Enjoy this pocket of easy sunshine while it's here.\"</p>\n          </div>\n\n          <div class=\"mood-pills\" role=\"radiogroup\" aria-label=\"Select your current mood\">\n            <button class=\"mood-pill active\" data-mood=\"sunny\" aria-checked=\"true\">Sunny</button>\n            <button class=\"mood-pill\" data-mood=\"restless\" aria-checked=\"false\">Restless</button>\n            <button class=\"mood-pill\" data-mood=\"sleepy\" aria-checked=\"false\">Sleepy</button>\n            <button class=\"mood-pill\" data-mood=\"overwhelmed\" aria-checked=\"false\">Overwhelmed</button>\n            <button class=\"mood-pill\" data-mood=\"grateful\" aria-checked=\"false\">Grateful</button>\n          </div>\n        </article>\n      </div>\n    </section>\n\n    <section class=\"section\" id=\"rituals\">\n      <div class=\"container\">\n        <span class=\"panel-kicker\">Bite-Sized Audio Guides</span>\n        <h2 style=\"font-size:clamp(1.9rem, 4vw, 2.7rem); margin-top:6px;\">Small rituals for ordinary afternoons</h2>\n\n        <div class=\"rituals-grid\">\n          <div class=\"ritual-card peach\">\n            <span class=\"duration-tag\">3 MIN</span>\n            <h3>Shoulder Drop</h3>\n            <p>Unclench your jaw, melt your shoulders away from your ears, and reset between meetings.</p>\n          </div>\n          <div class=\"ritual-card butter\">\n            <span class=\"duration-tag\">5 MIN</span>\n            <h3>Morning Mug</h3>\n            <p>Notice the warmth of your coffee or tea before checking a single notification.</p>\n          </div>\n          <div class=\"ritual-card sage\">\n            <span class=\"duration-tag\">7 MIN</span>\n            <h3>Cloud Watching</h3>\n            <p>Let racing to-do thoughts drift past like slow afternoon cumulus clouds.</p>\n          </div>\n          <div class=\"ritual-card sky\">\n            <span class=\"duration-tag\">10 MIN</span>\n            <h3>Lantern Wind-Down</h3>\n            <p>Soft storytelling and slow exhales to ease an overactive brain toward sleep.</p>\n          </div>\n        </div>\n      </div>\n    </section>\n  </main>\n\n  <footer>\n    <div class=\"container footer-row\">\n      <div>\n        <strong class=\"display\" style=\"font-size:1.35rem;\">Sunbeam Mind</strong>\n        <div style=\"color:var(--muted); font-size:0.92rem;\">Kindfulness, breathing timers &amp; sunny mid-century illustrations.</div>\n      </div>\n      <div class=\"mono\" style=\"font-size:0.8rem; color:var(--muted);\">Inhale 4 &bull; Hold 7 &bull; Exhale 8</div>\n    </div>\n  </footer>\n\n  <script>\n    // Mobile nav\n    const menuToggle = document.getElementById('menuToggle');\n    const mobileNav = document.getElementById('mobileNav');\n    menuToggle.addEventListener('click', () => {\n      const open = mobileNav.classList.toggle('open');\n      menuToggle.setAttribute('aria-expanded', String(open));\n    });\n    mobileNav.querySelectorAll('a').forEach(a => {\n      a.addEventListener('click', () => {\n        mobileNav.classList.remove('open');\n        menuToggle.setAttribute('aria-expanded', 'false');\n      });\n    });\n\n    // 4-7-8 Guided Breathing Timer\n    const phases = [\n      { key: 'inhale', label: 'Inhale softly through your nose…', duration: 4 },\n      { key: 'hold', label: 'Hold gently, relax your shoulders…', duration: 7 },\n      { key: 'exhale', label: 'Exhale slowly through your mouth…', duration: 8 }\n    ];\n\n    const breathOrb = document.getElementById('breathOrb');\n    const breathCount = document.getElementById('breathCount');\n    const breathPhase = document.getElementById('breathPhase');\n    const breathToggle = document.getElementById('breathToggle');\n    const breathReset = document.getElementById('breathReset');\n\n    let running = false;\n    let phaseIdx = 0;\n    let remaining = phases[0].duration;\n    let timerId = null;\n\n    function applyPhaseUI() {\n      const p = phases[phaseIdx];\n      breathOrb.classList.remove('inhale', 'hold', 'exhale');\n      if (running) breathOrb.classList.add(p.key);\n      breathCount.textContent = String(remaining);\n      breathPhase.textContent = running ? p.label : 'Paused — resume whenever you feel ready';\n    }\n\n    function tick() {\n      remaining -= 1;\n      if (remaining <= 0) {\n        phaseIdx = (phaseIdx + 1) % phases.length;\n        remaining = phases[phaseIdx].duration;\n      }\n      applyPhaseUI();\n    }\n\n    breathToggle.addEventListener('click', () => {\n      running = !running;\n      if (running) {\n        breathToggle.textContent = 'Pause';\n        applyPhaseUI();\n        timerId = setInterval(tick, 1000);\n      } else {\n        breathToggle.textContent = 'Resume 4-7-8';\n        clearInterval(timerId);\n        applyPhaseUI();\n      }\n    });\n\n    breathReset.addEventListener('click', () => {\n      running = false;\n      clearInterval(timerId);\n      phaseIdx = 0;\n      remaining = phases[0].duration;\n      breathOrb.classList.remove('inhale', 'hold', 'exhale');\n      breathCount.textContent = '4';\n      breathPhase.textContent = 'Press Play to begin a calm cycle';\n      breathToggle.textContent = 'Play 4-7-8';\n    });\n\n    // Mood Check-In Selector\n    const moodPresets = {\n      sunny: {\n        bg: '#FFEBD2',\n        body: '#F47D31',\n        halo: '#FFD166',\n        eyes: '<path d=\"M49 63c3-4 8-4 11 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/><path d=\"M76 63c3-4 8-4 11 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/>',\n        mouth: 'M56 78c6 7 18 7 24 0',\n        quote: '\"Warm and steady. Enjoy this pocket of easy sunshine while it\\'s here.\"'\n      },\n      restless: {\n        bg: '#FFF1C9',\n        body: '#E89038',\n        halo: '#F4A261',\n        eyes: '<circle cx=\"55\" cy=\"62\" r=\"3.6\" fill=\"#292524\"/><circle cx=\"81\" cy=\"62\" r=\"3.6\" fill=\"#292524\"/>',\n        mouth: 'M56 80q6-5 12 0t12 0',\n        quote: '\"Buzzing energy is just momentum looking for a soft place to land. Try one slow exhale.\"'\n      },\n      sleepy: {\n        bg: '#E4EFF7',\n        body: '#8ECAE6',\n        halo: '#B9E2F5',\n        eyes: '<path d=\"M49 64c3 3 8 3 11 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/><path d=\"M76 64c3 3 8 3 11 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/>',\n        mouth: 'M62 79c3 4 9 4 12 0',\n        quote: '\"Low battery is not a flaw. Give yourself permission to move at half-speed today.\"'\n      },\n      overwhelmed: {\n        bg: '#EDE6FA',\n        body: '#B59EE8',\n        halo: '#D6C8F5',\n        eyes: '<circle cx=\"55\" cy=\"64\" r=\"3.2\" fill=\"#292524\"/><circle cx=\"81\" cy=\"64\" r=\"3.2\" fill=\"#292524\"/><path d=\"M48 55l12 3M88 55l-12 3\" stroke=\"#292524\" stroke-width=\"2.6\" stroke-linecap=\"round\"/>',\n        mouth: 'M58 83c5-4 15-4 20 0',\n        quote: '\"You don\\'t have to solve the whole week right now — just the next five quiet minutes.\"'\n      },\n      grateful: {\n        bg: '#E3F2E1',\n        body: '#76B86D',\n        halo: '#B7E1B1',\n        eyes: '<path d=\"M49 62c3-5 9-5 12 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/><path d=\"M75 62c3-5 9-5 12 0\" stroke=\"#292524\" stroke-width=\"3.2\" stroke-linecap=\"round\"/>',\n        mouth: 'M54 76c7 10 21 10 28 0',\n        quote: '\"Noticing one small good thing quietly rewires the whole afternoon.\"'\n      }\n    };\n\n    const moodStage = document.getElementById('moodStage');\n    const moodBody = document.getElementById('moodBody');\n    const moodHalo = document.getElementById('moodHalo');\n    const moodEyes = document.getElementById('moodEyes');\n    const moodMouth = document.getElementById('moodMouth');\n    const moodQuote = document.getElementById('moodQuote');\n\n    document.querySelectorAll('.mood-pill').forEach(btn => {\n      btn.addEventListener('click', () => {\n        const m = moodPresets[btn.dataset.mood];\n        document.querySelectorAll('.mood-pill').forEach(b => {\n          const active = b === btn;\n          b.classList.toggle('active', active);\n          b.setAttribute('aria-checked', String(active));\n        });\n        moodStage.style.backgroundColor = m.bg;\n        moodBody.setAttribute('fill', m.body);\n        moodHalo.setAttribute('fill', m.halo);\n        moodEyes.innerHTML = m.eyes;\n        moodMouth.setAttribute('d', m.mouth);\n        moodQuote.textContent = m.quote;\n      });\n    });\n  </script>\n</body>\n</html>\n"
}
