plans.scss 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569
  1. @use 'sass:math';
  2. $container-plans-responsive-width: 95%;
  3. $container-xl: 1280px;
  4. $z-index-plans-new-tabs-content: 0;
  5. $z-index-plans-new-tabs: 1;
  6. $highlighted-heading-line-height: 24px;
  7. $highlighted-heading-padding-vertical: $spacing-02;
  8. $highlighted-heading-height: (
  9. $highlighted-heading-line-height + (2 * $highlighted-heading-padding-vertical)
  10. );
  11. $switcher-container-margin-bottom: $highlighted-heading-height + $spacing-10;
  12. $table-4-column-width: 25%;
  13. $table-5-column-width: 20%;
  14. $nondiscounted-price-element-height: var(--line-height-02);
  15. $group-member-picker-height: 24px;
  16. $group-member-picker-top-height: 36px;
  17. $z-index-group-member-picker-list: 1;
  18. .plans-new-design {
  19. --border-width-base: 3px; // TODO: put this variable in a decent location
  20. padding-top: $header-height;
  21. overflow: unset;
  22. .container {
  23. padding: 0 var(--spacing-06);
  24. @include media-breakpoint-up(md) {
  25. width: $container-plans-responsive-width;
  26. }
  27. @include media-breakpoint-up(xxl) {
  28. width: $container-xl;
  29. }
  30. .geo-banner-container {
  31. margin-top: var(--spacing-08);
  32. }
  33. .plans-new-design-content-spacing {
  34. margin-top: var(--spacing-16);
  35. }
  36. .interstitial-new-design-content-spacing {
  37. margin-top: var(--spacing-13);
  38. }
  39. }
  40. .main-heading-section {
  41. text-align: center;
  42. max-width: 885px;
  43. margin-left: auto;
  44. margin-right: auto;
  45. @include media-breakpoint-down(md) {
  46. text-align: left;
  47. padding: 0 16px;
  48. }
  49. .plans-page-heading {
  50. margin-top: 8px;
  51. margin-bottom: unset;
  52. font-size: 3rem;
  53. font-weight: 600;
  54. line-height: 64px;
  55. @include media-breakpoint-down(md) {
  56. font-size: 2.25rem;
  57. line-height: 48px;
  58. padding-right: 5rem;
  59. }
  60. }
  61. .plans-page-sub-heading {
  62. font-size: 1.125rem;
  63. line-height: 24px;
  64. margin-top: 16px;
  65. margin-bottom: unset;
  66. }
  67. }
  68. .plans-new-content {
  69. display: flex;
  70. flex-direction: column;
  71. align-items: center;
  72. position: relative;
  73. @include media-breakpoint-up(md) {
  74. border-left: 1px solid var(--border-divider);
  75. border-right: 1px solid var(--border-divider);
  76. border-bottom: 1px solid var(--border-divider);
  77. border-radius: 8px;
  78. }
  79. // this is the border between the tabs and the content, specifically on the left and right side
  80. // this is necessary to enable top border radius on the plans-new-content
  81. &::before {
  82. content: '';
  83. display: block;
  84. z-index: $z-index-plans-new-tabs-content;
  85. position: absolute;
  86. top: -1px; // make border overlap with the border on .plans-new-tabs
  87. width: 100%;
  88. height: 20px; // arbitrary height since it's transparent, make sure that it's bigger than border radius
  89. background: transparent;
  90. border-top: 1px solid var(--border-divider);
  91. @include media-breakpoint-up(md) {
  92. border-top-left-radius: 8px;
  93. border-top-right-radius: 8px;
  94. }
  95. }
  96. }
  97. .plans-new-tabs-container {
  98. z-index: $z-index-plans-new-tabs;
  99. margin-top: var(--spacing-16);
  100. // explicit padding to tell that the bottom left and bottom right
  101. // does not have bottom border defined in .plans-new-tabs
  102. // technically unnecessary because padding is already defined in bootstrap column
  103. padding: 0 16px;
  104. }
  105. .plans-new-tabs {
  106. display: flex;
  107. justify-content: center;
  108. gap: 8px;
  109. border-bottom: 1px solid var(--border-divider);
  110. .plans-new-tab {
  111. cursor: pointer;
  112. font-size: 16px;
  113. font-weight: 600;
  114. border-top-right-radius: 8px;
  115. border-top-left-radius: 8px;
  116. margin-bottom: -1px; // to overlap with the border on .plans-new-tabs to avoid double border
  117. .plans-new-tab-link {
  118. display: flex;
  119. align-items: center;
  120. color: var(--content-secondary);
  121. margin: 0;
  122. border-top-right-radius: 8px;
  123. border-top-left-radius: 8px;
  124. /* stylelint-disable-next-line declaration-block-no-duplicate-properties */
  125. border: 1px solid var(--border-divider);
  126. padding: var(--spacing-05) var(--spacing-08);
  127. gap: var(--spacing-04);
  128. text-decoration: unset;
  129. &:focus {
  130. background-color: unset;
  131. outline: 0;
  132. }
  133. &:hover {
  134. background-color: var(--neutral-20);
  135. }
  136. .group-discount-bubble {
  137. padding: var(--spacing-01) var(--spacing-04);
  138. background-color: var(--green-10);
  139. color: var(--green-50);
  140. border-radius: var(--border-radius-full);
  141. font-family: 'DM Mono', monospace;
  142. font-feature-settings: 'ss05';
  143. font-size: var(--font-size-01);
  144. line-height: var(--line-height-01);
  145. font-weight: 500;
  146. @include media-breakpoint-down(md) {
  147. display: none;
  148. }
  149. }
  150. @include media-breakpoint-down(md) {
  151. font-size: var(--font-size-02);
  152. line-height: var(--line-height-02);
  153. padding: var(--spacing-05);
  154. gap: var(--spacing-02);
  155. }
  156. }
  157. &:has(.active) {
  158. .plans-new-tab-link {
  159. border: 1px solid white;
  160. position: relative;
  161. color: var(--green-50);
  162. // remove the border on tab focus
  163. &:focus-visible {
  164. &::before {
  165. content: unset;
  166. }
  167. }
  168. &::before {
  169. content: '';
  170. position: absolute;
  171. background: border-box
  172. linear-gradient(
  173. to bottom,
  174. $green-50 0%,
  175. $neutral-20 85%,
  176. $neutral-20 100%
  177. );
  178. /* stylelint-disable-next-line property-no-vendor-prefix */
  179. -webkit-mask:
  180. linear-gradient(white 0 0) padding-box,
  181. linear-gradient(white 0 0);
  182. mask:
  183. linear-gradient(white 0 0) padding-box,
  184. linear-gradient(white 0 0);
  185. /* stylelint-disable-next-line property-no-vendor-prefix */
  186. -webkit-mask-composite: xor;
  187. mask-composite: exclude;
  188. border-top-right-radius: 8px;
  189. border-top-left-radius: 8px;
  190. border: 1px solid transparent;
  191. border-bottom: 1px solid white;
  192. // make the border overlap with the .plans-new-tab-link border
  193. top: 0;
  194. bottom: -2px;
  195. left: -1px;
  196. /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
  197. right: -1px;
  198. }
  199. &:hover {
  200. background-color: unset;
  201. }
  202. }
  203. .plans-new-discount-badge {
  204. background-color: var(--green-10);
  205. color: var(--green-60);
  206. }
  207. }
  208. }
  209. }
  210. .plans-new-period-switcher-container {
  211. position: relative;
  212. display: inline-flex;
  213. background-color: var(--bg-light-secondary);
  214. border-radius: var(--border-radius-full);
  215. padding: var(--spacing-03);
  216. margin-top: var(--spacing-09);
  217. margin-bottom: $switcher-container-margin-bottom;
  218. gap: var(--spacing-04);
  219. @include media-breakpoint-down(md) {
  220. margin-bottom: var(--spacing-09);
  221. }
  222. label {
  223. display: inline-flex;
  224. align-items: center;
  225. margin: 0;
  226. font-size: var(--font-size-05);
  227. font-weight: 600;
  228. line-height: var(--line-height-04);
  229. text-align: center;
  230. padding: var(--spacing-01) var(--spacing-04);
  231. border-radius: var(--border-radius-full);
  232. &:hover {
  233. background-color: var(--neutral-20);
  234. cursor: pointer;
  235. }
  236. }
  237. input[type='radio'] {
  238. position: absolute;
  239. left: -9999px;
  240. &:focus,
  241. &:focus-visible {
  242. outline: 0;
  243. }
  244. }
  245. input[type='radio']:focus-visible + label,
  246. input[type='radio']:checked:focus-visible + label {
  247. @include box-shadow-button-input;
  248. }
  249. input[type='radio']:checked + label {
  250. background-color: var(--green-50);
  251. color: white;
  252. /* stylelint-disable-next-line length-zero-no-unit, color-function-notation, alpha-value-notation */
  253. box-shadow: 0px 2px 4px 0px rgba(30, 37, 48, 0.16);
  254. .plans-new-discount-badge {
  255. background-color: var(--green-10);
  256. color: var(--green-60);
  257. }
  258. }
  259. .plans-new-discount-badge {
  260. margin-left: var(--spacing-03);
  261. }
  262. }
  263. .plans-new-discount-badge {
  264. font-size: var(--font-size-01);
  265. font-family: 'DM Mono', monospace;
  266. padding: 2px 8px;
  267. height: 20px;
  268. border-radius: 10px;
  269. background-color: var(--neutral-70);
  270. color: white;
  271. display: flex;
  272. align-items: center;
  273. font-weight: 500;
  274. line-height: var(--line-height-01);
  275. }
  276. .plans-new-tab-content {
  277. width: 100%;
  278. border: none;
  279. padding-top: 0;
  280. @include media-breakpoint-down(md) {
  281. padding: 0;
  282. }
  283. }
  284. .plans-new-mobile {
  285. display: none;
  286. @include media-breakpoint-down(md) {
  287. display: block;
  288. }
  289. }
  290. .plans-new-desktop {
  291. display: block;
  292. @include media-breakpoint-down(md) {
  293. display: none;
  294. }
  295. }
  296. .group-discount-banner {
  297. border: 1px solid var(--neutral-20);
  298. border-radius: var(--border-radius-base);
  299. width: 50%;
  300. max-width: 576px;
  301. margin: auto;
  302. margin-top: var(--spacing-06);
  303. margin-bottom: var(--spacing-10);
  304. display: flex;
  305. gap: var(--spacing-06);
  306. padding: var(--spacing-06);
  307. @include media-breakpoint-down(md) {
  308. width: 100%;
  309. }
  310. .group-icon {
  311. flex-grow: 2;
  312. }
  313. .text-and-cta {
  314. flex-grow: 8;
  315. display: flex;
  316. gap: var(--spacing-06);
  317. @include media-breakpoint-down(lg) {
  318. flex-direction: column;
  319. }
  320. .group-discount-text {
  321. flex-grow: 6;
  322. p {
  323. margin-bottom: 0;
  324. }
  325. h3 {
  326. margin-top: 0;
  327. }
  328. .group-discount-text-heading {
  329. font-size: var(--font-size-03);
  330. font-weight: 600;
  331. line-height: var(--line-height-02);
  332. margin-bottom: var(--spacing-02);
  333. color: var(--neutral-90);
  334. }
  335. }
  336. .group-discount-cta {
  337. flex-grow: 3;
  338. }
  339. }
  340. }
  341. .plans-new-table {
  342. width: 100%;
  343. // keep the borders separate to help with spacing and alignment in the CTAs
  344. border-collapse: separate;
  345. border-spacing: 0;
  346. th,
  347. td {
  348. width: $table-4-column-width;
  349. }
  350. }
  351. .plans-new-table-student {
  352. margin-left: math.div($table-4-column-width, 2);
  353. }
  354. .plans-new-table-student-verification {
  355. font-weight: 600;
  356. font-size: var(--font-size-01);
  357. text-align: center;
  358. }
  359. .plans-new-table-group {
  360. margin-top: $spacing-11 + $highlighted-heading-height;
  361. }
  362. thead th {
  363. position: relative;
  364. padding: var(--spacing-06) var(--spacing-08) var(--spacing-04)
  365. var(--spacing-08);
  366. font-size: var(--font-size-05);
  367. font-weight: 600;
  368. line-height: var(--line-height-04);
  369. color: var(--content-primary);
  370. text-align: center;
  371. @include media-breakpoint-down(md) {
  372. padding: var(--spacing-05) var(--spacing-05) 0 var(--spacing-05);
  373. }
  374. }
  375. .plans-new-table-subheader {
  376. vertical-align: top;
  377. padding: 0 var(--spacing-08);
  378. @include media-breakpoint-down(xl) {
  379. padding: 0 var(--spacing-05);
  380. }
  381. &.plans-new-table-icon-cta-cell,
  382. &.plans-subheader-monthly-cta {
  383. vertical-align: bottom;
  384. }
  385. }
  386. .plans-new-table-cta-row {
  387. td {
  388. padding-bottom: var(--spacing-06);
  389. @include media-breakpoint-down(xl) {
  390. padding-bottom: var(--spacing-05);
  391. }
  392. // use transparent borders to use the same spacing as highlighted cells
  393. &:not(.plans-new-table-highlighted-cell) {
  394. border-right: var(--border-width-base) solid transparent;
  395. border-left: var(--border-width-base) solid transparent;
  396. }
  397. }
  398. .plans-cta + .plans-cta {
  399. margin-top: var(--spacing-04);
  400. }
  401. }
  402. .plans-new-table-header-grid-container {
  403. display: flex;
  404. flex-direction: column;
  405. align-items: center;
  406. s,
  407. .match-original-price-height {
  408. font-size: var(--font-size-02);
  409. line-height: $nondiscounted-price-element-height;
  410. color: var(--neutral-60);
  411. font-weight: 600;
  412. }
  413. .plans-new-table-header-price {
  414. font-size: var(--font-size-08);
  415. font-weight: 600;
  416. line-height: var(--line-height-07);
  417. color: var(--content-primary);
  418. }
  419. .plans-new-table-header-price-unit {
  420. font-size: var(--font-size-02);
  421. line-height: var(--line-height-02);
  422. text-align: center;
  423. }
  424. .plans-new-table-cta {
  425. margin-top: auto;
  426. a:nth-child(2) {
  427. margin-top: var(--spacing-04);
  428. }
  429. }
  430. .plans-new-table-header-icon {
  431. font-size: 56px;
  432. color: var(--content-primary);
  433. }
  434. }
  435. .plans-new-table-header-price-unit-total {
  436. font-size: var(--font-size-01);
  437. line-height: var(--line-height-01);
  438. }
  439. .plans-new-table-header-desc {
  440. margin-top: var(--spacing-05);
  441. margin-bottom: var(--spacing-08);
  442. font-size: var(--font-size-02);
  443. line-height: var(--line-height-02);
  444. }
  445. .plans-new-group-member-picker {
  446. .plans-new-group-member-picker-text {
  447. font-size: var(--font-size-02);
  448. line-height: var(--line-height-02);
  449. font-weight: 600;
  450. margin-bottom: var(--spacing-02);
  451. }
  452. .plans-new-group-member-picker-form {
  453. position: relative;
  454. .plans-new-group-member-picker-button {
  455. width: 100%;
  456. background-color: white;
  457. border-radius: var(--border-radius-base-new);
  458. border: 1px solid var(--neutral-60);
  459. display: flex;
  460. align-items: center;
  461. justify-content: space-between;
  462. padding: var(--spacing-01) var(--spacing-03);
  463. margin-bottom: var(--spacing-04);
  464. height: $group-member-picker-height;
  465. font-size: var(--font-size-02);
  466. line-height: var(--line-height-02);
  467. &[aria-expanded='true'] {
  468. i {
  469. transform: rotate(180deg);
  470. transition: transform 0.35s ease;
  471. }
  472. }
  473. &[aria-expanded='false'] {
  474. i {
  475. transition: transform 0.35s ease;
  476. }
  477. }
  478. &[data-ol-plans-new-group-member-picker-button='group-all'] {
  479. height: $group-member-picker-top-height;
  480. }
  481. .material-symbols {
  482. pointer-events: none;
  483. }
  484. }
  485. ul.plans-new-group-member-picker-list {
  486. list-style-type: none;
  487. margin-bottom: 0;
  488. overflow: auto; // to enable box-shadow
  489. /* stylelint-disable-next-line length-zero-no-unit, color-function-notation, alpha-value-notation */
  490. box-shadow: 0px 2px 4px 0px rgba(30, 37, 48, 0.16);
  491. padding: var(--spacing-02);
  492. position: absolute;
  493. top: $group-member-picker-height;
  494. background-color: white;
  495. width: 100%;
  496. margin-top: var(--spacing-01);
  497. z-index: $z-index-group-member-picker-list;
  498. &[data-ol-plans-new-group-member-picker-dropdown='group-all'] {
  499. top: $group-member-picker-top-height;
  500. }
  501. }
  502. li.plans-new-group-member-picker-footer {
  503. font-size: var(--font-size-02);
  504. line-height: var(--line-height-02);
  505. padding: var(--spacing-05) var(--spacing-04);
  506. span {
  507. display: block;
  508. }
  509. button {
  510. font-weight: 400;
  511. padding: 0;
  512. font-size: var(--font-size-02);
  513. line-height: var(--line-height-02);
  514. }
  515. }
  516. li {
  517. position: relative;
  518. &:not(:last-child) {
  519. margin-bottom: var(--spacing-02);
  520. }
  521. &:not(.plans-new-group-member-picker-footer):hover {
  522. input[type='radio']:not(:checked) + p {
  523. background-color: var(--bg-light-secondary);
  524. }
  525. }
  526. &[data-highlighted='true'] {
  527. p {
  528. @extend %input-focus-style;
  529. }
  530. input[type='radio']:not(:checked) + p {
  531. background-color: var(--bg-light-secondary);
  532. }
  533. }
  534. input[type='radio'] {
  535. position: absolute;
  536. opacity: 0;
  537. cursor: pointer;
  538. &:focus + p {
  539. @extend %input-focus-style;
  540. }
  541. + p {
  542. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  543. var(--spacing-04);
  544. margin-bottom: 0;
  545. border-radius: var(--border-radius-base-new);
  546. }
  547. }
  548. input[type='radio']:checked + p {
  549. background-color: var(--green-10);
  550. color: var(--green-70);
  551. position: relative;
  552. word-wrap: break-word;
  553. &::after {
  554. content: url(../../../public/img/material-icons/check-green-20.svg);
  555. position: absolute;
  556. right: 12px;
  557. top: 50%;
  558. transform: translateY(-50%);
  559. @include media-breakpoint-down(md) {
  560. right: var(--spacing-04);
  561. }
  562. }
  563. }
  564. label {
  565. width: 100%;
  566. font-size: var(--font-size-02);
  567. line-height: var(--line-height-02);
  568. margin-bottom: var(--spacing-00);
  569. font-weight: 400;
  570. cursor: pointer;
  571. border-radius: var(--border-radius-base-new);
  572. .list-item-footer {
  573. font-size: var(--font-size-01);
  574. line-height: var(--line-height-01);
  575. }
  576. }
  577. }
  578. }
  579. }
  580. .individual-edu-discount-form {
  581. margin-top: calc(-1 * var(--spacing-05));
  582. }
  583. .plans-new-edu-discount {
  584. display: flex;
  585. align-items: flex-start;
  586. gap: var(--spacing-04);
  587. margin-bottom: var(--spacing-06);
  588. font-weight: 400;
  589. input[type='checkbox'] {
  590. margin: var(--spacing-03) var(--spacing-02);
  591. accent-color: var(--green-50);
  592. &:focus-visible {
  593. @include box-shadow-button-input;
  594. }
  595. }
  596. .plans-new-edu-discount-content {
  597. display: flex;
  598. flex-direction: column;
  599. span {
  600. line-height: var(--line-height-03);
  601. color: var(--content-primary);
  602. }
  603. small {
  604. color: var(--content-secondary);
  605. font-size: var(--font-size-01);
  606. line-height: var(--line-height-01);
  607. }
  608. }
  609. }
  610. .plans-new-table-body:last-of-type {
  611. .plans-new-table-feature-row:last-of-type {
  612. .plans-new-table-feature-td.plans-new-table-highlighted-cell {
  613. border-bottom: var(--border-width-base) solid var(--green-50);
  614. }
  615. }
  616. }
  617. .plans-new-table-heading-row {
  618. // this means min-height, min-height does not work in table layout
  619. // https://stackoverflow.com/questions/7790222
  620. height: 64px;
  621. }
  622. .plans-new-table-heading-text {
  623. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  624. var(--spacing-05);
  625. font-weight: 600;
  626. font-size: var(--font-size-04);
  627. line-height: var(--line-height-03);
  628. vertical-align: bottom;
  629. }
  630. .plans-new-table-feature-row {
  631. &:nth-child(even) {
  632. background-color: var(--bg-light-secondary);
  633. }
  634. }
  635. .plans-new-table-section-without-header-row {
  636. &:nth-child(odd):not(.plans-new-table-heading-row) {
  637. background-color: var(--bg-light-secondary);
  638. }
  639. &:nth-child(even):not(.plans-new-table-heading-row) {
  640. background-color: var(--white);
  641. }
  642. }
  643. .plans-new-table-feature-th {
  644. font-weight: normal;
  645. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  646. var(--spacing-05);
  647. .plans-new-table-feature-th-content {
  648. line-height: var(--line-height-03);
  649. display: flex;
  650. justify-content: space-between;
  651. align-items: center;
  652. .plans-new-table-feature-tooltip-icon {
  653. cursor: help;
  654. margin-left: var(--spacing-05);
  655. }
  656. .tooltip.in {
  657. opacity: 1;
  658. }
  659. .tooltip-inner {
  660. padding: var(--spacing-04) var(--spacing-06);
  661. max-width: 258px;
  662. width: 258px;
  663. font-family: Lato, sans-serif;
  664. font-size: var(--font-size-02);
  665. text-align: left;
  666. background-color: var(--content-primary);
  667. border-radius: var(--border-radius-base-new);
  668. }
  669. }
  670. }
  671. .plans-new-table-feature-td {
  672. padding: var(--spacing-05) var(--spacing-08);
  673. text-align: center;
  674. line-height: var(--line-height-03);
  675. .green-round-background {
  676. margin-right: 0;
  677. }
  678. }
  679. .plans-new-table-highlighted-heading {
  680. position: absolute;
  681. left: calc(-1 * var(--border-width-base));
  682. top: -1 * $highlighted-heading-height;
  683. height: $highlighted-heading-height;
  684. width: calc(100% + (2 * var(--border-width-base)));
  685. border-top-left-radius: var(--border-radius-large);
  686. border-top-right-radius: var(--border-radius-large);
  687. padding: $highlighted-heading-padding-vertical var(--spacing-04);
  688. font-weight: 600;
  689. text-align: center;
  690. line-height: $highlighted-heading-line-height;
  691. background-color: var(--green-50);
  692. color: var(--white);
  693. font-size: var(--font-size-03);
  694. }
  695. .plans-new-table-highlighted-cell {
  696. border-right: var(--border-width-base) solid var(--green-50);
  697. border-left: var(--border-width-base) solid var(--green-50);
  698. }
  699. .ai-assist {
  700. color: var(--neutral-90);
  701. @include media-breakpoint-up(lg) {
  702. padding-left: 0 !important;
  703. padding-right: 0 !important;
  704. }
  705. .ai-assist-heading {
  706. margin-top: var(--spacing-12);
  707. margin-bottom: var(--spacing-12);
  708. text-align: center;
  709. }
  710. .ai-assist-container {
  711. padding: var(--spacing-10);
  712. border: var(--spacing-02) solid var(--neutral-10);
  713. border-radius: var(--border-radius-large);
  714. background:
  715. linear-gradient(270deg, var(--blue-10), #fff) 0.13%,
  716. #fff 63.21%;
  717. @include media-breakpoint-down(lg) {
  718. background: var(--bg-light-primary);
  719. border-width: 2px;
  720. border-radius: var(--border-radius-medium);
  721. border-color: var(--premium-gradient);
  722. padding: var(--spacing-09);
  723. }
  724. .ai-assist-content {
  725. display: flex;
  726. justify-content: space-between;
  727. gap: var(--spacing-07);
  728. @include media-breakpoint-down(lg) {
  729. flex-direction: column;
  730. }
  731. .ai-assist-left {
  732. display: flex;
  733. gap: var(--spacing-07);
  734. flex-direction: column;
  735. max-width: 480px;
  736. @include media-breakpoint-down(lg) {
  737. max-width: 100%;
  738. }
  739. .ai-assist-price {
  740. font-weight: 600;
  741. font-size: var(--font-size-03);
  742. @include media-breakpoint-down(lg) {
  743. font-weight: normal;
  744. font-size: var(--font-size-02);
  745. .price {
  746. font-size: var(--font-size-08);
  747. font-weight: 600;
  748. }
  749. }
  750. }
  751. .ai-assist-annually-price {
  752. display: block;
  753. }
  754. .ai-assist-monthly-price {
  755. display: none;
  756. }
  757. .ai-assist-header-switch {
  758. display: none;
  759. }
  760. .ai-assist-header {
  761. display: flex;
  762. align-items: center;
  763. justify-content: space-between;
  764. .ai-assist-header-content {
  765. display: flex;
  766. gap: var(--spacing-06);
  767. align-items: center;
  768. h3 {
  769. font-size: var(--font-size-07);
  770. margin: 0;
  771. padding: 0;
  772. @include media-breakpoint-down(lg) {
  773. font-size: var(--font-size-05);
  774. }
  775. }
  776. img {
  777. @include media-breakpoint-down(lg) {
  778. width: 24px;
  779. }
  780. }
  781. }
  782. .ai-assist-header-switch {
  783. align-items: center;
  784. gap: var(--spacing-03);
  785. user-select: none;
  786. input {
  787. margin: 0;
  788. }
  789. label {
  790. margin: 0;
  791. font-weight: normal;
  792. font-size: var(--font-size-03);
  793. }
  794. }
  795. }
  796. }
  797. .ai-assist-right {
  798. display: flex;
  799. align-items: center;
  800. gap: var(--spacing-06);
  801. .ai-assist-features {
  802. list-style: none;
  803. display: flex;
  804. flex-direction: column;
  805. gap: var(--spacing-04);
  806. min-width: 210px;
  807. margin-bottom: 0;
  808. .feature-item {
  809. display: flex;
  810. align-items: center;
  811. font-size: var(--font-size-03);
  812. cursor: default;
  813. .feature-icon {
  814. margin-right: var(--spacing-05);
  815. color: var(--neutral-70);
  816. width: 16px;
  817. height: 16px;
  818. }
  819. .feature-text {
  820. color: var(--neutral-90);
  821. }
  822. }
  823. @include media-breakpoint-up(lg) {
  824. .feature-item-selected {
  825. .feature-text {
  826. color: var(--blue-50);
  827. font-weight: 600;
  828. }
  829. .feature-icon {
  830. content: url(../../../public/img/check-circle-blue-filled.svg);
  831. }
  832. }
  833. }
  834. }
  835. .ai-assist-images {
  836. display: flex;
  837. align-items: flex-start;
  838. width: 280px;
  839. justify-content: center;
  840. @include media-breakpoint-down(lg) {
  841. display: none;
  842. }
  843. }
  844. }
  845. }
  846. }
  847. .ai-assist-header-switch {
  848. display: flex !important;
  849. }
  850. .ai-assist-button-container {
  851. display: flex;
  852. gap: var(--spacing-05);
  853. &.mobile {
  854. display: none;
  855. margin-top: var(--spacing-06);
  856. flex-direction: column;
  857. }
  858. @include media-breakpoint-down(lg) {
  859. &.mobile {
  860. display: flex;
  861. }
  862. &.desktop {
  863. display: none;
  864. }
  865. }
  866. .btn.monthly {
  867. display: none;
  868. }
  869. }
  870. .overleaf-assist-screenshot {
  871. height: auto;
  872. max-width: 280px;
  873. max-height: 200px;
  874. border-radius: var(--border-radius-base-new);
  875. display: none;
  876. &.selected {
  877. display: block;
  878. animation: fade-in 1s;
  879. }
  880. }
  881. }
  882. .ai-assist.monthly-period {
  883. .ai-assist-annually-price {
  884. display: none !important;
  885. }
  886. .ai-assist-monthly-price {
  887. display: block !important;
  888. }
  889. .ai-assist-button-container .btn.annual {
  890. display: none !important;
  891. }
  892. .ai-assist-button-container .btn.monthly {
  893. display: block !important;
  894. }
  895. }
  896. .plans-new-organizations {
  897. padding: var(--spacing-13) var(--spacing-08);
  898. .plans-new-organizations-text {
  899. text-align: center;
  900. font-size: var(--font-size-05);
  901. line-height: var(--line-height-04);
  902. margin-bottom: var(--spacing-00);
  903. }
  904. .plans-new-organizations-logo {
  905. margin-top: var(--spacing-09);
  906. display: flex;
  907. justify-content: space-around;
  908. align-items: center;
  909. @include media-breakpoint-down(xl) {
  910. flex-wrap: wrap;
  911. gap: 30px;
  912. }
  913. }
  914. }
  915. .plans-card-container-mobile {
  916. width: 100%;
  917. display: flex;
  918. flex-direction: column;
  919. gap: var(--spacing-06);
  920. .mt-spacing-06 {
  921. margin-top: var(--spacing-06);
  922. }
  923. .highlighted-plans-card {
  924. border: 2px solid var(--green-50) !important;
  925. }
  926. .plans-card-mobile {
  927. padding: var(--spacing-09);
  928. border: 2px solid var(--border-divider);
  929. width: 100%; // might need max-width
  930. border-radius: 8px;
  931. display: flex;
  932. flex-direction: column;
  933. .plans-card-title-mobile {
  934. color: var(--content-primary);
  935. font-size: var(--font-size-05); // 20px
  936. font-weight: 600;
  937. line-height: var(--line-height-04);
  938. }
  939. .plans-card-icon-container-mobile {
  940. margin-top: var(--spacing-04);
  941. .plans-card-icon {
  942. font-size: var(--font-size-09);
  943. color: var(--content-primary);
  944. }
  945. }
  946. s {
  947. padding: var(--spacing-04) 0 0 0;
  948. color: var(--neutral-60);
  949. font-size: var(--font-size-04); // 18px
  950. font-weight: 600;
  951. line-height: var(--line-height-05);
  952. margin-bottom: var(--spacing-04);
  953. }
  954. .plans-card-price-container-mobile {
  955. display: flex;
  956. align-items: baseline;
  957. }
  958. .group-plans-card-price-container-mobile {
  959. display: flex;
  960. align-items: center;
  961. }
  962. .plans-card-price-mobile {
  963. color: var(--content-primary);
  964. font-size: var(--font-size-08); // 36px
  965. font-weight: 600;
  966. line-height: var(--line-height-07);
  967. margin-right: var(--spacing-03);
  968. }
  969. .light-gray-text {
  970. color: var(--content-secondary);
  971. font-size: var(--font-size-02); // 14px
  972. line-height: var(--line-height-02);
  973. }
  974. .plans-card-description-mobile {
  975. .green-round-background {
  976. width: 20px;
  977. height: 20px;
  978. }
  979. .plans-card-description-list-mobile {
  980. list-style-type: none;
  981. padding-left: 0;
  982. margin-bottom: unset;
  983. li {
  984. display: flex;
  985. margin-top: var(--spacing-05);
  986. }
  987. }
  988. .plans-card-cta-container {
  989. margin-top: var(--spacing-08);
  990. width: 100%;
  991. .plans-cta + .plans-cta {
  992. margin-top: var(--spacing-04);
  993. }
  994. }
  995. }
  996. }
  997. }
  998. .plans-new-group-tab-card-container {
  999. margin-top: var(--spacing-09);
  1000. }
  1001. .plans-features-table-section-container-mobile {
  1002. margin-top: var(--spacing-13);
  1003. .plans-features-section-heading-mobile {
  1004. font-size: var(--font-size-06);
  1005. font-weight: 600;
  1006. line-height: var(--line-height-05);
  1007. color: var(--content-primary);
  1008. text-align: center;
  1009. margin-bottom: var(--spacing-08);
  1010. }
  1011. .plans-features-table-mobile {
  1012. width: 100%;
  1013. .plans-features-table-sticky-header {
  1014. position: sticky;
  1015. top: 0;
  1016. }
  1017. .plans-features-table-header {
  1018. margin-bottom: var(--space-08);
  1019. }
  1020. .plans-features-table-header-container-mobile {
  1021. margin: var(--spacing-08) auto;
  1022. border-bottom: unset;
  1023. width: 100%;
  1024. max-width: 544px;
  1025. .plans-features-table-header-item-mobile {
  1026. width: 33%;
  1027. min-width: 114px;
  1028. padding: unset;
  1029. .plans-features-table-header-item-content-mobile {
  1030. padding: var(--spacing-04);
  1031. text-align: center;
  1032. background-color: var(--bg-light-secondary);
  1033. }
  1034. .plans-group-features-table-header-item-content-mobile {
  1035. padding: var(--spacing-04);
  1036. text-align: center;
  1037. background-color: var(--bg-light-secondary);
  1038. height: 64px;
  1039. display: flex;
  1040. justify-content: center;
  1041. align-items: center;
  1042. }
  1043. .plans-features-table-header-item-title-mobile {
  1044. color: var(--content-primary);
  1045. line-height: var(--line-height-03);
  1046. font-weight: 600;
  1047. font-size: var(--font-size-03);
  1048. }
  1049. .plans-features-table-header-item-price-mobile {
  1050. font-weight: 400;
  1051. color: var(--content-secondary);
  1052. line-height: var(--line-height-01);
  1053. font-size: var(--spacing-05);
  1054. }
  1055. }
  1056. .highlighted-styles {
  1057. background-color: var(--neutral-80);
  1058. .plans-features-table-header-item-title-mobile,
  1059. .plans-features-table-header-item-price-mobile {
  1060. color: var(--white);
  1061. }
  1062. }
  1063. .plans-features-table-header-item-content-mobile.highlighted,
  1064. .plans-group-features-table-header-item-content-mobile.highlighted {
  1065. background-color: var(--neutral-80);
  1066. .plans-features-table-header-item-title-mobile,
  1067. .plans-features-table-header-item-price-mobile {
  1068. color: var(--white);
  1069. }
  1070. }
  1071. }
  1072. tr.plans-features-table-row-for-margin {
  1073. height: var(--spacing-08);
  1074. }
  1075. .plans-features-table-body-container-mobile {
  1076. .plans-features-table-row-heading-mobile {
  1077. font-weight: 600;
  1078. text-align: center;
  1079. line-height: var(--line-height-03);
  1080. .plans-features-table-row-section-heading-content-mobile {
  1081. padding-top: var(--spacing-08);
  1082. padding-bottom: var(--spacing-05);
  1083. font-size: var(--font-size-04);
  1084. color: var(--content-primary);
  1085. }
  1086. }
  1087. // .plans-features-table-row-title-mobile and .plans-features-table-row-mobile are combined together to make one row visually, so we are using factors of 4 to alternatively color their backgrounds.
  1088. .plans-features-table-row-title-mobile {
  1089. &.plans-features-table-row-title-mobile-without-heading {
  1090. &:nth-child(4n - 3) {
  1091. background-color: var(--bg-light-secondary);
  1092. }
  1093. &:nth-child(4n - 1) {
  1094. background-color: var(--white);
  1095. }
  1096. }
  1097. &:nth-child(4n - 2) {
  1098. background-color: var(--bg-light-secondary);
  1099. }
  1100. &:nth-child(4n) {
  1101. background-color: var(--white);
  1102. }
  1103. .plans-features-table-row-title-content-mobile {
  1104. display: flex;
  1105. justify-content: center;
  1106. align-items: center;
  1107. padding-top: var(--spacing-06);
  1108. font-weight: 600;
  1109. line-height: var(--line-height-03);
  1110. .plans-features-table-row-title-accordion {
  1111. display: flex;
  1112. justify-content: center;
  1113. flex-direction: column;
  1114. align-items: center;
  1115. text-align: center;
  1116. padding: 0 var(--spacing-04);
  1117. .plans-features-table-row-title-accordion-header {
  1118. font-size: var(--font-size-03);
  1119. font-weight: 600;
  1120. line-height: var(--line-height-03);
  1121. display: flex;
  1122. justify-content: center;
  1123. background-color: unset;
  1124. border: unset;
  1125. .plans-features-table-row-title-accordion-icon {
  1126. display: flex;
  1127. align-items: center;
  1128. transition: transform 0.35s ease;
  1129. margin-left: var(--spacing-02);
  1130. }
  1131. &:not(.collapsed) {
  1132. .plans-features-table-row-title-accordion-icon {
  1133. transform: rotate(180deg);
  1134. transition: transform 0.35s ease;
  1135. }
  1136. }
  1137. }
  1138. .plans-features-table-row-title-accordion-body {
  1139. font-size: var(--font-size-01);
  1140. line-height: var(--line-height-01);
  1141. font-weight: 400;
  1142. }
  1143. }
  1144. }
  1145. }
  1146. .plans-features-table-row-mobile {
  1147. &.plans-features-table-row-mobile-without-heading {
  1148. &:nth-child(4n - 2) {
  1149. background-color: var(--bg-light-secondary);
  1150. }
  1151. &:nth-child(4n) {
  1152. background-color: var(--white);
  1153. }
  1154. }
  1155. &:nth-child(4n - 3) {
  1156. background-color: var(--white);
  1157. }
  1158. &:nth-child(4n - 1) {
  1159. background-color: var(--bg-light-secondary);
  1160. }
  1161. .plans-features-table-cell-content-mobile {
  1162. text-align: center;
  1163. padding-top: var(--spacing-05);
  1164. padding-bottom: var(--spacing-06);
  1165. }
  1166. }
  1167. }
  1168. }
  1169. }
  1170. .plans-price-disclaimer {
  1171. font-size: var(--font-size-01);
  1172. line-height: var(--line-height-01);
  1173. margin-top: var(--spacing-08);
  1174. text-align: center;
  1175. &:last-child {
  1176. margin-bottom: var(--spacing-11);
  1177. }
  1178. &:not(:last-child) {
  1179. margin-bottom: var(--spacing-08);
  1180. }
  1181. .plans-price-disclaimer-icons {
  1182. display: flex;
  1183. justify-content: center;
  1184. gap: var(--spacing-04);
  1185. }
  1186. }
  1187. .only-show-for-specific-plan-type {
  1188. display: none;
  1189. }
  1190. &[data-ol-current-plan-type='group'] {
  1191. .show-for-plan-type-group {
  1192. display: block;
  1193. }
  1194. }
  1195. &[data-ol-current-plan-type='individual'] {
  1196. .show-for-plan-type-individual {
  1197. display: block;
  1198. }
  1199. }
  1200. &[data-ol-current-plan-type='student'] {
  1201. .show-for-plan-type-student {
  1202. display: block;
  1203. }
  1204. }
  1205. .only-show-for-specific-plan-period {
  1206. display: none;
  1207. }
  1208. &[data-ol-current-plan-period='annual'] {
  1209. .show-for-plan-period-annual {
  1210. display: block;
  1211. }
  1212. }
  1213. &[data-ol-current-plan-period='monthly'] {
  1214. .show-for-plan-period-monthly {
  1215. display: block;
  1216. }
  1217. }
  1218. }
  1219. .plans-overleaf-common-request {
  1220. color: var(--content-primary);
  1221. display: flex;
  1222. align-items: center;
  1223. justify-content: center;
  1224. margin: var(--spacing-04) var(--spacing-08);
  1225. text-align: center;
  1226. gap: var(--spacing-06);
  1227. @include media-breakpoint-down(md) {
  1228. flex-direction: column;
  1229. margin: 0;
  1230. }
  1231. a {
  1232. font-size: var(--font-size-02);
  1233. line-height: var(--line-height-02);
  1234. }
  1235. }
  1236. .plans-faq {
  1237. .faq-heading-container {
  1238. text-align: center;
  1239. margin-bottom: var(--spacing-10);
  1240. @include media-breakpoint-down(md) {
  1241. text-align: unset;
  1242. }
  1243. }
  1244. .plans-faq-support {
  1245. margin-top: var(--spacing-06);
  1246. margin-bottom: var(--spacing-06);
  1247. display: flex;
  1248. flex-direction: column;
  1249. align-items: center;
  1250. gap: var(--spacing-04);
  1251. span {
  1252. line-height: var(--line-height-03);
  1253. font-size: var(--font-size-04);
  1254. }
  1255. button {
  1256. font-family: 'DM Mono', monospace;
  1257. font-weight: 500;
  1258. text-decoration: none;
  1259. color: var(--green-50);
  1260. line-height: var(--line-height-03);
  1261. font-size: var(--font-size-04);
  1262. background-color: var(--white);
  1263. border: unset;
  1264. display: flex;
  1265. align-items: center;
  1266. }
  1267. }
  1268. }
  1269. .plans-new-design.plans-interstitial-new-design {
  1270. padding-top: $header-height;
  1271. padding-bottom: var(--spacing-09);
  1272. .plans-interstitial-new-content {
  1273. display: flex;
  1274. flex-direction: column;
  1275. align-items: center;
  1276. }
  1277. .plans-new-table {
  1278. th,
  1279. td {
  1280. width: $table-5-column-width;
  1281. }
  1282. }
  1283. }
  1284. .plans-cta {
  1285. display: block;
  1286. a {
  1287. display: block;
  1288. }
  1289. }
  1290. .plans-faq-tabs {
  1291. max-width: 800px;
  1292. margin: 0 auto;
  1293. .nav-tabs-container {
  1294. margin-bottom: var(--spacing-08);
  1295. }
  1296. .tab-content {
  1297. margin-top: 0;
  1298. }
  1299. }
  1300. .plans-watermark {
  1301. position: fixed;
  1302. left: 150px;
  1303. top: 5px;
  1304. font-size: var(--font-size-07);
  1305. border: solid magenta 3px;
  1306. padding: var(--spacing-04);
  1307. color: magenta;
  1308. opacity: 0.3;
  1309. pointer-events: none;
  1310. }