/* ==========================================================================
   Habi – Custom Overrides
   Layered on top of the Framer-generated CSS (line 147 of index.html).
   IMPORTANT: Framer uses two-class selectors (specificity 0,2,0).
   Always use !important when overriding Framer styles or inline styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --color-accent: #956aff;
  --color-accent-bg: #4d77ff14;
  --color-link: #7c9eff;
  --color-star: #f0a030;

  /* Text */
  --text-primary: #fff;
  --text-body: rgba(255, 255, 255, 0.85);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.4);

  /* Surfaces */
  --surface-dark: #0e0f11;
  --surface-nav: rgba(14, 15, 17, 0.65);
  --surface-overlay: rgba(14, 14, 17, 0.98);
  --surface-dropdown: rgba(30, 30, 30, 0.95);

  /* Borders */
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-faint: rgba(255, 255, 255, 0.06);

  /* Backgrounds */
  --bg-hover: rgba(255, 255, 255, 0.12);
  --bg-hover-strong: rgba(255, 255, 255, 0.16);
  --bg-subtle: rgba(255, 255, 255, 0.06);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-faint: rgba(255, 255, 255, 0.03);
  --bg-image: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Text Selection
   -------------------------------------------------------------------------- */
::selection {
  background: var(--color-accent-bg);
  color: var(--color-accent);
}
::-moz-selection {
  background: var(--color-accent-bg);
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Category Cards (insights listing + profile pages)
   -------------------------------------------------------------------------- */
.category-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.2s;
  overflow: visible;
}
.category-card,
.category-card:hover,
.category-card * {
  text-decoration: none !important;
}
.category-card:hover .card-img {
  border-radius: 100px;
}
.category-card .card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 16px 0 0;
  text-align: left;
}
.category-card .card-img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: bottom;
  border-radius: 42px;
  order: -1;
  transition: border-radius 0.3s ease;
  background: var(--bg-card);
}
.category-card .card-title {
  font-family: 'Inter Display', sans-serif;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--text-primary) !important;
  margin: 0 0 8px !important;
  order: 1;
}
.category-card .card-date {
  font-size: 15px !important;
  color: var(--text-faint) !important;
  margin: 0 !important;
  order: 2;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.category-card .card-desc {
  display: none;
}
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
/* --------------------------------------------------------------------------
   Category Tabs (desktop)
   -------------------------------------------------------------------------- */
.category-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  padding: 4px;
  background: var(--bg-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 40px;
  width: fit-content;
}
a.category-tab,
a.category-tab:link,
a.category-tab:visited,
a.category-tab:active {
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  transition: background 0.2s;
  background: transparent !important;
  filter: none !important;
}
a.category-tab:hover {
  color: var(--text-primary) !important;
  background: var(--bg-hover) !important;
  filter: none !important;
}
a.category-tab.active,
a.category-tab.active:link,
a.category-tab.active:visited,
a.category-tab.active:hover {
  background: var(--bg-hover) !important;
  color: var(--text-secondary) !important;
  filter: none !important;
}

/* --------------------------------------------------------------------------
   Category Dropdown (mobile)
   -------------------------------------------------------------------------- */
.category-dropdown {
  display: none;
  position: relative;
  margin-bottom: 32px;
}
.category-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-hover);
  border: none;
  border-radius: 40px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.category-dropdown-trigger:hover {
  background: var(--bg-hover-strong);
}
.category-dropdown-trigger .arrow {
  font-size: 14px;
  transition: transform 0.2s;
}
.category-dropdown.open .category-dropdown-trigger .arrow {
  transform: rotate(180deg);
}
.category-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  min-width: 200px;
  padding: 12px;
  background: var(--surface-dropdown);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  flex-direction: column;
  gap: 4px;
}
.category-dropdown.open .category-dropdown-menu {
  display: flex;
}
a.category-dropdown-item,
a.category-dropdown-item:link,
a.category-dropdown-item:visited {
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  text-align: center;
  transition: background 0.2s;
}
a.category-dropdown-item:hover,
a.category-dropdown-item.active {
  background: var(--bg-hover);
}

/* --------------------------------------------------------------------------
   Responsive: cards, tabs, dropdown
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .category-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
  }
}
@media (max-width: 768px) {
  .category-card-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .category-card .card-img {
    height: 300px;
    object-fit: contain !important;
    object-position: bottom !important;
  }
  .category-card .card-text {
    padding: 12px 8px 0;
  }
  .category-tabs {
    display: none;
  }
  .category-dropdown {
    display: flex;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Article Wrapper (shared across all article + listing pages)
   -------------------------------------------------------------------------- */
.article-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: var(--text-body);
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.article-wrapper a {
  color: var(--color-link);
  text-decoration: none;
}
.article-wrapper a:hover {
  text-decoration: underline;
}
/* Framer-template article body links (pages without .article-wrapper) */
.framer-1jUhT .framer-p0lftl a {
  color: var(--color-link) !important;
  text-decoration: none !important;
}
.framer-1jUhT .framer-p0lftl a:hover {
  text-decoration: underline !important;
}
.article-breadcrumbs {
  font-family: "Rubik", "Rubik Placeholder", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.article-breadcrumbs a {
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-breadcrumbs a:hover {
  color: var(--text-secondary);
}
.article-breadcrumbs span {
  margin: 0 8px;
}
.article-wrapper h1 {
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: "Rubik", "Rubik Placeholder", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.article-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}
.article-meta a:hover {
  text-decoration: underline;
}
.article-meta time {
  color: var(--text-secondary);
}
.article-wrapper h2 {
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 56px 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.article-wrapper h3 {
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 48px 0 16px;
  line-height: 1.3;
}
.article-wrapper p {
  margin: 0 0 20px;
  color: var(--text-body);
}
.article-wrapper figure {
  margin: 32px 0;
}
.article-wrapper figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--bg-image);
}
.article-wrapper figcaption {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 8px;
}
.article-wrapper img.hero-img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: bottom;
  border-radius: 24px;
  margin: 16px 0;
  background: var(--bg-image);
}

/* Framer article cover images — align illustration to bottom */
[data-framer-name="Cover"] img {
  object-position: bottom !important;
}
@media (max-width: 768px) {
  .framer-1jUhT .framer-kguvdh section.framer-y6gqaf,
  .framer-y6gqaf,
  .article-wrapper img.hero-img {
    height: 280px !important;
    aspect-ratio: auto !important;
  }
}
.article-wrapper ul,
.article-wrapper ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.article-wrapper li {
  margin-bottom: 10px;
  color: var(--text-body);
}
.article-wrapper li strong {
  color: var(--text-primary);
}
.article-wrapper strong {
  color: var(--text-primary);
  font-weight: 600;
}
.article-wrapper blockquote {
  border-left: 3px solid rgba(255, 255, 255, 0.2); /* blockquote accent */
  margin: 24px 0;
  padding: 12px 0 12px 20px;
  font-style: italic;
  color: var(--text-secondary);
}
.article-wrapper hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: 48px 0;
}

