/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  color-scheme: light;
  font-family: 'DM Sans', sans-serif;
  --bg: #F3EFE3;
  --text: #001910;
  --muted: #4E6156;
  --primary: #344C3D;
  --accent: #582F0E;
  --surface: #FFFFFF;
  --soft: #F8F4EA;
  --radius: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:hover,
a:focus {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

.section-dark {
  background: var(--primary);
}

.section-white {
  background: var(--surface);
}

.section-soft {
  background: var(--soft);
}

.section-muted {
  background: #E9E4DA;
}

.hero {
  padding: 4rem 1rem;
}

.hero .eyebrow {
  letter-spacing: 0.18em;
  color: #CBD9C7;
}

.hero h1,
#about h2,
#features h2,
#how-it-works h2 {
  line-height: 1.05;
}

.hero-copy,
.footer p {
  color: #E6E9E2;
}

.hero .lead {
  color: #D3E0D7;
}

.btn-rootin-primary {
  background: var(--accent);
  border: none;
  color: var(--bg);
}

.btn-rootin-primary:hover,
.btn-rootin-primary:focus {
  background: #4f3914;
}

.btn-rootin-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-weight: 600;
}

.btn-rootin-outline:hover,
.btn-rootin-outline:focus {
  background: var(--accent);
  color: var(--surface);
}

.navbar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo {
  width: 100%;
  height: auto;
  align-items: center;
}

.navbar-custom {
  background: var(--primary) !important;
}

