@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&family=Cinzel:wght@600;700&display=swap');
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: var(--phrond-sundial-gold);
  text-decoration: none;
}

a:visited {
  color: var(--phrond-sundial-gold);
}

[hidden] {
  display: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--phrond-text-muted);
  opacity: 1;
}

html {
  color-scheme: dark;
  background-color: var(--phrond-bg);
  color: var(--phrond-text-primary);
  font-family: var(--phrond-font-body);
  font-size: 106.25%;
  -webkit-font-smoothing: antialiased;
}
/* Site background - Deep obsidian midnight green */
body {
  min-height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #020603;
  position: relative;
  overflow-x: hidden;
}
main {
  min-width: 0;
  width: 100%;
}
/* Background Watermark schematic vector overlay */
.bg-schematic-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  overflow: hidden;
}
.page-cog-background {
  display: block;
  height: auto;
  left: -30px;
  opacity: 1;
  top: 50px;
  width: 72vw;
}
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 3rem;
}
/* --- FULL SCREEN WIDTH Sticky Header with VERY DARK Emerald Gradient & #79715F Single Line Bottom Border --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: linear-gradient(180deg, #07190e 0%, #030a05 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--phrond-tile-border);
  /* #79715F single line bottom border */
  padding: 0.75rem 2rem;
  margin-bottom: 2.5rem;
}
.site-header-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-width: 0;
}
/* Carved Phrond Title - Sundial Gold #D8CAAC */
.brand-title {
  font-family: var(--phrond-font-brand);
  font-size: 2.75rem;
  color: var(--phrond-sundial-gold);
  /* #D8CAAC */
  text-shadow: -1px -1px 0 #000, 1px 1px 2px rgba(0,0,0,0.85);
  letter-spacing: 0.05em;
}
.brand-product-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-product-separator {
  color: var(--phrond-tile-border);
  font-family: var(--phrond-font-body);
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
}
.brand-product-name {
  color: var(--phrond-text-muted);
  font-family: var(--phrond-font-title);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}