/* Key Takeaways box */
.key-takeaways {
  background: var(--bg-image);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}
.key-takeaways h3 {
  margin: 0 0 12px !important;
  font-size: 13px !important;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.key-takeaways ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.key-takeaways li {
  padding: 6px 0;
  font-size: 15px;
}
.key-takeaways li::before {
  content: none;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
}
.comparison-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 12px;
  caption-side: bottom;
}
.comparison-table thead th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-strong);
  font-size: 14px;
}
.comparison-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-faint);
  color: var(--text-secondary);
  vertical-align: top;
}
.comparison-table tbody tr:hover {
  background: var(--bg-faint);
}
.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}
.comparison-table a {
  color: var(--color-link);
}

/* Table of Contents */
.toc {
  background: var(--bg-faint);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 24px 0;
}
.toc h3 {
  margin: 0 0 8px !important;
  font-size: 13px !important;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 24px;
}
.toc li {
  font-size: 14px;
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.6);
}
.toc a {
  color: var(--text-secondary);
}
.toc a:hover {
  color: var(--text-primary);
}

/* FAQ section */
.faq-section details {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-section details:last-child {
  border-bottom: none;
}
.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.faq-section summary::-webkit-details-marker {
  display: none;
}
.faq-section .faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-section .faq-icon .faq-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--text-faint);
  border-radius: 40px;
  transition: transform 0.3s ease;
}
.faq-section .faq-line-h {
  transform: translate(-50%, -50%) rotate(-90deg);
}
.faq-section .faq-line-v {
  transform: translate(-50%, -50%) rotate(-180deg);
}
.faq-section details[open] .faq-line-h {
  transform: translate(-50%, -50%) rotate(-90deg);
}
.faq-section details[open] .faq-line-v {
  transform: translate(-50%, -50%) rotate(-90deg);
}
.faq-section details p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   App Review Header (comparison articles)
   -------------------------------------------------------------------------- */
.article-wrapper .app-review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 16px;
}
.article-wrapper .app-review-header img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}
.article-wrapper .app-review-header h3 {
  margin: 0;
}

/* --------------------------------------------------------------------------
   App Cards (comparison articles – quick-pick list)
   -------------------------------------------------------------------------- */
