/* Rill Camera — static site styles */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/fonts/poppins-200.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/poppins-300.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/poppins-300-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600.woff2") format("woff2");
}

:root {
  --text: #3e3e3e;
  --muted: #7c7c7c;
  --faint: #b9b9b9;
  --rule: #d6d6d6;
  --blue: #1055eb;
  --red: #ec1818;
  --navy: #05185e;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  /* Avenir Light is what the Wix site used; it ships with macOS and iOS. */
  --font-body: Avenir, "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: clamp(32px, 6vw, 44px);
}

h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.accent {
  color: var(--blue);
}

.text-blue {
  color: var(--blue);
}

.text-red {
  color: var(--red);
}

strong {
  font-weight: 600;
}

/* Phone screenshots: they already include the device frame and shadow */
.phone {
  display: block;
}

hr.rule {
  width: calc(100% - 40px);
  max-width: calc(var(--container) - 40px);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* ---------- Header ---------- */

.site-header {
  padding: 22px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 200;
  font-size: 23px;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.main-nav {
  display: flex;
  gap: 8px 48px;
  font-family: var(--font-head);
  font-weight: 200;
  font-size: 19px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 60px 20px 48px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 200;
  color: #555;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
  font-size: 13px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--blue);
}

.copyright {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.app-store {
  display: inline-block;
  line-height: 0;
}

.app-store img {
  width: 201px;
  height: auto;
}

.btn-outline {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 200;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 40px 80px;
  padding-top: 30px;
  padding-bottom: 90px;
}

.hero-text {
  text-align: center;
  padding-left: 60px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 46px);
  letter-spacing: 0.06em;
  line-height: 1.32;
}

.hero-price {
  margin: 80px 0 36px;
  font-size: 21px;
  line-height: 1.3;
}

.hero-price em {
  font-family: var(--font-body);
  font-size: 17px;
}

/* ---------- Home: why ---------- */

.why {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px 64px;
  padding-top: 56px;
  padding-bottom: 90px;
  padding-left: 120px;
}

.why h2 {
  margin: 0 0 40px;
}

.why p {
  margin: 0 0 32px;
  color: #555;
  line-height: 1.7;
}

.why p + p {
  margin-bottom: 8px;
}

.why ul {
  margin: 0;
  padding-left: 32px;
  color: #555;
  line-height: 1.8;
}

/* ---------- Home: easy steps ---------- */

.start {
  padding-top: 30px;
  padding-bottom: 90px;
  text-align: center;
}

.easy-steps {
  display: grid;
  grid-template-columns: 214px 1fr 214px;
  gap: 40px;
  margin-top: 16px;
  padding: 0 40px;
  text-align: left;
}

.device {
  margin: 0;
}

.device figcaption {
  margin-bottom: 14px;
  text-align: center;
}

.device-note {
  margin: 10px 0 0;
  color: var(--blue);
  font-size: 19px;
  text-align: center;
}

.start-steps {
  list-style: none;
  margin: 0;
  padding: 50px 0 0;
  display: grid;
  gap: 52px;
  align-content: start;
}

.start-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 46px;
  border-radius: 6px;
  background: var(--faint);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
}

.start-steps li:nth-child(2) .step-num {
  background: #555;
}

.start-steps li:nth-child(3) .step-num {
  background: #000;
}

.start-steps p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

/* ---------- Home: features ---------- */

.features {
  padding-top: 30px;
  padding-bottom: 90px;
}

.features h2 {
  text-align: center;
  margin-bottom: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
}

.feature h3 img {
  flex: none;
  width: auto;
  height: 36px;
}

.feature p {
  margin: 0;
  padding-left: 8px;
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Home: call to action ---------- */

.cta {
  padding-top: 36px;
  text-align: center;
}

.cta p {
  max-width: 520px;
  margin: 28px auto 36px;
  font-size: 20px;
  line-height: 1.4;
  color: #555;
}

/* ---------- How To index ---------- */

.howto-index {
  padding-top: 50px;
}

.howto-index h1 {
  text-align: center;
  margin-bottom: 50px;
}

.howto-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  text-align: center;
}

.howto-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
}

.howto-links a:hover {
  color: var(--blue);
}

/* ---------- How To guides ---------- */

.guide {
  padding-top: 50px;
}

.guide h1 {
  text-align: center;
  margin-bottom: 40px;
}

.guide-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 60px;
  max-width: 680px;
  margin: 0 auto 50px;
  align-items: start;
}

.guide-step .phone {
  justify-self: center;
  width: 205px;
}

.guide-text {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #8a8a8a;
}