body[data-fern-product="draw"] {
  --phrond-highlight: #5A7EA8;
  --phrond-highlight-hover: #8BA9CE;
}
body[data-fern-product="inspire"] {
  --phrond-highlight: #3D9B91;
  --phrond-highlight-hover: #63B9AF;
}
body[data-fern-product="flourish"] {
  --phrond-highlight: #7a9c65;
  --phrond-highlight-hover: #aac49b;
}
body[data-fern-product="layout"] {
  --phrond-highlight: #7B5F98;
  --phrond-highlight-hover: #7B5F98;
}
body[data-fern-product="about"] .brand-product-name,
body[data-fern-product="pricing"] .brand-product-name,
body[data-fern-product="beta"] .brand-product-name {
  color: var(--phrond-text-muted);
}
body[data-fern-product="publish"] .brand-product-name {
  color: #d97706;
}
body[data-fern-product="draw"] .brand-product-name,
body[data-fern-product="inspire"] .brand-product-name,
body[data-fern-product="flourish"] .brand-product-name {
  color: var(--phrond-highlight);
}
body[data-fern-product="layout"] .brand-product-name {
  color: var(--phrond-highlight-hover);
}
body[data-fern-product="draw"] .fern-cta-row .fern-button,
body[data-fern-product="inspire"] .fern-cta-row .fern-button,
body[data-fern-product="flourish"] .fern-cta-row .fern-button {
  border-color: var(--phrond-highlight);
}
body[data-fern-product="layout"] .fern-cta-row .fern-button {
  border-color: var(--phrond-highlight);
}
body[data-fern-product="draw"] .fern-cta-row .fern-button:hover,
body[data-fern-product="inspire"] .fern-cta-row .fern-button:hover,
body[data-fern-product="flourish"] .fern-cta-row .fern-button:hover {
  border-color: var(--phrond-highlight-hover);
}
body[data-fern-product="layout"] .fern-cta-row .fern-button:hover {
  border-color: var(--phrond-highlight-hover);
}
/* --- Navigation Links --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.site-nav > a, .site-nav .site-nav-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  color: var(--phrond-text-primary);
  font-size: 1.05rem;
  font-weight: 400;
  transition: color 150ms ease, opacity 150ms ease;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 1;
}

@media (min-width: 769px) and (max-width: 820px) {
  .site-header {
    padding-inline: 1rem;
  }

  .brand-product-lockup {
    gap: 0.55rem;
  }

  .brand-title {
    font-size: 2.25rem;
  }

  .brand-product-separator {
    font-size: 1.35rem;
  }

  .brand-product-name {
    font-size: 1.05rem;
  }

  .site-nav {
    gap: 0.55rem;
  }

  .site-nav > a,
  .site-nav .site-nav-btn {
    min-height: 2rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.92rem;
  }
}
.site-nav > a:visited,
.site-nav .site-nav-btn:visited {
  color: var(--phrond-text-primary);
}
.site-nav > a:hover, .site-nav .site-nav-btn:hover {
  color: var(--phrond-sundial-gold);
  /* #D8CAAC hover */
  opacity: 1;
}
.nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  position: relative;
  top: 0.12em;
  vertical-align: middle;
  border-left: 0.32rem solid transparent;
  border-right: 0.32rem solid transparent;
  border-top: 0.42rem solid currentColor;
}
/* --- Dropdown Menu with ZERO GAP Bridge Pseudo-element & Ample Padding --- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu,
.fern-menu-panel {
  background: #1a1e1b;
  border: 1px solid var(--phrond-tile-border);
  border-radius: 6px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.95);
  padding: 0.45rem 0.35rem;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  width: max-content;
  display: none;
  z-index: 300;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
.nav-dropdown-menu form {
  margin: 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.dropdown-item,
.fern-menu-item {
  display: block;
  padding: 0.55rem 14px;
  color: var(--phrond-text-primary);
  font-size: 1.05rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color 150ms ease;
}
.dropdown-item {
  border-radius: 4px;
}
.nav-dropdown-menu button.dropdown-item {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.55rem 14px;
  border: 0;
  border-radius: 4px;
  background: transparent !important;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: inherit;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}
.dropdown-item:visited,
.fern-menu-item:visited {
  color: var(--phrond-text-primary);
}
.dropdown-item:hover,
.dropdown-item:focus-visible,
.fern-menu-item:hover,
.fern-menu-item:focus-visible {
  color: var(--phrond-sundial-gold);
}
.nav-dropdown-menu form button.dropdown-item:hover,
.nav-dropdown-menu form button.dropdown-item:focus-visible {
  background: transparent !important;
  color: var(--phrond-sundial-gold);
}
.nav-dropdown-menu form .account-menu-submit {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.55rem 14px;
  border-radius: 4px;
  color: var(--phrond-text-primary);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.nav-dropdown-menu form .account-menu-submit:hover,
.nav-dropdown-menu form .account-menu-submit:focus-visible {
  background: transparent !important;
  color: var(--phrond-sundial-gold);
}
/* --- Mobile Hamburger Toggle Button & Responsive Styles --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 210;
}
.hamburger-bar {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--phrond-text-primary);
  border-radius: 2px;
  transition: all 200ms ease;
}
body[data-fern-product="publish"] .hamburger-bar {
  background-color: #d97706;
}
@media (max-width: 768px) {
  .page-shell {
    width: calc(100% - 2rem);
  }
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-title {
    font-size: 2.1rem;
  }
  .brand-product-lockup {
    gap: 0.45rem;
    min-width: 0;
  }
  .brand-product-name {
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-menu-toggle {
    display: flex;
    flex: 0 0 auto;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #09190e 0%, #040d07 100%);
    border-bottom: 1px solid var(--phrond-tile-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95);
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-dropdown {
    width: 100%;
  }
  .site-nav-btn {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
    background: var(--phrond-tile-bg);
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.is-open > .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu::before {
    display: none;
  }
}
/* --- EMPTY FULL-WIDTH PANEL ABOVE PRIMARY TILES --- */
.fern-panel {
  background: var(--phrond-tile-bg);
  border: 1px solid var(--phrond-tile-border);
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  padding: 1.75rem;
}
.hero-top-panel {
  min-height: 140px;
  margin-bottom: 1.75rem;
}
.home-intro-panel {
  display: grid;
  align-content: center;
  gap: 0.65rem;
}
.home-intro-panel .fern-muted {
  margin: 0;
}
.home-intro-panel h1 {
  max-width: 18ch;
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-title);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
}
.home-intro-panel > p:last-child {
  max-width: 72ch;
  width: 100%;
  color: var(--phrond-text-primary);
  line-height: 1.65;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* --- TOOL LANDING PAGE HERO BANNER WITH FULL WIDTH IMAGE & FADE --- */
.fern-hero-container {
  width: 100%;
  margin-top: -2.5rem;
  /* Pull up under header */
  margin-bottom: 2rem;
}
.fern-hero-banner {
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
/* Product hero banner background image mappings */
body[data-fern-product="draw"] .fern-hero-banner {
  background-image: url('/styles/assets/draw.jpg');
}
body[data-fern-product="publish"] .fern-hero-banner {
  background-image: url('/styles/assets/publish.jpg');
}
body[data-fern-product="launch"] .fern-hero-banner {
  background-image: url('/styles/assets/launch.jpg');
}
body[data-fern-product="flourish"] .fern-hero-banner {
  background-image: url('/styles/assets/flourish.jpg');
}
body[data-fern-product="inspire"] .fern-hero-banner {
  background-image: url('/styles/assets/style.jpg');
}
body[data-fern-product="layout"] .fern-hero-banner {
  background-image: url('/styles/assets/layout.jpg');
}
body[data-fern-product="about"] .fern-hero-banner {
  background-image: url('/styles/assets/about.jpg');
}
.fern-hero-overlay {
  width: 100%;
  background: linear-gradient(180deg, rgba(3, 7, 4, 0.25) 0%, rgba(3, 7, 4, 0.75) 65%, #030704 100%);
  padding: 7.5rem 0 1rem;
}
.fern-hero-overlay .page-shell {
  padding-bottom: 0;
}
.fern-text-panel {
  margin-bottom: 1.25rem;
}
.fern-muted {
  color: var(--phrond-text-subtle);
}
.fern-text-panel h1 {
  font-family: var(--phrond-font-title);
  font-size: 2.4rem;
  color: var(--phrond-sundial-gold);
  margin-bottom: 0.5rem;
}
.fern-text-panel p.fern-lead {
  color: var(--phrond-text-primary);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}
.fern-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}
@media (max-width: 650px) {
  .fern-grid-3 {
    grid-template-columns: 1fr;
  }
}
.dark-card {
  background: #1c201d;
  border: 1px solid var(--phrond-tile-border);
  border-radius: 6px;
  padding: 1.25rem;
}
.dark-card h2 {
  font-family: var(--phrond-font-title);
  font-size: 1.15rem;
  color: var(--phrond-sundial-gold);
  margin-bottom: 0.4rem;
}
.dark-card p {
  color: var(--phrond-text-primary);
  font-size: 0.95rem;
}
.fern-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fern-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  background: var(--phrond-button-bg);
  border: 1px solid var(--phrond-tile-border);
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-title);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 150ms ease;
}
.fern-button:hover {
  background: rgba(216, 202, 172, 0.15);
  border-color: #9e947d;
}
/* Publish keeps its restrained orange accent within the shared landing theme. */
body[data-fern-product="publish"] .fern-text-panel > .fern-muted {
  color: #d97706;
}
body[data-fern-product="publish"] .fern-text-panel h1 {
  font-family: var(--phrond-font-title);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body[data-fern-product="publish"] .fern-text-panel > .fern-muted {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body[data-fern-product="publish"] .fern-text-panel .fern-button {
  color: #fef3c7;
  border-color: #b45309;
}
body[data-fern-product="publish"] .fern-text-panel .fern-button:hover {
  border-color: #d97706;
}
body[data-fern-product="publish"] .product-supporting-section > h2 {
  margin-bottom: 1.25rem;
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-title);
}
body[data-fern-product="flourish"] .publish-steps li::before {
  background: var(--phrond-highlight);
}
body[data-fern-product="flourish"] .product-supporting-section > h2 {
  margin-bottom: 1.25rem;
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-title);
}
body[data-fern-product="flourish"] .publish-steps li strong {
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-title);
}
body[data-fern-product="publish-help"],
body[data-fern-product="draw-help"] {
  background: var(--phrond-bg);
  color: var(--phrond-text-primary);
}
body[data-fern-product="publish-help"] .brand-product-name {
  color: #d97706;
}
.help-page {
  display: grid;
  grid-template-columns: 12rem minmax(0, 42rem);
  gap: 3rem;
  max-width: 64rem;
  min-height: calc(100vh - 10rem);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  background: var(--phrond-bg);
}
.help-topics {
  align-self: start;
  position: sticky;
  top: 2rem;
}
.help-topics h1,
.help-content h2 {
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-body);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}
.help-topics h1 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}
.help-eyebrow {
  margin-bottom: 0.5rem;
  color: var(--phrond-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.help-topics nav {
  display: grid;
  gap: 0.65rem;
}
.help-topics a,
.help-back-link {
  color: var(--phrond-sundial-gold);
  font-size: 0.9rem;
}
.help-topics a:hover,
.help-topics a:visited,
.help-back-link:hover,
.help-back-link:visited {
  color: var(--phrond-highlight-hover);
}
.help-back-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
}
.help-content {
  min-width: 0;
}
.help-content header {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.help-content h2 {
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}
.help-content header h2 {
  font-size: 2rem;
}
.help-intro {
  color: var(--phrond-text-muted);
  font-size: 1.05rem;
}
.help-content section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.help-content p,
.help-content li {
  max-width: 42rem;
  color: var(--phrond-text-primary);
  line-height: 1.65;
}
.help-content p + p {
  margin-top: 0.9rem;
}
.help-content ul {
  padding-left: 1.25rem;
}
.help-content code {
  padding: 0.1rem 0.25rem;
  background: var(--phrond-chassis-bg);
  color: var(--phrond-text-primary);
  font-size: 0.9em;
}
body[data-fern-product="publish-help"] .site-footer a,
body[data-fern-product="draw-help"] .site-footer a {
  color: var(--phrond-text-muted);
}
@media (max-width: 760px) {
  .help-page {
    display: block;
    padding-top: 2rem;
  }
  .help-topics {
    position: static;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .help-content {
    padding-top: 1rem;
  }
}
.publish-steps {
  margin-top: 1.5rem;
  list-style: none;
  counter-reset: publish-step-counter;
}
.publish-steps li {
  position: relative;
  min-height: 100%;
  padding-top: 1.75rem;
  color: var(--phrond-text-primary);
  line-height: 1.6;
  counter-increment: publish-step-counter;
}
.publish-steps li::before {
  content: counter(publish-step-counter);
  position: absolute;
  top: -1.1rem;
  left: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--phrond-sundial-gold);
  color: #040805;
  font-family: var(--phrond-font-title);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--phrond-tile-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
body[data-fern-product="publish"] .publish-steps li::before {
  background: #d97706;
}
@media (max-width: 700px) {
  .publish-steps {
    grid-template-columns: 1fr;
  }
}
/* Chassis panel overlaying bottom portion of banner image with tight gap */
.fern-chassis-overlay {
  margin-top: 0;
  position: relative;
  z-index: 10;
}
/* --- TOP PRIMARY TILES --- */
.fern-grid {
  display: grid;
  gap: 1.75rem;
}
.fern-grid > *,
.fern-panel,
.console-chassis {
  min-width: 0;
}
.fern-grid-2 {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .fern-grid-2 {
    grid-template-columns: 1fr;
  }
}
/* --- CONSOLE CHASSIS PANEL --- */
.console-chassis {
  background: linear-gradient(145deg, #071a0e 0%, #041008 50%, #020704 100%);
  border: 1px solid var(--phrond-tile-border);
  /* #79715F - 1px border width */
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.9);
  position: relative;
}
.console-chassis > .console-tile {
  margin-bottom: 1.5rem;
}
.home-tools-intro {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: 1.35rem 1.5rem;
}
.home-tools-intro h2 {
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-title);
  font-size: 1.35rem;
}
.home-tools-intro p {
  max-width: 76ch;
  color: var(--phrond-text-primary);
  line-height: 1.6;
}
.console-tile {
  display: flex;
  flex-direction: column;
  background: var(--phrond-tile-bg);
  /* #272C28 */
  border: 1px solid var(--phrond-tile-border);
  /* #79715F */
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7);
  transition: transform 150ms ease, border-color 150ms ease;
}
/* The front-page intro keeps its existing tile dimensions while using the
   shared console-tile primitive. */
.console-chassis > .home-tools-intro {
  min-height: 100px;
  padding: 1.35rem 1.5rem;
}
.console-tile:hover {
  transform: translateY(-2px);
  border-color: #9e947d;
}
/* Inset 3D Artwork Viewport */
.tile-artwork-frame {
  width: 100%;
  height: 240px;
  border: 1px solid var(--phrond-tile-border);
  /* #79715F */
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #000;
}
.tile-artwork-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}
.console-tile:hover .tile-artwork-frame img {
  transform: scale(1.02);
}
.fern-tile-button {
  margin-top: 0.75rem;
  width: 100%;
  padding-block: 0.5rem;
  font-size: 1.05rem;
}
.fern-tile-name {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}
.fern-tile-description {
  flex: 1;
  padding: 0.85rem 0.35rem 0.25rem;
  color: var(--phrond-text-muted);
  line-height: 1.55;
}
.tile-label-bar {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: #1c201d;
  border: 1px solid var(--phrond-tile-border);
  /* #79715F */
  border-radius: 4px;
  text-align: center;
}
.tile-label-text {
  font-family: var(--phrond-font-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--phrond-sundial-gold);
  /* #D8CAAC */
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}
/* --- BOTTOM SUBTOOLS ROW --- */
.fern-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.25rem;
}
.fern-grid-4 .console-tile {
  height: 100%;
}
@media (max-width: 900px) {
  .fern-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .fern-grid-4 {
    grid-template-columns: 1fr;
  }
}
.fern-subtool-artwork-frame {
  width: 100%;
  height: 150px;
  border: 1px solid var(--phrond-tile-border);
  /* #79715F */
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #000;
}
.fern-subtool-artwork-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}
.console-tile:hover .fern-subtool-artwork-frame img {
  transform: scale(1.03);
}
.fern-subtool-label-bar {
  margin-top: 0.6rem;
  padding: 0.45rem 0.5rem;
  background: #1c201d;
  border: 1px solid var(--phrond-tile-border);
  /* #79715F */
  border-radius: 4px;
  text-align: center;
}
.fern-subtool-label-text {
  font-family: var(--phrond-font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--phrond-sundial-gold);
  /* #D8CAAC */
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}
/* Footer - Links hover color #D8CAAC */
.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--phrond-tile-border);
  /* #79715F */
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--phrond-text-muted);
  /* #87978A */
  font-size: 0.875rem;
  opacity: 0.85;
}
.site-footer a {
  color: var(--phrond-text-muted);
  /* #87978A */
  transition: color 150ms ease, opacity 150ms ease;
}
.site-footer a:hover {
  color: var(--phrond-sundial-gold);
  /* #D8CAAC hover */
  opacity: 1;
}
/* About Page Featured Postbox Tile */
.about-featured-postbox {
  width: 100%;
  margin-bottom: 2rem;
}
.about-featured-postbox .tile-artwork-frame {
  height: 420px;
}
@media (max-width: 768px) {
  .about-featured-postbox .tile-artwork-frame {
    height: 260px;
  }
}
/* --- PRICING PAGE STYLING --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--phrond-sundial-gold);
  background: linear-gradient(145deg, #272C28 0%, #1e241f 100%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(216, 202, 172, 0.15);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--phrond-sundial-gold);
  color: #030704;
  font-family: var(--phrond-font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-header h2 {
  font-family: var(--phrond-font-title);
  font-size: 1.4rem;
  color: var(--phrond-sundial-gold);
  margin-bottom: 0.25rem;
}
.pricing-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0.75rem 0 0.25rem;
}
.pricing-price span {
  font-size: 0.95rem;
  color: var(--phrond-text-primary);
  font-weight: 400;
}
.pricing-features {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pricing-features li {
  color: var(--phrond-text-primary);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.pricing-features li::before {
  content: "✦";
  color: var(--phrond-sundial-gold);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
/* Account control plane */
.account-page-shell {
  width: min(760px, calc(100% - 3rem));
}
.account-page-shell.account-library-projects-shell {
  width: min(1100px, calc(100% - 3rem));
}
.account-page-shell h1 {
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-title);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0.35rem 0 1rem;
}
.account-note {
  color: var(--phrond-text-muted);
  font-size: 0.95rem;
}
.account-form {
  margin-top: 1.5rem;
}
.account-form p {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.account-form label {
  color: var(--phrond-sundial-gold);
  font-weight: 600;
}
.account-page-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.account-page-shell select,
.account-page-shell textarea {
  width: 100%;
  border: 1px solid var(--phrond-tile-border);
  border-radius: 4px;
  background: transparent;
  color: var(--phrond-text-primary);
  font: inherit;
  padding: 0.75rem 0.85rem;
}
.account-page-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.account-page-shell select:focus,
.account-page-shell textarea:focus {
  border-color: var(--phrond-sundial-gold);
  outline: 2px solid rgba(216, 202, 172, 0.2);
  outline-offset: 1px;
}
.account-form .helptext,
.account-form ul:not(.errorlist) {
  color: var(--phrond-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.errorlist {
  color: #ffb4a8;
  list-style-position: inside;
  margin-bottom: 0.4rem;
}
.account-form .fern-button {
  margin-top: 0.5rem;
}
.account-links,
.fern-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--phrond-text-muted);
}
.account-page-shell a:not(.fern-button):not(.dropdown-item) {
  color: var(--phrond-sundial-gold);
}
.account-page-shell a:not(.fern-button):not(.dropdown-item):visited {
  color: var(--phrond-sundial-gold);
}
.account-status {
  color: #a7d795;
  margin: 1rem 0 1.5rem;
}
.account-beta-request {
  margin-bottom: 1.5rem;
}
.account-sections {
  display: grid;
  gap: 2rem;
}
.account-dashboard-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}
.account-dashboard-card:hover {
  border-color: var(--phrond-sundial-gold);
}
.account-dashboard-card strong {
  color: var(--phrond-text-primary);
  font-size: 1.1rem;
}
.account-dashboard-card > span:last-child {
  color: var(--phrond-text-muted);
  font-size: 0.9rem;
}
.account-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
}
.account-category-links a {
  white-space: nowrap;
}
.new-project-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 2rem;
}
.new-project-form > label {
  color: var(--phrond-sundial-gold);
  font-weight: 600;
}
.new-project-form > div {
  display: flex;
  gap: 0.65rem;
}
.new-project-form input {
  flex: 1;
  min-width: 0;
}
.project-sort-form {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.project-sort-form label {
  color: var(--phrond-text-muted);
  font-size: 0.9rem;
}
.project-sort-form select {
  padding: 0.55rem;
}
.project-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}
.project-card-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.project-title {
  color: var(--phrond-text-primary);
  font-family: var(--phrond-font-title);
  font-size: 1.15rem;
  font-weight: 700;
}
.project-card span {
  color: var(--phrond-text-muted);
  font-size: 0.85rem;
}
.project-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}
.project-summary a {
  color: var(--phrond-text-muted);
  font-size: 0.85rem;
}
.project-delete {
  background: transparent;
  border: 0;
  cursor: pointer;
  justify-self: start;
  padding: 0;
}