.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none !important;
  color: inherit;
  transition: background 0.2s ease;
}
.app-card:first-of-type {
  border-top: 1px solid var(--border-subtle);
}
.app-card:hover {
  background: var(--bg-faint);
}
.app-card .app-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
}
.app-card .app-card-info {
  flex: 1;
  min-width: 0;
}
.app-card .app-card-name {
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 3px;
}
.app-card .app-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 4px;
  line-height: 1.4;
}
.app-card .app-card-rating {
  font-size: 13px;
  color: var(--text-faint);
}
.app-card .app-card-rating .stars {
  color: var(--color-star);
  letter-spacing: -1px;
}
.app-card .app-card-chevron {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   App Screenshots (comparison articles)
   -------------------------------------------------------------------------- */
.app-screenshots {
  display: flex;
  gap: 12px;
  margin: 20px 0 24px;
}
.app-screenshots img {
  width: calc((100% - 36px) / 4);
  height: auto;
  border-radius: 16px;
  background: var(--bg-faint);
}
.app-screenshots.three-col img {
  width: calc((100% - 24px) / 3);
}

/* --------------------------------------------------------------------------
   Insights Listing Pages (hero + layout overrides)
   -------------------------------------------------------------------------- */
.article-wrapper.insights-listing {
  max-width: 1200px;
  text-align: center;
}
.article-wrapper.insights-listing .category-tabs {
  margin: 0 auto 48px;
}
.article-wrapper.insights-listing .category-dropdown {
  justify-content: center;
}
.insights-hero {
  text-align: center;
  max-width: 100%;
  padding: 80px 0 0;
  margin-bottom: 48px;
}
.insights-hero-label {
  font-size: 18px !important;
  color: var(--text-muted) !important;
  margin: 0 0 20px !important;
  font-weight: 400 !important;
  font-family: "Inter", sans-serif !important;
}
.insights-hero .insights-hero-title {
  font-family: "Rubik", sans-serif !important;
  font-size: 120px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  color: var(--text-body) !important;
  margin: 0 0 32px !important;
  line-height: 90% !important;
  letter-spacing: -0.06em !important;
  font-feature-settings: "cv10" on, "ss07" on !important;
}
.insights-hero-desc {
  font-size: 18px !important;
  color: var(--text-muted) !important;
  margin: 0 auto !important;
  max-width: 640px;
  line-height: 1.6 !important;
}
@media (max-width: 1023.98px) {
  .insights-hero .insights-hero-title {
    font-size: 96px !important;
    letter-spacing: -0.04em !important;
  }
}
@media (max-width: 767.98px) {
  .insights-hero .insights-hero-title {
    font-size: 48px !important;
    letter-spacing: -0.04em !important;
    line-height: 100% !important;
  }
}
@media (max-width: 768px) {
  .article-wrapper {
    padding: 24px 16px 60px;
    width: 100%;
  }
  .toc ol {
    grid-template-columns: 1fr;
  }
  .app-card {
    align-items: flex-start;
  }
  .app-card .app-card-icon {
    margin-top: 4px;
  }
  .comparison-table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoint Visibility
   Framer renders all breakpoint variants in the HTML and hides/shows them
   via these classes.  Non-ssr-variant elements (decorative images, layout
   helpers) are correctly hidden at the wrong breakpoint.
   Homepage:     torpu9 = desktop ≥1300    m8p21b = tablet 1024-1299
                 2444vp = mobile ≤1023
   Features:     1ast0l4 = desktop ≥1300   tv3b6l = tablet 1024-1299
                 1dm8t61 = mobile ≤1023
   Contact:      1hivnua = desktop ≥1300   14o0yxw = tablet 1024-1299
                 1cgg4wp = mobile ≤1023
   Company:      1yi09p7 = desktop ≥1300   x969dv = tablet 1024-1299
                 1hy7nbs = mobile ≤1023
   Insights:     dm7rm6 = desktop ≥1300    93uwhf = tablet 1024-1299
                 q8pp8c = mobile ≤1023
   Ins/Cat-1:    6kxm6m = desktop ≥1300   v804gy = tablet 1024-1299
                 1opr8k2 = mobile ≤1023
   Ins/Cat-3:    ciitli = desktop ≥1300    17mtrsb = tablet 1024-1299
                 h6pp70 = mobile ≤1023
   Articles:     ggtqpm = desktop ≥1300   5v68jj = tablet 1024-1299
                 f3x2n3 = mobile ≤1023
   Legal:        5gx7jr = desktop ≥1300   1vjvvxm = tablet 1024-1299
                 17qnk94 = mobile ≤1023
   404:          19davg0 = desktop ≥1300   68avyr = tablet 1024-1299
                 1czu73e = mobile ≤1023
   -------------------------------------------------------------------------- */
@media (min-width: 1300px) {
  .hidden-torpu9, .hidden-1ast0l4, .hidden-1hivnua, .hidden-1yi09p7, .hidden-dm7rm6, .hidden-6kxm6m, .hidden-ciitli, .hidden-ggtqpm, .hidden-5gx7jr, .hidden-19davg0 { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1299.98px) {
  .hidden-m8p21b, .hidden-tv3b6l, .hidden-14o0yxw, .hidden-x969dv, .hidden-93uwhf, .hidden-v804gy, .hidden-17mtrsb, .hidden-5v68jj, .hidden-1vjvvxm, .hidden-68avyr { display: none !important; }
}
@media (max-width: 1023.98px) {
  .hidden-2444vp, .hidden-1dm8t61, .hidden-1cgg4wp, .hidden-1hy7nbs, .hidden-q8pp8c, .hidden-1opr8k2, .hidden-h6pp70, .hidden-f3x2n3, .hidden-17qnk94, .hidden-1czu73e { display: none !important; }
}

/* --- Homepage SSR-variant overrides ---
   The homepage SSR has only one content variant.  Force ssr-variant wrappers
   to display:contents so Framer responsive CSS can restyle the same elements. */
@media (min-width: 1024px) and (max-width: 1299.98px) {
  .framer-jSJlD .ssr-variant.hidden-m8p21b { display: contents !important; }
}
@media (max-width: 1023.98px) {
  .framer-jSJlD .ssr-variant.hidden-2444vp { display: contents !important; }
  /* Allow Trust section text to wrap on mobile */
  .framer-jSJlD .framer-gpf98b .framer-u02yaa {
    white-space: normal !important;
    width: 100% !important;
  }
  .framer-jSJlD .framer-gpf98b .framer-u02yaa p {
    --framer-text-alignment: center !important;
    text-align: center !important;
  }
}

/* --- Features SSR-variant overrides ---
   The Features SSR has desktop, tablet, AND phone variant trees.
   At desktop and tablet the base hidden-* rules handle visibility correctly.
   At mobile, 2-class content pairs (desktop: hidden-tv3b6l only) lack
   hidden-1dm8t61, so they'd be visible alongside the tablet variant.
   We hide them explicitly; the :not(.hidden-1ast0l4) guard keeps 3-variant
   phone elements (which carry both hidden-1ast0l4 + hidden-tv3b6l) visible. */
@media (max-width: 1023.98px) {
  .framer-r1lmy .ssr-variant.hidden-tv3b6l:not(.hidden-1ast0l4) {
    display: none !important;
  }
}

/* Prevent horizontal overflow on all viewports. */
.framer-jSJlD.framer-torpu9,
.framer-r1lmy.framer-1ast0l4,
.framer-iqEIW.framer-1hivnua,
.framer-QjdAs.framer-1yi09p7,
.framer-6Rs7l.framer-dm7rm6,
.framer-L0tZc.framer-6kxm6m,
.framer-DqsSN.framer-ciitli,
.framer-1jUhT.framer-ggtqpm,
.framer-4lhYo.framer-5gx7jr,
.framer-g7GQI.framer-19davg0 {
  max-width: 100% !important;
}
@media (max-width: 1023.98px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .framer-jSJlD.framer-torpu9,
  .framer-r1lmy.framer-1ast0l4,
  .framer-iqEIW.framer-1hivnua,
  .framer-QjdAs.framer-1yi09p7,
  .framer-6Rs7l.framer-dm7rm6,
  .framer-L0tZc.framer-6kxm6m,
  .framer-DqsSN.framer-ciitli,
  .framer-1jUhT.framer-ggtqpm,
  .framer-4lhYo.framer-5gx7jr,
  .framer-g7GQI.framer-19davg0,
  #main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  /* Ensure text containers don't clip button effects (homepage) */
  .framer-jSJlD .framer-2ttlah,
  .framer-jSJlD .framer-9k5v5p {
    overflow: visible !important;
  }
}

/* --------------------------------------------------------------------------
   Rotating Word Reveal
   Three-phrase cycling animation: blur in → hold → blur out on a 12s loop.
   Used in the hero tagline area.
   -------------------------------------------------------------------------- */
.rwc { display: block; position: relative; padding-bottom: 0.15em; }
.rw { white-space: nowrap; }
.rw:first-child { position: relative; }
.rw:not(:first-child) { position: absolute; left: 0; top: 0; }
.rc { display: inline-block; opacity: 0; filter: blur(16px); color: rgba(207, 189, 255, 0.96); }

.rw-0 .rc { animation: s0 12s infinite both; }
@keyframes s0 {
  0%, 0.0% { opacity: 0; filter: blur(16px); }
  3.3% { opacity: 1; filter: blur(0px); }
  29.2% { opacity: 1; filter: blur(0px); }
  33.3%, 100% { opacity: 0; filter: blur(0px); }
}
.rw-1 .rc { animation: s1 12s infinite both; }
@keyframes s1 {
  0%, 33.3% { opacity: 0; filter: blur(16px); }
  36.7% { opacity: 1; filter: blur(0px); }
  62.5% { opacity: 1; filter: blur(0px); }
  66.7%, 100% { opacity: 0; filter: blur(0px); }
}
.rw-2 .rc { animation: s2 12s infinite both; }
@keyframes s2 {
  0%, 66.7% { opacity: 0; filter: blur(16px); }
  70.0% { opacity: 1; filter: blur(0px); }
  95.8% { opacity: 1; filter: blur(0px); }
  100.0%, 100% { opacity: 0; filter: blur(0px); }
}

/* The navigation scroll trigger is a 1px red bar (opacity:0 on live site).
   Build scripts may flip opacity:0→1; force it invisible on all pages. */
[data-framer-name="Trigger: Navigation"] {
  opacity: 0 !important;
}

/* --------------------------------------------------------------------------
   Sticky Header  (desktop + tablet only)
   Transparent in hero, blurred dark background after scrolling past trigger.
   The .scrolled class is toggled by JS (IntersectionObserver).
   On mobile the header is static (position: relative per Framer CSS).
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .framer-xxwixa,
  .framer-15d22ku,
  .framer-1wilm9a,
  .framer-1v4jc4,
  .framer-1u1eqtj,
  .framer-1uzgi35,
  .framer-1m99cdn,
  .framer-1y7fg1h,
  .framer-x7jgdr,
  .framer-oywby8 {
    position: sticky !important;
    top: 0px !important;
    z-index: 4;
  }
}
nav.framer-ou8xH .framer-4j4vvm {
  transition: backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease,
              background-color 0.4s ease, box-shadow 0.4s ease,
              border-color 0.4s ease;
  border: 1px solid transparent;
}
nav.framer-ou8xH.scrolled .framer-4j4vvm {
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  background-color: var(--surface-nav) !important;
  border-color: var(--border-subtle);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   Mobile Nav Adaptation
   The static clone only has the desktop nav — no mobile hamburger variant.
   Hide the center nav links on mobile; keep logo (Left) + CTA (Right).
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .framer-xxwixa,
  .framer-15d22ku,
  .framer-1wilm9a,
  .framer-1v4jc4,
  .framer-1u1eqtj,
  .framer-1uzgi35,
  .framer-1m99cdn,
  .framer-1y7fg1h,
  .framer-x7jgdr,
  .framer-oywby8 {
    padding: 0 24px !important;
    position: relative !important;
    z-index: 6 !important;
  }
  nav.framer-ou8xH {
    max-width: 100% !important;
  }
  nav.framer-ou8xH .framer-4j4vvm {
    padding: 0 16px !important;
  }
  /* Hide center nav links and CTA on mobile */
  nav.framer-ou8xH .framer-1ni7j8s {
    display: none !important;
  }
  nav.framer-ou8xH .framer-112u9ki {
    display: none !important;
  }
  /* Ensure logo fits */
  nav.framer-ou8xH .framer-5q1umm {
    flex: 1 0 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile Hamburger Menu
   Injected by scripts.js on mobile viewports.
   -------------------------------------------------------------------------- */
/* Hamburger button: two lines, becomes X when open */
.mobile-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  padding: 14px;
  z-index: 10;
  flex-shrink: 0;
}
.mobile-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-hamburger span:first-child {
  margin-bottom: 6px;
}
.mobile-hamburger.open span:first-child {
  opacity: 0;
}
.mobile-hamburger.open span:last-child {
  transform: translateY(-4px);
}
/* Native Framer hamburger (Features page): collapse two lines into one dash */
[data-framer-name="Mobile icon"] .framer-1rup4we,
[data-framer-name="Mobile icon"] .framer-16ln8w7 {
  transition: top 0.3s ease !important;
}
[data-framer-name="Mobile icon"].open .framer-1rup4we,
[data-framer-name="Mobile icon"].open .framer-16ln8w7 {
  top: calc(50% - 0.5px) !important;
}
@media (max-width: 1023.98px) {
  .mobile-hamburger {
    display: block;
  }
}

/* Mobile menu overlay — full-screen, matches habi.app */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 28%, rgba(255, 255, 255, 0.07) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 40% 85%, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
    rgba(14, 14, 17, 0.98);
  z-index: 5;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-overlay.open {
  display: block;
}
.mobile-menu-content {
  display: flex;
  flex-direction: column;
  padding: 120px 32px 48px;
  min-height: 100%;
}

/* Download CTA at top */
.mobile-menu-overlay .mobile-menu-cta {
  display: inline-block;
  background: #fff;
  color: var(--surface-dark);
  padding: 14px 32px;
  border-radius: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  align-self: center;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}
.mobile-menu-overlay .mobile-menu-cta:hover {
  opacity: 0.85;
}

/* Divider lines */
.mobile-menu-divider {
  border: none;
  border-top: 1px solid var(--bg-hover);
  margin: 24px 0;
  width: 100%;
}

/* Section groups */
.mobile-menu-section {
  display: flex;
  flex-direction: column;
}
.mobile-menu-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.mobile-menu-section a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.6;
  transition: opacity 0.2s;
}
.mobile-menu-section a:hover {
  opacity: 0.7;
}

/* Social links at bottom */
.mobile-menu-social {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.mobile-menu-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  transition: opacity 0.2s;
}
.mobile-menu-social a:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Mobile: "Examples" Image Grid
   Desktop has 5 columns in a row — wrap into 2 columns on mobile.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .framer-jSJlD .framer-1oljpaz {
    overflow: hidden !important;
  }
  .framer-jSJlD .framer-fodszk {
    flex-wrap: wrap !important;
    gap: 12px !important;
    overflow: hidden !important;
    max-width: calc(100vw - 48px) !important;
    margin: 0 auto !important;
  }
  .framer-jSJlD .framer-fodszk > div {
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    min-width: 0 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
  }
}

/* Footer "Tools" link (not in Framer's generated class list) */
.framer-8dYlN .framer-tools-footer {
  white-space: pre;
  flex: none;
  width: auto;
  height: auto;
  position: relative;
}

/* --------------------------------------------------------------------------
   Mobile Footer Layout
   The Framer runtime would apply variant class .framer-v-1f30o6c on mobile
   to switch the footer from row to column. Since the runtime doesn't run,
   replicate those variant styles here.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  /* Stack footer columns vertically */
  .framer-8dYlN .framer-1ksnwjy {
    flex-direction: column !important;
    min-height: unset !important;
  }
  /* Logo column: full width */
  .framer-8dYlN .framer-u4jp5n {
    max-width: unset !important;
    flex: none !important;
    width: 100% !important;
    padding: 32px !important;
  }
  /* Links + description column: full width, stacked */
  .framer-8dYlN .framer-1gsg2v9 {
    min-width: unset !important;
    flex: none !important;
    width: 100% !important;
    height: min-content !important;
    padding: 0 32px 32px !important;
    gap: 40px !important;
    justify-content: flex-start !important;
  }
  /* Sitemap row */
  .framer-8dYlN .framer-dwycy3 {
    padding: 0 !important;
  }
  /* Sitemap link groups */
  .framer-8dYlN .framer-fpkhay,
  .framer-8dYlN .framer-zcq6xp {
    gap: 4px !important;
  }
  /* Bottom row: stack vertically */
  .framer-8dYlN .framer-8v2zua {
    flex-direction: column !important;
    align-content: flex-start !important;
    align-items: flex-start !important;
    gap: 40px !important;
  }
  /* Subscription/tagline comes first on mobile */
  .framer-8dYlN .framer-ozn9p4 {
    order: 0 !important;
    min-width: unset !important;
    flex: none !important;
    width: 100% !important;
  }
  /* Copyright comes second on mobile; needs full width to prevent text stacking */
  .framer-8dYlN .framer-by3e3a {
    order: 1 !important;
    flex: none !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Insights Category Tabs
   Desktop variant shows 3 horizontal pills; phone variant shows 1 dropdown
   button ("Category ↓").  On mobile, hide the desktop tab component and
   only show the phone variant.  JS clones the other tabs from Desktop into
   the Phone container and toggles the framer-v-123ywlg class to open/close.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  [data-framer-name^="Desktop:"].framer-Tk8cD {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  [data-framer-name^="Phone:"].framer-Tk8cD {
    display: none !important;
  }
}
/* Cloned tab options: hidden until dropdown opens */
.phone-tab-option {
  display: none !important;
}
[data-framer-name^="Phone:"].framer-Tk8cD.framer-v-123ywlg .phone-tab-option {
  display: flex !important;
}
/* Dropdown open state: appear above content */
[data-framer-name^="Phone:"].framer-Tk8cD.framer-v-123ywlg {
  z-index: 10 !important;
}

/* --------------------------------------------------------------------------
   Insight Cards Hover
   Border-radius 40px → 120px (matches Framer motion spring curve).
   -------------------------------------------------------------------------- */
.framer-A2f3D .framer-170ar9t {
  transition: border-radius 0.5s cubic-bezier(0.22, 0.87, 0.39, 0.94);
}
.framer-A2f3D.framer-18f0ttf:hover .framer-170ar9t {
  border-radius: 120px !important;
}

/* --------------------------------------------------------------------------
   Company: Team Photo Card Hover
   Border-radius 40px → 120px (matches Framer motion spring curve).
   Large founder cards (framer-ieXp7) and small team cards (framer-aazK3).
   -------------------------------------------------------------------------- */
.framer-ieXp7 .framer-3zbjjx,
.framer-aazK3 .framer-1e7gkn7,
.framer-FIKSy .framer-18bbht0 {
  transition: border-radius 0.5s cubic-bezier(0.22, 0.87, 0.39, 0.94);
}
.framer-ieXp7.framer-66dqtv:hover .framer-3zbjjx,
.framer-aazK3.framer-1amoo5p:hover .framer-1e7gkn7,
.framer-FIKSy.framer-5hckh1:hover .framer-18bbht0 {
  border-radius: 120px !important;
}

/* --------------------------------------------------------------------------
   Audio Play Button
   -------------------------------------------------------------------------- */
button[data-framer-name="Button"] {
  cursor: pointer;
  transition: transform 0.2s ease;
}
button[data-framer-name="Button"]:hover {
  transform: scale(1.05);
}
button[data-framer-name="Button"]:active {
  transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   Nav: Ghost Button Hover
   On habi.app, hovering a nav link shows a dark pill background.
   -------------------------------------------------------------------------- */
a[data-framer-name="Ghost"] {
  transition: background-color 0.3s ease !important;
}
a[data-framer-name="Ghost"]:hover {
  background-color: var(--border-subtle) !important;
}

/* --------------------------------------------------------------------------
   Button & Link Hover / Press
   Replicates the Framer data-highlight overlay brightness effect.
   -------------------------------------------------------------------------- */
[data-highlight="true"],
[data-framer-name="White"] {
  transition: filter 0.2s ease;
  cursor: pointer;
}
[data-highlight="true"]:hover,
[data-framer-name="White"]:hover {
  filter: brightness(0.85) !important;
}
[data-highlight="true"]:active,
[data-framer-name="White"]:active {
  filter: brightness(0.75) !important;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   Styles for dynamically injected answer paragraphs.
   -------------------------------------------------------------------------- */
.faq-answer p {
  font-family: var(--framer-font-family, Inter, sans-serif);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Tonner Card Hover  (Features: "One more thing" carousel)
   On hover the text+button slides up and the "Try now" button fades in.
   Default: .framer-ljp160 is at bottom:-88px (from Framer CSS).
   Hover:  bottom:0 reveals the hidden button area.
   -------------------------------------------------------------------------- */
.framer-1g17vfv-container .framer-ZrtQx.framer-hgxung .framer-ljp160 {
  transition: bottom 0.4s cubic-bezier(0.22, 0.87, 0.39, 0.94) !important;
}
.framer-1g17vfv-container .framer-ZrtQx.framer-hgxung:hover .framer-ljp160 {
  bottom: 0px !important;
}
.framer-1g17vfv-container .framer-ZrtQx .framer-k2mye9-container {
  transition: opacity 0.3s ease 0.1s !important;
}
.framer-1g17vfv-container .framer-ZrtQx.framer-hgxung:hover .framer-k2mye9-container {
  opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   Carousel Controls  (Features: "One more thing" arrows)
   JS moves the <fieldset> out of the overflow:hidden container to be a
   sibling after .framer-1g17vfv-container inside the "More" section.
   The original Framer fieldset is absolutely positioned (bottom:-96px),
   overlapping into the section's bottom padding.  Now that the arrows are
   in-flow flex children, reduce the bottom padding to compensate.
   -------------------------------------------------------------------------- */
.framer-r1lmy .framer-1ykonbb {
  padding-bottom: 96px !important;
}
@media (min-width: 1024px) and (max-width: 1299.98px) {
  .framer-r1lmy .framer-1ykonbb { padding-bottom: 56px !important; }
}
@media (max-width: 1023.98px) {
  .framer-r1lmy .framer-1ykonbb { padding-bottom: 40px !important; }
}
.framer-1ykonbb > fieldset.framer--slideshow-controls {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  inset: auto !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}
.framer-1ykonbb > fieldset.framer--slideshow-controls > div {
  position: relative !important;
  display: flex !important;
  gap: 8px !important;
  inset: auto !important;
  pointer-events: auto !important;
}
.framer-1ykonbb > fieldset.framer--slideshow-controls button {
  cursor: pointer !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}
.framer-1ykonbb > fieldset.framer--slideshow-controls button:hover {
  transform: scale(1.08) !important;
}
.framer-1ykonbb > fieldset.framer--slideshow-controls button:active {
  transform: scale(0.95) !important;
  opacity: 0.8 !important;
}

/* --------------------------------------------------------------------------
   Company Page – Founder card links
   -------------------------------------------------------------------------- */
.framer-lexoiv-container > a,
.framer-r4n4oy-container > a {
  cursor: pointer !important;
}

/* --------------------------------------------------------------------------
   Article Cover Image — match text content width
   -------------------------------------------------------------------------- */
.framer-1jUhT .framer-y6gqaf {
  max-width: 640px !important;
}

/* --------------------------------------------------------------------------
   Author Profile Pages
   Author pages reuse the article template breakpoints (ggtqpm/5v68jj/f3x2n3).
   -------------------------------------------------------------------------- */
.author-hero img {
  border-radius: 50% !important;
}

/* Ensure author bio paragraphs have proper spacing */
.author-bio p {
  margin-bottom: 16px !important;
}

/* --------------------------------------------------------------------------
   Install Tray (Sticky Footer CTA)
   -------------------------------------------------------------------------- */
.install-tray {
  display: none;
}

@media (max-width: 1023.98px) {
  .install-tray {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(540px, 94vw);
    background: rgba(14, 15, 17, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 10px 16px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 20;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .install-tray.hidden {
    opacity: 0;
    transform: translate(-50%, calc(100% + 40px));
    pointer-events: none;
  }
  .tray-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-height: 44px;
  }
  .tray-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .tray-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
  }
  .tray-info strong {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
  }
  .tray-info small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.3;
  }
  .tray-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
  }
  .tray-get {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #007AFF;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    padding: 4px 18px;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }
  .tray-price {
    position: absolute;
    top: 100%;
    margin-top: 3px;
    color: #8E8E93;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .install-tray {
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 20px;
  }
  .tray-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .tray-info strong {
    font-size: 14px;
  }
  .tray-info small {
    font-size: 12px;
  }
}

/* ==========================================================================
   Tools Hub & Tool Pages
   ========================================================================== */

/* --- Hub Listing Grid --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tool-card:hover {
  background: var(--bg-subtle);
  border-color: var(--border-default);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.tool-card-icon {
  font-size: 32px;
  line-height: 1;
}
.tool-card-title {
  font-family: 'Inter Display', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.tool-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1023.98px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .tool-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Tool Page Wrapper --- */
.tool-page { padding-bottom: 40px; }
.tool-page h1 {
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.tool-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  line-height: 1.5;
}
/* .tool-back removed — tool pages now use .article-breadcrumbs */

/* --- Interactive Tool Container (non-pomo tools) --- */
.tool-app {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px 32px;
  margin-bottom: 48px;
}
@media (max-width: 599px) {
  .tool-app { padding: 28px 20px; }
}

/* ==========================================================================
   Pomodoro Timer – Immersive Focus App
   ========================================================================== */

/* --- Phase Tokens --- */
.pomo-app {
  --pomo-focus-from: #6C5CE7;
  --pomo-focus-to: #956aff;
  --pomo-rest-from: #00b894;
  --pomo-rest-to: #4cd9a0;
  --pomo-ring: var(--pomo-focus-to);
  --pomo-grad-from: var(--pomo-focus-from);
  --pomo-grad-to: var(--pomo-focus-to);
}
.pomo-app[data-phase="rest"] {
  --pomo-ring: var(--pomo-rest-to);
  --pomo-grad-from: var(--pomo-rest-from);
  --pomo-grad-to: var(--pomo-rest-to);
}

/* --- App Container --- */
.pomo-app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter Display', sans-serif;
}

/* Header & footer inside sidebar — render as mobile variant */

.pomo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--pomo-grad-from), var(--pomo-grad-to));
  transition: background 0.8s ease;
  z-index: 0;
}

/* --- Screens --- */
.pomo-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(20px);
}
.pomo-screen.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateX(0);
  flex: 1;
}