.guide-step--flip .guide-text {
  order: 2;
}

.guide-text p {
  margin: 0 0 16px;
  line-height: 1.4;
}

.guide-step--center {
  grid-template-columns: 1fr;
  justify-items: center;
}

.guide-step--center .guide-text {
  width: 300px;
  max-width: 100%;
}

.guide-done {
  text-align: center;
}

.notice {
  max-width: 560px;
  margin: 0 auto 50px;
  padding-left: 24px;
  border-left: 3px solid var(--red);
  font-size: 16px;
  line-height: 1.65;
}

/* Screenshot with labelled call-outs (device status page) */
.annotated {
  position: relative;
  width: 205px;
  margin: 0;
}

.annotated ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.callout {
  position: absolute;
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.3;
  transform: translateY(-50%);
}

.callout::before {
  content: "";
  flex: none;
  width: var(--len);
  border-top: 1px solid var(--muted);
}

.callout--right {
  left: var(--x);
  white-space: nowrap;
}

.callout--left {
  right: calc(100% - var(--x));
  flex-direction: row-reverse;
  white-space: nowrap;
}

/* ---------- Contact ---------- */

.contact {
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
}

.contact h1 {
  font-size: clamp(34px, 5.4vw, 50px);
  line-height: 1.3;
  margin-bottom: 60px;
}

/* ---------- Blog ---------- */

.blog {
  max-width: 820px;
  padding-top: 50px;
}

.post-card {
  border: 1px solid #e6e6e6;
}

.post-card a {
  display: block;
  padding: 32px 36px;
  text-decoration: none;
}

.post-card h2 {
  margin: 14px 0 12px;
  font-size: 28px;
}

.post-card a:hover h2 {
  color: var(--blue);
}

.post-card p {
  margin: 0;
  font-size: 16px;
}

.post-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #555;
}

/* ---------- Blog post ---------- */

.post {
  max-width: 780px;
  padding-top: 50px;
}

.post h1 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 4.5vw, 36px);
}

.post-updated {
  margin: 0 0 40px;
  font-size: 13px;
  font-weight: 400;
  color: #555;
}

.post-body p {
  margin: 0 0 32px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

.post-cta {
  text-align: center;
  padding: 16px 0 48px;
  border-bottom: 1px solid var(--rule);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 820px;
  padding-top: 50px;
  font-weight: 400;
  line-height: 1.75;
}

.legal--navy {
  color: var(--navy);
}

.legal h1 {
  color: var(--text);
  font-size: 36px;
}

.legal .legal-updated {
  margin: 20px 0 40px;
  color: var(--faint);
}

.legal h2,
.legal h3 {
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.legal h2 {
  margin: 44px 0 20px;
  font-size: 25px;
}

.legal h3 {
  margin: 32px 0 4px;
  font-size: 20px;
}

.legal p {
  margin: 0 0 28px;
}

.legal ol,
.legal ul {
  margin: 0 0 28px;
  padding-left: 28px;
}

.legal a {
  color: inherit;
}

/* ---------- 404 ---------- */

.not-found {
  padding-top: 80px;
  padding-bottom: 40px;
  text-align: center;
}

.not-found p {
  margin: 24px 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero,
  .why {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-left: 20px;
    text-align: center;
  }

  .hero-text {
    padding-left: 0;
  }

  .hero-price {
    margin-top: 40px;
  }

  .why {
    text-align: left;
  }

  .why .phone {
    order: 2;
  }

  .why ul {
    padding-left: 24px;
  }

  .easy-steps {
    padding: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main home"
      "steps steps";
    justify-items: center;
  }

  .device--main {
    grid-area: main;
  }

  .device--home {
    grid-area: home;
  }

  .start-steps {
    grid-area: steps;
    padding-top: 10px;
    gap: 28px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 40px;
  }

  .contact {
    padding-top: 50px;
  }

  .contact h1 {
    margin-bottom: 36px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding: 16px 0 8px;
  }

  .header-inner {
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px 16px;
    font-size: 17px;
  }

  .hero {
    padding-bottom: 60px;
  }

  .why,
  .start,
  .features {
    padding-bottom: 60px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .guide-step {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .guide-step--flip .guide-text {
    order: 0;
  }

  .guide-text {
    margin-top: 0;
  }

  /* Call-outs become a plain list under the screenshot */
  .annotated ul {
    margin-top: 16px;
    text-align: center;
  }

  .callout {
    position: static;
    display: block;
    transform: none;
  }

  .callout::before {
    display: none;
  }

  .callout + .callout {
    margin-top: 4px;
  }

  .post-card a {
    padding: 24px;
  }
}