.project-fonts-link {
  color: var(--phrond-sundial-gold);
  display: inline-flex;
}

.project-font-toolbar {
  margin-top: 1.25rem;
}
.project-font-toolbar .library-search,
.project-local-font-controls .library-search {
  flex: 1 1 20rem;
}
.project-font-count {
  color: var(--phrond-text-muted);
  white-space: nowrap;
}
.project-font-table-specimen {
  color: var(--phrond-text-primary);
  font-size: 1.15rem;
}
.project-font-remove {
  align-items: center;
  background: transparent;
  border: 1px solid var(--phrond-tile-border);
  border-radius: 50%;
  color: var(--phrond-text-muted);
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}
.project-font-remove:hover {
  border-color: var(--phrond-sundial-gold);
  color: var(--phrond-text-primary);
}
.project-font-remove .material-icons {
  font-size: 1rem;
}
.project-font-additional {
  margin-top: 1.5rem;
}
.project-font-additional summary {
  color: var(--phrond-text-primary);
  cursor: pointer;
  font-weight: 700;
}
.project-font-additional form {
  padding-top: 1rem;
}
.project-local-font-controls {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}
.project-local-font-controls input {
  flex: 1 1 auto;
  min-width: 0;
}
.project-google-font-controls {
  display: flex;
  gap: 0.65rem;
}
.project-google-font-controls input {
  flex: 1 1 auto;
  min-width: 0;
}
.account-section {
  border-top: 1px solid var(--phrond-tile-border);
  padding-top: 1.5rem;
}
.account-section h2 {
  color: var(--phrond-text-primary);
  font-family: var(--phrond-font-title);
  font-size: 1.45rem;
  margin: 0.25rem 0 0.6rem;
}
.color-set-card {
  background: #111a14;
  border: 1px solid var(--phrond-tile-border);
  border-radius: 6px;
  margin-top: 1rem;
  padding: 1rem;
}
.color-set-default {
  border-color: var(--phrond-sundial-gold);
}
.color-set-heading {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
.color-set-heading h3 {
  color: var(--phrond-sundial-gold);
  font-size: 1.05rem;
  margin: 0;
}
.color-set-heading p {
  color: var(--phrond-text-muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}
.color-set-badge {
  color: var(--phrond-text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}
.account-messages {
  background: #132319;
  border: 1px solid #4d7237;
  border-radius: 6px;
  color: var(--phrond-text-primary);
  margin: 1.25rem 0 1rem;
  padding: 0.85rem 1rem;
}
.library-toolbar {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1rem;
}
.library-search {
  align-items: center;
  border: 1px solid var(--phrond-tile-border);
  border-radius: 4px;
  display: flex;
  flex: 1;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
}
.library-search span {
  font-size: 1.4rem;
  line-height: 1;
}
.account-page-shell .library-search input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}
.library-search input::placeholder {
  color: var(--phrond-text-muted);
  opacity: 1;
}
.library-sort {
  align-items: center;
  color: var(--phrond-text-muted);
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}
.library-sort select {
  background: transparent;
  color: var(--phrond-text-primary);
  padding: 0.7rem 2rem 0.7rem 0.7rem;
}
.library-sort select option {
  background: var(--phrond-tile-bg);
  color: var(--phrond-text-primary);
}
.library-tabs {
  display: block;
  margin-bottom: 0.5rem;
}
.library-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--phrond-text-muted);
  cursor: pointer;
  font: inherit;
  margin-right: 0.4rem;
  padding: 0.75rem 0.9rem;
}
.library-tabs button.active {
  border-bottom-color: var(--phrond-sundial-gold);
  color: var(--phrond-text-primary);
}
.library-tabs button span {
  color: var(--phrond-text-muted);
  font-size: 0.8em;
  margin-left: 0.2rem;
}
.library-table {
  border-collapse: collapse;
  margin-top: 1.25rem;
  width: 100%;
}
.library-table th,
.library-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}
.library-table-head {
  color: var(--phrond-sundial-gold);
  font-family: var(--phrond-font-title);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  padding-bottom: 0.6rem;
  text-transform: uppercase;
}
.library-row {
  border-top: 1px solid var(--phrond-tile-border);
}
.library-row:hover {
  background: rgba(216, 202, 172, 0.05);
}
.library-item-name {
  min-width: 0;
}
.library-item-name strong {
  color: var(--phrond-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-item-icon {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--phrond-sundial-gold);
  display: flex;
  font-size: 1.35rem;
  height: 2.8rem;
  justify-content: center;
  padding: 0;
  width: 2.8rem;
}
.library-item-icon .material-icons {
  font-size: inherit;
}
.library-actions-cell {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.library-row-action {
  align-items: center;
  color: var(--phrond-sundial-gold);
  display: inline-flex;
  font-size: 0.82rem;
  height: 1.25rem;
  white-space: nowrap;
}
.library-action-dropdown {
  display: inline-flex;
  align-items: center;
  height: 1.25rem;
  position: relative;
}
.library-actions-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--phrond-sundial-gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 0.82rem;
  height: 100%;
  line-height: 1;
}
.library-actions-trigger::after {
  content: "›";
  display: inline-block;
  margin-left: 0.35rem;
}
.library-action-dropdown .nav-dropdown-menu {
  display: none;
  min-width: 0;
  width: max-content;
  right: 0;
  top: calc(100% + 0.25rem);
}
.library-action-dropdown:hover > .nav-dropdown-menu {
  display: none;
}
.library-action-dropdown.is-open > .nav-dropdown-menu {
  display: block;
}
.library-action-submenu:not(.is-open) > .nav-dropdown-menu {
  display: none;
}
.library-action-dropdown .dropdown-item {
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.library-action-dropdown .fern-menu-item {
  font-size: 0.82rem;
}
.library-action-dropdown .fern-menu-item:visited {
  color: var(--phrond-text-primary);
}
.library-action-dropdown form {
  margin: 0;
}
.library-action-submenu .nav-dropdown-menu {
  left: calc(100% + 0.25rem);
  right: auto;
  top: -0.45rem;
}
.library-action-submenu > .dropdown-item::after {
  content: '›';
  color: var(--phrond-text-muted);
  margin-left: 0.35rem;
}
.library-danger-action {
  color: #e58b8b;
}
.library-danger-action:hover {
  color: #ffb0b0;
}
.library-inline-rename {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}
.library-inline-rename input {
  min-width: 8rem;
  width: min(18rem, 100%);
  padding: 0.35rem 0.45rem;
}
.library-inline-rename button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--phrond-sundial-gold);
  cursor: pointer;
  display: inline-flex;
  padding: 0.25rem;
}
.library-project-form select {
  font-size: 0.78rem;
  max-width: 9rem;
  padding: 0.35rem;
}
.account-color-editor {
  display: grid;
  gap: 1rem;
}
.account-color-slot {
  align-items: center;
  background: #101512;
  border: 1px solid var(--phrond-tile-border);
  border-radius: 6px;
  color: var(--phrond-text-muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.45rem;
  text-align: left;
  font-size: 0.95rem;
}
.account-color-slot > span:last-child {
  white-space: nowrap;
}
.account-color-slot.is-active,
.account-color-slot:hover {
  background: rgba(216, 202, 172, 0.1);
  border-color: var(--phrond-sundial-gold);
  color: var(--phrond-text-primary);
}
.account-color-swatch {
  background: var(--swatch);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  display: block;
  flex: 0 0 1.55rem;
  height: 1.55rem;
  width: 1.55rem;
}

.account-color-detail-heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}
.account-color-detail-heading .subgroup-title {
  margin: 0;
}
.account-active-color-swatch {
  border: 1px solid var(--phrond-tile-border);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  display: block;
  flex: 0 0 2rem;
  height: 2rem;
  width: 2rem;
}
.account-color-inputs {
  display: grid;
  gap: 0.6rem;
}
.account-color-inputs label {
  color: var(--phrond-text-muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.3rem;
}
@media (max-width: 650px) {
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .library-table {
    display: block;
    overflow-x: auto;
  }
  .library-table th,
  .library-table td {
    white-space: nowrap;
  }
}
.account-email-list {
  border-top: 1px solid var(--phrond-tile-border);
  margin-top: 2rem;
  padding-top: 1rem;
}
.material-icons {
  font-family: "Material Icons";
  font-size: 1em;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}