/* --- Top Bar --- */
.pomo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  z-index: 10;
}
.pomo-topbar-right {
  display: flex;
  gap: 8px;
}
.pomo-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 40px;
  color: #fff;
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  line-height: 1;
}
.pomo-pill:hover { background: rgba(255,255,255,0.25); }
.pomo-pill-accent {
  background: rgba(255,255,255,0.9);
  color: var(--pomo-grad-from);
}
.pomo-pill-accent:hover { background: #fff; }

/* --- Timer Body --- */
.pomo-timer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px 40px;
  gap: 8px;
}
.pomo-session-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
  padding: 4px 14px;
  border-radius: 20px;
}
.pomo-phase-label {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

/* --- Ring --- */
.pomo-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(200px, 55vw, 280px);
  height: clamp(200px, 55vw, 280px);
  margin: 12px 0;
}
.pomo-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#ring-hit-group path {
  fill: transparent;
  stroke: none;
  cursor: pointer;
  pointer-events: fill;
}
#ring-bg-group path {
  fill: none;
  stroke: rgba(255,255,255,0.15);
  stroke-width: 8;
  stroke-linecap: round;
  transform-origin: 100px 100px;
  transition: transform 0.15s ease, stroke 0.3s ease;
  pointer-events: none;
}
#ring-bg-group path.completed {
  stroke: rgba(255,255,255,0.5);
}
#ring-bg-group path.active {
  stroke: rgba(255,255,255,0.25);
}
#ring-bg-group path.hovered {
  transform: scale(1.06);
}
.pomo-ring-fg {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  pointer-events: none;
  transform-origin: 100px 100px;
  transition: transform 0.15s ease;
}
.pomo-ring-fg.hovered {
  transform: scale(1.06);
}
#ring-dot {
  filter: drop-shadow(0 0 4px rgba(94,237,204,0.6));
  pointer-events: none;
}
.pomo-ring-mascot {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
}
.pomo-ring-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.pomo-ring-badge {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* --- Countdown --- */
.pomo-countdown {
  font-family: 'Inter Display', ui-monospace, 'SF Mono', monospace;
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

/* --- Play Button --- */
.pomo-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pomo-grad-from);
  transition: transform 0.15s, box-shadow 0.2s, color 0.8s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  margin-top: 12px;
}
.pomo-play-btn:hover { transform: scale(1.06); }
.pomo-play-btn:active { transform: scale(0.96); }