.nav-link-custom {
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar-brand,
.nav-link-custom:hover,
.nav-link-custom:focus {
  color: var(--surface) !important;
}

.btn-rootin-cta {
  background: #F3EFE3;
  color: var(--accent);
  border: none;
}

.btn-rootin-cta:hover,
.btn-rootin-cta:focus {
  background: var(--accent);
  color: var(--surface);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
}

.text-rootin-accent {
  color: var(--accent) !important;
}


.about-character {
  width: 70%;
  max-width: 480px;
}

.stat-card,
.feature-card,
.step-detail,
.news-card,
.review-card,
.video-card {
  background: var(--surface);
}

.review-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card h3,
.feature-card h3,
.step-detail h3,
.news-card h3 {
  color: var(--text);
}

.stat-card {
  border: 1px solid rgba(52, 76, 61, 0.12);
}

.stat-value {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.stat-card,
.feature-card,
.step-detail,
.news-card {
  padding: 2rem;
}

.step-detail h3 {
  margin-bottom: 0.75rem;
}

.step-detail p {
  margin-bottom: 0;
}

.feature-card {
  min-height: 230px;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  /* background: rgba(88, 47, 14, 0.1); */
  border-radius: 1rem;
  font-size: 1.5rem;
}

.step-list {
  background: var(--surface);
}

.step-list li {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.step-list li strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-detail {
  border: 1px solid rgba(52, 76, 61, 0.12);
}

/* .video-card {
  position: relative;
} */

#tutorial {
  background-image: url(../img/play_bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 480px;
  height: 480px;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.tutorial-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.video-play-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.play-icon {
  width: 5rem;
  height: 5rem;
  display: block;
}

.news-card {
  border: 1px solid rgba(52, 76, 61, 0.12);
}

.news-image {
  height: 400px;
  overflow: hidden;
}

.news-image img {
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-arrow-icon-btn {
  outline: none;
  box-shadow: none;
  border: none;
}

.carousel-arrow-icon-btn:focus,
.carousel-arrow-icon-btn:active,
.carousel-arrow-icon-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.carousel-arrow-icon {
  width: 2rem;
  height: 2rem;
}

.carousel-controls {
  order: 3;
}

.carousel-controls .btn {
  min-width: 140px;
  font-weight: 600;
}

.carousel-indicator-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #582F0E;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-indicator-icon.active {
  background: #ffffff;
}

.carousel-item {
  min-height: 220px;
}

.carousel-dots {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
}

#reviews {
  background: #F3EFE3;
  background-image: url("../img/review_bg.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  color: var(--text) !important;
  position: relative;
}



.section-accent {
  background: var(--accent);
}

.download-form input {
  flex: 1;
  min-width: 0;
}

.notify-input {
  width: 100%;
}

.notify-btn {
  width: 100%;
}

.app-badge {
  height: 3rem;
}

.badge-link {
  display: inline-flex;
}

.download-buttons {
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.store-btn i {
  font-size: 1.2rem;
  line-height: 1;
}

.store-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer {
  padding: 3rem 1rem;
}

.footer .social-links a,
.footer .footer-links a {
  color: var(--surface);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-size: 1.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.back-to-top-icon {
  width: 24px;
  height: 24px;
}

.step-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

  section {
    padding: 3rem 1rem 
  }

  .hero {
    padding: 2rem 1rem 
  }

  main > section {
    margin: 0 !important;
  }

  /* MockUp */

  .hero-mockup {
    width: 100%;
    height: auto;
  }

  .hero-image .hero-mockup {
    max-width: 400px;
  }

  #how-it-works .hero-mockup {
    max-width: 400px;
  }


@media (min-width: 576px) {
  .download-buttons .store-btn {
    flex: 1 1 0;
    max-width: 320px;
  }

  .notify-input {
    width: 400px;
    flex: 0 0  400px;
    max-width: 400px;
  }

  .notify-btn {
    width: auto;
    flex: 0 0 auto;
    min-width: 160px;
  }
}

@media (min-width: 768px) {

  section {
    padding: 5rem 0;
  }

  /* parallax effect */
  #tutorial {
    background-attachment: fixed;
  }

  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 3.5vw, 4rem);
  }

  .hero-copy {
    max-width: 42rem;
  }

  .section-dark,
  .section-white,
  .section-soft,
  .section-muted,
  .section-accent {
    padding: 5rem 0;
  }

  .step-list {
    padding: 2rem;
  }

  .step-detail {
    padding: 2rem;
  }

  .news-card {
    min-height: 100%;
  }

  .download-form {
    align-items: flex-start;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .hero-image .hero-mockup, #how-it-works .hero-mockup {
    max-width: 60%;
  }
}

@media (min-width: 1200px) {
  .hero {
    padding-top: 6rem;
  }

  .hero .hero-image {
    width: 100%;
  }
}

/* Dark Mode */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #151816;
    --text: #F3EFE3;
    --muted: #C7C1B8;
    --primary: #202B24;
    --accent: #A36A45;
    --surface: #1D221F;
    --soft: #252B27;

  }
  .section-muted {
    background: #2B312D;
  }

  .hero .eyebrow {
    color: #D6DDD4;
  }

  .hero .lead {
    color: #D8E1DA;
  }

  .navbar-brand,
  .navbar-brand span,
  .nav-link-custom {
    color: #FFFFFF !important;
  }

  .nav-link-custom:hover,
  .nav-link-custom:focus {
    color: #FFFFFF !important;
  }

  .stat-card,
  .feature-card,
  .step-detail,
  .news-card,
  .video-card {
    background: #FFFFFF;
    border-color: rgba(243, 239, 227, 0.08);
  }

  .stat-card h3,
  .feature-card h3,
  .step-detail h3,
  .news-card h3,
  .stat-label,
  .feature-card p,
  .step-detail p,
  .news-card p {
    color: #001910 !important;
  }

  .text-muted,
  .section-copy,
  .stat-label,
  .feature-card p,
  .step-detail p,
  .news-card p,
  .review-card p {
    color: var(--muted);
  }

  #reviews {
    background: #F3EFE3 !important;
    color: #001910 !important;
  }

  #reviews .text-muted {
    color: #FFFFFF !important;
  }

  .btn-light {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--text);
  }

  .btn-light:hover,
  .btn-light:focus {
    background: #2C332E;
    border-color: #2C332E;
    color: var(--text);
  }

  .form-control {
    background: var(--surface);
    border: 1px solid rgba(243, 239, 227, 0.12);
    color: var(--text);
  }

  .form-control::placeholder {
    color: var(--muted);
  }

  .form-control:focus {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 0.25rem rgba(163, 106, 69, 0.25);
  }

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