/* --- Sound Popover --- */
.pomo-sound-popover {
  position: absolute;
  top: 64px;
  right: 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 16px;
  z-index: 20;
  display: none;
  min-width: 220px;
}
.pomo-sound-popover.open { display: block; }
.pomo-sound-popover .pomo-sound-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.pomo-sound-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pomo-sound-pill {
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter Display', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.pomo-sound-pill:hover { background: rgba(255,255,255,0.2); color: #fff; }
.pomo-sound-pill.active {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.pomo-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.pomo-volume-row svg { flex-shrink: 0; color: rgba(255,255,255,0.5); }
.pomo-volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
}
.pomo-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}
.pomo-volume-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* --- Shortcuts Hint --- */
.pomo-shortcuts {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
  z-index: 5;
}
.pomo-shortcuts kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-family: 'Inter Display', ui-monospace, monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin: 0 2px;
}

/* --- Editor Sheet (iPad-style bottom sheet) --- */
.pomo-editor-screen {
  position: absolute;
  inset: auto 0 0 0;
  max-height: 85%;
  border-radius: 20px 20px 0 0;
  background: var(--token-570b2f2b-e7a3-4440-a1b5-6d52ceddedc1, #0e0e11);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pomo-editor-screen.active {
  position: absolute;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  flex: initial;
}
.pomo-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 19;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pomo-editor-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
/* Drag handle */
.pomo-editor-screen .pomo-topbar::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 8px auto 0;
}

.pomo-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pomo-total-time {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 8px 0 20px;
  letter-spacing: -0.02em;
}

/* Session cards in editor */
.pomo-sessions-list {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pomo-session-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  overflow: hidden;
}
.pomo-session-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 0;
}
.pomo-session-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.pomo-session-delete {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.pomo-session-delete:hover { color: #ff6b6b; background: rgba(255,107,107,0.15); }
.pomo-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.pomo-session-row + .pomo-session-row {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.pomo-session-row-label {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.pomo-session-row-value {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s;
  min-width: 48px;
  text-align: center;
}
.pomo-session-row-value:hover { background: rgba(255,255,255,0.12); }
.pomo-session-row-input {
  width: 56px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter Display', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.pomo-session-row-input::-webkit-inner-spin-button,
.pomo-session-row-input::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* --- Bottom Tabs --- */
.pomo-bottom-tabs {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
  padding: 0 0 env(safe-area-inset-bottom, 0);
}
.pomo-tab {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  text-align: center;
}
.pomo-tab:hover { color: rgba(255,255,255,0.7); }
.pomo-tab.active { color: #fff; }

/* --- Tab Panels --- */
.pomo-tab-panel {
  display: none;
  width: 100%;
  max-width: 480px;
}
.pomo-tab-panel.active { display: block; }

/* --- Audio Panel --- */
.pomo-audio-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.pomo-audio-panel .pomo-sound-pills {
  justify-content: center;
}
.pomo-audio-panel .pomo-volume-row {
  max-width: 240px;
  margin: 0 auto;
}

/* --- Preset Cards --- */
.pomo-presets-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.pomo-preset-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pomo-preset-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}
.pomo-preset-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.pomo-preset-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.pomo-preset-card-time {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.pomo-preset-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* --- Scroll Hint --- */
.pomo-scroll-hint {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px 0 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.2s;
}
.pomo-scroll-hint:hover { color: rgba(255,255,255,0.7); }

/* --- SEO zone below app --- */
.pomo-seo { margin-top: 0; padding-top: 24px; }

/* --- Layout: sidebar (left) + full-width app (right) --- */
/* How it works:
   1. The page HTML follows the same Framer skeleton as article pages:
      [data-framer-root] > .framer-1y7fg1h (header) + .framer-kguvdh (main) + .framer-1a2f60s (footer)
   2. Inside .framer-kguvdh, instead of <article>, there's a .pomo-layout with:
      <aside class="pomo-sidebar"> (SEO content) + <section class="pomo-app"> (timer)
   3. An inline <script> moves the header & footer into .pomo-sidebar-inner so they
      scroll with the sidebar. The originals are hidden via :has() selectors below.
   4. CSS forces the phone SSR variant to render inside the sidebar at all widths,
      and overrides Framer's desktop padding/max-width so everything fits in 400px. */
/* Hide original header/footer — JS moves them into sidebar */
.framer-ggtqpm:has(.pomo-layout) > .framer-1y7fg1h { display: none; }
.framer-ggtqpm:has(.pomo-layout) > .framer-kguvdh ~ .framer-1a2f60s { display: none; }
.framer-ggtqpm:has(.pomo-layout) > .framer-kguvdh ~ .framer-1jmm78i { display: none; }

.pomo-layout {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
}
.pomo-layout .pomo-app {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}
.pomo-sidebar {
  width: 400px;
  min-width: 400px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: width 0.3s ease, min-width 0.3s ease;
}
.pomo-sidebar:not(.open) {
  width: 0;
  min-width: 0;
  overflow: hidden;
}
.pomo-sidebar-inner {
  width: 400px;
  position: relative;
  background: var(--token-570b2f2b-e7a3-4440-a1b5-6d52ceddedc1, #0e0e11);
}
.pomo-sidebar-inner .article-wrapper {
  padding: 24px 24px 48px;
}
.pomo-sidebar-toggle {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--token-570b2f2b-e7a3-4440-a1b5-6d52ceddedc1, #0e0e11);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.pomo-sidebar-toggle:hover { color: #fff; }
.pomo-sidebar:not(.open) .pomo-sidebar-toggle {
  right: -32px;
}

/* Force phone-variant header styles inside sidebar */
.pomo-sidebar-inner nav.framer-v5jef7 {
  width: 100% !important;
  height: 80px !important;
  padding: 12px 0 0 !important;
  overflow: visible !important;
}
.pomo-sidebar-inner .framer-4j4vvm {
  padding: 0 8px 0 24px !important;
  max-width: none !important;
  height: 56px !important;
}

/* Force footer/header containers to fill sidebar width */
.pomo-sidebar-inner > .framer-1a2f60s {
  display: block !important;
  padding: 24px 0 0 !important; /* override desktop 80px side padding */
}
.pomo-sidebar-inner > .framer-1y7fg1h {
  display: block !important;
  padding: 0 !important; /* override desktop 80px side padding */
  position: relative !important;
  top: unset !important;
  z-index: 30 !important; /* stay above mobile-menu-overlay (z:20) */
}
.pomo-sidebar-inner .framer-143pacg-container,
.pomo-sidebar-inner .framer-6uxdyf-container { width: 100% !important; max-width: none !important; }

/* Force phone-variant footer styles inside sidebar */
.pomo-sidebar-inner footer.framer-p42k7t { width: 100% !important; }
.pomo-sidebar-inner .framer-1ksnwjy { flex-direction: column !important; min-height: auto !important; }
.pomo-sidebar-inner .framer-u4jp5n { max-width: unset !important; flex: none !important; width: 100% !important; padding: 24px !important; }
.pomo-sidebar-inner .framer-1gsg2v9 { align-self: unset !important; height: min-content !important; min-width: unset !important; flex: none !important; justify-content: flex-start !important; gap: 32px !important; width: 100% !important; padding: 0 24px 24px !important; }
.pomo-sidebar-inner .framer-dwycy3 { flex-flow: row wrap !important; gap: 24px !important; padding: 0 !important; }
.pomo-sidebar-inner .framer-fpkhay,
.pomo-sidebar-inner .framer-zcq6xp { gap: 4px !important; width: auto !important; min-width: 0 !important; }
.pomo-sidebar-inner .framer-8v2zua { flex-direction: column !important; align-content: flex-start !important; align-items: flex-start !important; gap: 32px !important; }
.pomo-sidebar-inner .framer-by3e3a { flex: none !important; order: 1 !important; width: 100% !important; padding: 0 !important; }
.pomo-sidebar-inner .framer-ozn9p4 { min-width: unset !important; flex: none !important; order: 0 !important; width: 100% !important; max-width: none !important; }

/* Constrain mobile menu overlay to sidebar */
.pomo-sidebar-inner .mobile-menu-overlay {
  left: 0 !important;
  right: auto !important;
  width: 400px !important;
  z-index: 20;
  background: rgb(14, 14, 17) !important; /* fully opaque so article text doesn't bleed through */
}

/* When menu overlay is open, morph hamburger ≡ into minus — */
.pomo-sidebar-inner:has(.mobile-menu-overlay.open) .framer-1rup4we,
.pomo-sidebar-inner:has(.mobile-menu-overlay.open) .framer-16ln8w7 {
  top: calc(50% - 0.5px) !important;
  transition: top 0.2s ease;
}

/* Force mobile (phone) Framer ssr-variant inside sidebar at ALL screen sizes.
   Only the phone variant (hidden-5v68jj + hidden-ggtqpm) should render;
   desktop and tablet variants are suppressed. Base rules with !important
   override Framer's breakpoint-based hiding — no media-query copies needed. */
.pomo-sidebar-inner .ssr-variant.hidden-5v68jj.hidden-ggtqpm { display: contents !important; }
.pomo-sidebar-inner .ssr-variant.hidden-5v68jj.hidden-f3x2n3 { display: none !important; }
.pomo-sidebar-inner .ssr-variant.hidden-f3x2n3.hidden-ggtqpm { display: none !important; }

@media (min-width: 1024px) {
  .pomo-scroll-hint { display: none; }
}

/* --- Mobile: sidebar as drawer overlay (Flowbite pattern) --- */
.pomo-drawer-backdrop {
  display: none;
}
@media (max-width: 767px) {
  .pomo-layout { position: relative; }
  .pomo-layout .pomo-app { width: 100%; min-width: 100%; }
  .pomo-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 80%; min-width: 0;
    max-width: 360px;
    height: 100dvh;
    z-index: 50;
    border-right: none;
    background: var(--token-570b2f2b-e7a3-4440-a1b5-6d52ceddedc1, #0e0e11);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .pomo-sidebar:not(.open) {
    width: 80%; min-width: 0; max-width: 360px;
    overflow-y: auto;
  }
  .pomo-sidebar.open {
    transform: translateX(0);
  }
  .pomo-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .pomo-sidebar.open ~ .pomo-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .pomo-sidebar-inner { width: 100%; }
  .pomo-sidebar-toggle { display: none; }
}

/* --- Desktop --- */
@media (min-width: 600px) {
  .pomo-ring-wrap {
    width: clamp(280px, 30vw, 340px);
    height: clamp(280px, 30vw, 340px);
  }
  .pomo-countdown { font-size: clamp(64px, 8vw, 96px); }
  .pomo-play-btn { width: 80px; height: 80px; }
  .pomo-pill { padding: 10px 20px; }
  .pomo-ring-mascot { width: 140px; height: 140px; }
  .pomo-presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pomo-editor-screen .pomo-editor-body { align-items: center; }
}

/* --- Mobile --- */
@media (max-width: 599px) {
  .pomo-pill { padding: 8px 14px; font-size: 13px; }
  .pomo-shortcuts { display: none; }
  .pomo-topbar { padding: 12px 14px; }
  .pomo-timer-body { padding: 0 14px 32px; }
  .pomo-ring-badge { font-size: 12px; padding: 3px 10px; }
}

/* --- Two-Column Tool Layout --- */
/* Override Framer's overflow:hidden on .framer-kguvdh so sticky sidebar works */
.framer-1jUhT .framer-kguvdh:has(.tool-layout),
.framer-1jUhT .framer-kguvdh:has(.pomo-layout) {
  overflow: visible !important;
}
/* Stretch pomo-layout to full width (Framer default is align-items:center) */
.framer-1jUhT .framer-kguvdh:has(.pomo-layout) {
  align-items: stretch !important;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 0;
  align-items: start;
}
.tool-article { min-width: 0; }
.tool-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-bottom: 48px;
}

/* --- Inline CTA (all tool pages) --- */
.tool-inline-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  margin: 32px 0;
}
.tool-inline-cta .cta-icon { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.tool-inline-cta .cta-body { flex: 1; }
.tool-inline-cta .cta-body strong { display: block; font-size: 16px; color: var(--text-primary); margin-bottom: 4px; }
.tool-inline-cta .cta-body span { font-size: 14px; color: var(--text-secondary); }
.tool-inline-cta .cta-badge { flex-shrink: 0; }

/* --- Sidebar CTA --- */
.tool-sidebar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.2s;
}
.tool-sidebar-cta:hover { background: var(--bg-subtle); }
.tool-sidebar-cta img:first-child { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.tool-sidebar-cta .cta-text { flex: 1; }
.tool-sidebar-cta .cta-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.tool-sidebar-cta .cta-text span { font-size: 12px; color: var(--text-muted); }

@media (max-width: 1023px) {
  .tool-layout { grid-template-columns: 1fr; gap: 32px; }
  .tool-sidebar { position: relative; top: auto; order: -1; }
}
@media (max-width: 767px) {
  .tool-inline-cta { flex-direction: column; text-align: center; gap: 12px; }
}
/* Inside pomo sidebar the CTA is always narrow — stack vertically */
.pomo-sidebar .tool-inline-cta {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}


/* --- Streak / Result Cards --- */
.result-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.result-value {
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.result-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 599px) {
  .result-grid { grid-template-columns: 1fr; }
}

/* --- Milestone Badges --- */
.milestone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.3s;
}
.milestone-badge.reached {
  background: rgba(149, 106, 255, 0.15);
  border-color: rgba(149, 106, 255, 0.3);
  color: var(--color-accent);
}

/* --- Slider Input --- */
.tool-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 3px;
  outline: none;
  margin: 16px 0;
}
.tool-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--surface-dark);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.tool-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--surface-dark);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.slider-value {
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1;
}
.slider-value small {
  font-size: 0.4em;
  font-weight: 400;
  color: var(--text-muted);
}

/* --- Stat Cards (Screen Time) --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.stat-card-value {
  font-family: 'Inter Display', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.stat-card-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-card-shock {
  background: rgba(255, 69, 58, 0.1);
  border-color: rgba(255, 69, 58, 0.2);
}
.stat-card-shock .stat-card-value {
  color: #ff453a;
}
@media (max-width: 599px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* --- Morning Routine Builder --- */
.routine-templates {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.routine-template-btn {
  padding: 8px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.routine-template-btn:hover,
.routine-template-btn.active {
  background: rgba(149, 106, 255, 0.12);
  border-color: rgba(149, 106, 255, 0.3);
  color: var(--color-accent);
}
.routine-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-faint);
  border: 1px dashed var(--border-subtle);
  border-radius: 16px;
  min-height: 60px;
}
.routine-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  cursor: grab;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  user-select: none;
  -webkit-user-select: none;
}
.routine-block:active { cursor: grabbing; }
.routine-block:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
}
.routine-block .block-emoji { font-size: 18px; }
.routine-block .block-dur {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.routine-timeline {
  min-height: 80px;
  padding: 20px;
  background: var(--bg-faint);
  border: 1px dashed var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 16px;
  position: relative;
}
.routine-timeline.drag-over {
  border-color: var(--color-accent);
  background: rgba(149, 106, 255, 0.04);
}
.routine-timeline-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px;
}
.routine-timeline-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.routine-timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: grab;
}
.routine-timeline-item:active { cursor: grabbing; }
.routine-timeline-item .item-time {
  font-family: 'Inter Display', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 48px;
}
.routine-timeline-item .item-emoji { font-size: 20px; }
.routine-timeline-item .item-name {
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
}
.routine-timeline-item .item-dur-input {
  width: 48px;
  padding: 4px 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: 'Inter Display', sans-serif;
  font-size: 13px;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.routine-timeline-item .item-dur-input::-webkit-inner-spin-button,
.routine-timeline-item .item-dur-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.routine-timeline-item .item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  transition: color 0.2s;
}
.routine-timeline-item .item-remove:hover { color: #ff453a; }
.routine-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
}
.routine-total strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Checkbox toggle --- */
.tool-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}
.tool-toggle label {
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch.on {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch.on::after {
  transform: translateX(20px);
}
